i386: Support KVM_CAP_HYPERV_ENFORCE_CPUID
commit70367f091777419f42e5f68f4206deb641335877
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 2 Sep 2021 09:35:26 +0000 (2 11:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 17:04:45 +0000 (1 19:04 +0200)
tree99fc953aad6b0a2f8d998d3f640bcb873ab86f65
parent988f7b8bfeffbf521814d1e48c321f7674277512
i386: Support KVM_CAP_HYPERV_ENFORCE_CPUID

By default, KVM allows the guest to use all currently supported Hyper-V
enlightenments when Hyper-V CPUID interface was exposed, regardless of if
some features were not announced in guest visible CPUIDs. hv-enforce-cpuid
feature alters this behavior and only allows the guest to use exposed
Hyper-V enlightenments. The feature is supported by Linux >= 5.14 and is
not enabled by default in QEMU.

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