From: Jim Mattson Date: Thu, 1 Jun 2017 19:43:37 +0000 (-0700) Subject: KVM: nVMX: Don't update vmcs12->xss_exit_bitmap on nested VM-exit X-Git-Tag: v4.13-rc1~131^2~43 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d923fcf6361da3b8b25b13ce6c1e427e759f125a;p=karo-tx-linux.git 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 Signed-off-by: Radim Krčmář --- 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); } /*