Skip to content

KVM: SVM: nSVM: Implement Enlightened MSR-Bitmap for Hyper-V-on-KVM

Vitaly Kuznetsov kvm lkml 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 3 repliesApplied
  2. v15 patches 8 repliesApplied

Changes in v2 from the cover letter

- Patches 1/2 from "[PATCH 0/5] KVM: SVM: nSVM: Implement Enlightened MSR-Bitmap for Hyper-V-on-KVM and fix it for KVM-on-Hyper-V" are already merged, dropped.
- Fix build when !CONFIG_HYPERV (PATCH3 "KVM: nSVM: Split off common definitions for Hyper-V on KVM and KVM on Hyper-V" added).

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: nSVM: Track whether changes in L0 require MSR bitmap for L2 to be rebuiltarch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+17 -10 replies
2/4KVM: x86: Make kvm_hv_hypercall_enabled() static inlinearch/x86/kvm/hyperv.c arch/x86/kvm/hyperv.h+5 -60 replies
3/4KVM: nSVM: Split off common definitions for Hyper-V on KVM and KVM on Hyper-Varch/x86/kvm/svm/hyperv.h arch/x86/kvm/svm/svm_onhyperv.h+36 -240 replies
4/4KVM: nSVM: Implement Enlightened MSR-Bitmap featurearch/x86/kvm/hyperv.c arch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.h+37 -130 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] KVM: SVM: nSVM: Implement Enlightened MSR-Bitmap for Hyper-V-on-KVM

Changes since v1:
- Patches 1/2 from "[PATCH 0/5] KVM: SVM: nSVM: Implement Enlightened MSR-Bitmap for Hyper-V-on-KVM and fix it for KVM-on-Hyper-V" are already merged, dropped.
- Fix build when !CONFIG_HYPERV (PATCH3 "KVM: nSVM: Split off common definitions for Hyper-V on KVM and KVM on Hyper-V" added).

Description:

Enlightened MSR-Bitmap feature implements a PV protocol for L0 and L1 hypervisors to collaborate and skip unneeded updates to MSR-Bitmap. KVM already implements the feature for KVM-on-Hyper-V.

Vitaly Kuznetsov (4):
KVM: nSVM: Track whether changes in L0 require MSR bitmap for L2 to be
rebuilt
KVM: x86: Make kvm_hv_hypercall_enabled() static inline
KVM: nSVM: Split off common definitions for Hyper-V on KVM and KVM on
Hyper-V
KVM: nSVM: Implement Enlightened MSR-Bitmap feature

 arch/x86/kvm/hyperv.c           | 12 +--------
 arch/x86/kvm/hyperv.h           |  6 ++++-
 arch/x86/kvm/svm/hyperv.h       | 35 ++++++++++++++++++++++++
 arch/x86/kvm/svm/nested.c       | 47 ++++++++++++++++++++++++++++-----
 arch/x86/kvm/svm/svm.c          |  3 ++-
 arch/x86/kvm/svm/svm.h          | 11 ++++++++
 arch/x86/kvm/svm/svm_onhyperv.h | 25 +-----------------
 7 files changed, 95 insertions(+), 44 deletions(-)
 create mode 100644 arch/x86/kvm/svm/hyperv.h
Signature · 1 line
2.34.1