Skip to content

i386/kvm: advertise Hyper-V frequency MSRs

Ladi Prosek kvm qemu-devel 2 versions – Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesApplied
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4i386/kvm: use a switch statement for MSR detectiontarget/i386/kvm.c+31 -442 replies
2/4i386/kvm: set tsc_khz before configuring Hyper-V CPUIDtarget/i386/kvm.c+19 -190 replies
3/4i386/kvm: introduce tsc_is_stable_and_known()target/i386/kvm.c+10 -31 reply
4/4i386/kvm: advertise Hyper-V frequency MSRstarget/i386/kvm.c+11 -11 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/4
2/4
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] i386/kvm: advertise Hyper-V frequency MSRs

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(-)
Signature · 1 line
2.9.3