Skip to content
Commit 3db13480 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 75f4fc8d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment