Skip to content

Add support for some HYPER-V PV features

Gleb Natapov kvm 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 6 repliesApplied
  2. v24 patches 16 repliesSuperseded
  3. v13 patches 9 repliesSuperseded

Changes in v3 from the cover letter

fix msrs_to_save[] handling
fix access to guests memory
use kvm_read_cr0_bits() instead of direct access to cr0

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4Add HYPER-V header file.arch/x86/include/asm/hyperv.h+187 -00 replies
2/4Implement bare minimum of HYPER-V MSRs.arch/x86/include/asm/kvm_host.h arch/x86/include/asm/kvm_para.h arch/x86/kvm/trace.h +2 more+227 -10 replies
3/4Add HYPER-V apic access MSRs.arch/x86/include/asm/kvm_host.h arch/x86/kvm/lapic.c arch/x86/kvm/lapic.h +2 more+80 -40 replies
4/4Implement NotifyLongSpinWait HYPER-V hypercall.arch/x86/kvm/x86.c include/linux/kvm.h+10 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 0/4] Add support for some HYPER-V PV features

HYPER-V provides PV capabilities for its guests and most new MS Windows detect and use them automatically. Older Windows guests need additional drivers to uses PV. This patch series implements some PV capabilities defined by HYPER-V spec for KVM. Windows guests running on KVM will be able to take advantage of them.

Changelog:
v1->v2
rename kvm_hyperv.h into hyperv.h and move into separate patch minor style fixes
use clear_user-page(0 to zero userspace page
use APIC register names when calling kvm_hv_vapic_msr_(read|write)()
v2->v3
fix msrs_to_save[] handling
fix access to guests memory
use kvm_read_cr0_bits() instead of direct access to cr0

Gleb Natapov (4):
Add HYPE-V header file.
Implement bare minimum of HYPER-V MSRs.
Add HYPER-V apic access MSRs.
Implement NotifyLongSpinWait HYPER-V hypercall.

 arch/x86/include/asm/hyperv.h   |  187 +++++++++++++++++++++++++++++++
 arch/x86/include/asm/kvm_host.h |    6 +
 arch/x86/include/asm/kvm_para.h |    1 +
 arch/x86/kvm/lapic.c            |   31 +++++
 arch/x86/kvm/lapic.h            |    8 ++
 arch/x86/kvm/trace.h            |   32 ++++++
 arch/x86/kvm/x86.c              |  232 ++++++++++++++++++++++++++++++++++++++-
 include/linux/kvm.h             |    3 +
 8 files changed, 499 insertions(+), 1 deletions(-)
 create mode 100644 arch/x86/include/asm/hyperv.h