mbox series

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

Message ID 20210722121528.258426-1-vkuznets@redhat.com (mailing list archive)
Headers show
Series i386/kvm: Paravirtualized features usage enforcement | expand

Message

Vitaly Kuznetsov July 22, 2021, 12:15 p.m. UTC
[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