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

Vitaly Kuznetsov posted 2 patches 2 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220105085704.1267530-1-vkuznets@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>
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(-)
[PATCH 0/2] i386: Add support for Hyper-V Enlightened MSR-Bitmap feature
Posted by Vitaly Kuznetsov 2 years, 2 months ago
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(-)

-- 
2.33.1


Re: [PATCH 0/2] i386: Add support for Hyper-V Enlightened MSR-Bitmap feature
Posted by Vitaly Kuznetsov 2 years, 2 months ago
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(-)

-- 
Vitaly