summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/cpuid.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-08-24 15:48:03 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-08-24 19:09:13 +0300
commit3db134805c69aae16ba6193946aa8deccd393ead (patch)
treee9cb104b81f6b3f3c9d2a1a22e3151bf7f133264 /arch/x86/kvm/cpuid.c
parent75f4fc8da9bd3b56f08ff8ba4113e5c57a85c24c (diff)
downloadlinux-3db134805c69aae16ba6193946aa8deccd393ead.tar.xz
kvm: vmx: Raise #UD on unsupported XSAVES/XRSTORS
A guest may not be configured to support XSAVES/XRSTORS, even when the host does. If the guest does not support XSAVES/XRSTORS, clear the secondary execution control so that the processor will raise #UD. Also clear the "allowed-1" bit for XSAVES/XRSTORS exiting in the IA32_VMX_PROCBASED_CTLS2 MSR, and pass through VMCS12's control in the VMCS02. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
0 files changed, 0 insertions, 0 deletions