qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] i386/kvm: advertise Hyper-V frequency MSRs
@ 2017-08-07  8:56 Ladi Prosek
  2017-08-07  8:57 ` [Qemu-devel] [PATCH v2 1/4] i386/kvm: use a switch statement for MSR detection Ladi Prosek
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Ladi Prosek @ 2017-08-07  8:56 UTC (permalink / raw)
  To: qemu-devel, kvm; +Cc: pbonzini, mtosatti, david, rkrcmar

This is the QEMU part of the changes required for nested Hyper-V to read
timestamps with RDTSC + TSC page. Without exposing the frequency MSRs,
Windows with the Hyper-V role enabled use the much slower
HV_X64_MSR_TIME_REF_COUNT (0x40000020) RDMSR to read timestamps.

The new registers are exposed only if the TSC frequency is stable across
migration and known, as suggested by Paolo.

v1->v2:
* deleted an extra empty line in patch 1
* added patch 3 introducing a helper function for the "TSC is stable and
  known" check (David)

Ladi Prosek (4):
  i386/kvm: use a switch statement for MSR detection
  i386/kvm: set tsc_khz before configuring Hyper-V CPUID
  i386/kvm: introduce tsc_is_stable_and_known()
  i386/kvm: advertise Hyper-V frequency MSRs

 target/i386/kvm.c | 138 ++++++++++++++++++++++++++++--------------------------
 1 file changed, 71 insertions(+), 67 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-09-11  9:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07  8:56 [Qemu-devel] [PATCH v2 0/4] i386/kvm: advertise Hyper-V frequency MSRs Ladi Prosek
2017-08-07  8:57 ` [Qemu-devel] [PATCH v2 1/4] i386/kvm: use a switch statement for MSR detection Ladi Prosek
2017-08-07 14:19   ` David Hildenbrand
2017-08-07 14:24     ` Ladi Prosek
2017-08-07  8:57 ` [Qemu-devel] [PATCH v2 2/4] i386/kvm: set tsc_khz before configuring Hyper-V CPUID Ladi Prosek
2017-08-07  8:57 ` [Qemu-devel] [PATCH v2 3/4] i386/kvm: introduce tsc_is_stable_and_known() Ladi Prosek
2017-08-07 14:22   ` David Hildenbrand
2017-08-07  8:57 ` [Qemu-devel] [PATCH v2 4/4] i386/kvm: advertise Hyper-V frequency MSRs Ladi Prosek
2017-08-07 14:25   ` David Hildenbrand
2017-08-09  0:50 ` [Qemu-devel] [PATCH v2 0/4] " Marcelo Tosatti
2017-08-16  1:49   ` Konrad Rzeszutek Wilk
2017-09-11  9:52 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).