diff options
| author | Vitaly Kuznetsov <[email protected]> | 2018-01-24 13:23:37 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2018-01-30 22:55:34 +0000 |
| commit | 0092e4346f49558e5fe5a927c6d78d401dc4ed73 (patch) | |
| tree | c79a7cd0c76a402eda8883a26d7384175e82703c /tools/perf/util/python.c | |
| parent | x86/kvm: Pass stable clocksource to guests when running nested on Hyper-V (diff) | |
| download | kernel-0092e4346f49558e5fe5a927c6d78d401dc4ed73.tar.gz kernel-0092e4346f49558e5fe5a927c6d78d401dc4ed73.zip | |
x86/kvm: Support Hyper-V reenlightenment
When running nested KVM on Hyper-V guests its required to update
masterclocks for all guests when L1 migrates to a host with different TSC
frequency.
Implement the procedure in the following way:
- Pause all guests.
- Tell the host (Hyper-V) to stop emulating TSC accesses.
- Update the gtod copy, recompute clocks.
- Unpause all guests.
This is somewhat similar to cpufreq but there are two important differences:
- TSC emulation can only be disabled globally (on all CPUs)
- The new TSC frequency is not known until emulation is turned off so
there is no way to 'prepare' for the event upfront.
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: [email protected]
Cc: Radim Krčmář <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Cc: "Michael Kelley (EOSG)" <[email protected]>
Cc: Roman Kagan <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: [email protected]
Cc: "K. Y. Srinivasan" <[email protected]>
Cc: Cathy Avery <[email protected]>
Cc: Mohammed Gamal <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions
