]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: nVMX: Don't update vmcs12->xss_exit_bitmap on nested VM-exit
authorJim Mattson <jmattson@google.com>
Thu, 1 Jun 2017 19:43:37 +0000 (12:43 -0700)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 7 Jun 2017 14:34:08 +0000 (16:34 +0200)
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>
arch/x86/kvm/vmx.c

index 39301297352a01c6cb6a6fb9ee161f4520f45002..fbc18085b599df60c3bccea06119fc719cb8405a 100644 (file)
@@ -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);
 }
 
 /*