[PATCH 0/3] i386/kvm: Paravirtualized features usage enforcement

Vitaly Kuznetsov posted 3 patches 2 years, 9 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210722121528.258426-1-vkuznets@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>
docs/hyperv.txt       |  17 +++++--
docs/kvm-pv.txt       | 103 ++++++++++++++++++++++++++++++++++++++++++
target/i386/cpu.c     |   3 ++
target/i386/cpu.h     |   4 ++
target/i386/kvm/kvm.c |  19 ++++++++
5 files changed, 143 insertions(+), 3 deletions(-)
create mode 100644 docs/kvm-pv.txt
[PATCH 0/3] i386/kvm: Paravirtualized features usage enforcement
Posted by Vitaly Kuznetsov 2 years, 9 months ago
[I know this is probably too late for 6.1 but maybe the first patch of the
series is good as it just adds a missing doc?]

By default, KVM doesn't limit the usage of paravirtualized feature (neither
native KVM nor Hyper-V) to what was exposed to the guest in CPUIDs making
it possible to use all of them. KVM_CAP_HYPERV_ENFORCE_CPUID and
KVM_CAP_ENFORCE_PV_FEATURE_CPUID features were recently introduced making
it possible to limit available features to what was actually exposed. Add
support for these to QEMU.

While on it, document all currently supported KVM PV features in
docs/kvm-pv.txt.

Vitaly Kuznetsov (3):
  docs: Briefly describe KVM PV features
  i386: Support KVM_CAP_ENFORCE_PV_FEATURE_CPUID
  i386: Support KVM_CAP_HYPERV_ENFORCE_CPUID

 docs/hyperv.txt       |  17 +++++--
 docs/kvm-pv.txt       | 103 ++++++++++++++++++++++++++++++++++++++++++
 target/i386/cpu.c     |   3 ++
 target/i386/cpu.h     |   4 ++
 target/i386/kvm/kvm.c |  19 ++++++++
 5 files changed, 143 insertions(+), 3 deletions(-)
 create mode 100644 docs/kvm-pv.txt

-- 
2.31.1