mbox series

[0/2] i386: Add support for Hyper-V Enlightened MSR-Bitmap feature

Message ID 20220105085704.1267530-1-vkuznets@redhat.com (mailing list archive)
Headers show
Series i386: Add support for Hyper-V Enlightened MSR-Bitmap feature | expand

Message

Vitaly Kuznetsov Jan. 5, 2022, 8:57 a.m. UTC
The new nested specific enlightenment speeds up L2 vmexits by avoiding
unnecessary updates to L2 MSR-Bitmap. Support for both VMX and SVM is
coming to KVM:
https://lore.kernel.org/kvm/20211129094704.326635-1-vkuznets@redhat.com/
https://lore.kernel.org/kvm/20211220152139.418372-1-vkuznets@redhat.com/

Vitaly Kuznetsov (2):
  i386: Use hv_build_cpuid_leaf() for HV_CPUID_NESTED_FEATURES
  i386: Hyper-V Enlightened MSR bitmap feature

 docs/hyperv.txt                | 10 ++++++++++
 target/i386/cpu.c              |  2 ++
 target/i386/cpu.h              |  2 +-
 target/i386/kvm/hyperv-proto.h |  5 +++++
 target/i386/kvm/kvm.c          | 30 ++++++++++++++++++++++--------
 5 files changed, 40 insertions(+), 9 deletions(-)

Comments

Vitaly Kuznetsov Jan. 27, 2022, 9:45 a.m. UTC | #1
Vitaly Kuznetsov <vkuznets@redhat.com> writes:

> The new nested specific enlightenment speeds up L2 vmexits by avoiding
> unnecessary updates to L2 MSR-Bitmap. Support for both VMX and SVM is
> coming to KVM:
> https://lore.kernel.org/kvm/20211129094704.326635-1-vkuznets@redhat.com/
> https://lore.kernel.org/kvm/20211220152139.418372-1-vkuznets@redhat.com/
>

Ping)

VMX part made it to KVM in v5.17-rc1:

commit 502d2bf5f2fd7c05adc2d4f057910bd5d4c4c63e
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
Date:   Mon Nov 29 10:47:04 2021 +0100

    KVM: nVMX: Implement Enlightened MSR Bitmap feature

SVM part is still pending, will likely go to 5.18. QEMU enablement code
is, however, the same.

> Vitaly Kuznetsov (2):
>   i386: Use hv_build_cpuid_leaf() for HV_CPUID_NESTED_FEATURES
>   i386: Hyper-V Enlightened MSR bitmap feature
>
>  docs/hyperv.txt                | 10 ++++++++++
>  target/i386/cpu.c              |  2 ++
>  target/i386/cpu.h              |  2 +-
>  target/i386/kvm/hyperv-proto.h |  5 +++++
>  target/i386/kvm/kvm.c          | 30 ++++++++++++++++++++++--------
>  5 files changed, 40 insertions(+), 9 deletions(-)