]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Support KVM_CAP_ENFORCE_PV_FEATURE_CPUID
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 2 Sep 2021 09:35:25 +0000 (11:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 17:04:45 +0000 (19:04 +0200)
commit988f7b8bfeffbf521814d1e48c321f7674277512
treebe12f2856161ae4b1463121f849245a5f8ceff57
parent8bdfec393a2ac67df9cecc0983d130db4a6bba58
i386: Support KVM_CAP_ENFORCE_PV_FEATURE_CPUID

By default, KVM allows the guest to use all currently supported PV features
even when they were not announced in guest visible CPUIDs. Introduce a new
"kvm-pv-enforce-cpuid" flag to limit the supported feature set to the
exposed features. The feature is supported by Linux >= 5.10 and is not
enabled by default in QEMU.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20210902093530.345756-4-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm/kvm.c