diff options
author | Jim Mattson <jmattson@google.com> | 2017-06-01 12:43:37 -0700 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-06-07 16:34:08 +0200 |
commit | d923fcf6361da3b8b25b13ce6c1e427e759f125a (patch) | |
tree | 3feb2f964d384a932fbd7864e5bdd307c206be63 /arch/x86/kvm | |
parent | 4531662d1abf6c1f0e5c2b86ddb60e61509786c8 (diff) | |
download | talos-op-linux-d923fcf6361da3b8b25b13ce6c1e427e759f125a.tar.gz talos-op-linux-d923fcf6361da3b8b25b13ce6c1e427e759f125a.zip |
KVM: nVMX: Don't update vmcs12->xss_exit_bitmap on nested VM-exit
The XSS-exiting bitmap is a VMCS control field that does not change
while the CPU is in non-root mode. Transferring the unchanged value
from vmcs02 to vmcs12 is unnecessary.
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 39301297352a..fbc18085b599 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -10738,8 +10738,6 @@ static void sync_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) vmcs12->guest_sysenter_eip = vmcs_readl(GUEST_SYSENTER_EIP); if (kvm_mpx_supported()) vmcs12->guest_bndcfgs = vmcs_read64(GUEST_BNDCFGS); - if (nested_cpu_has_xsaves(vmcs12)) - vmcs12->xss_exit_bitmap = vmcs_read64(XSS_EXIT_BITMAP); } /* |