]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Drop superfluous VMREAD of vmcs02.GUEST_SYSENTER_*
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 28 Apr 2020 23:10:25 +0000 (16:10 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:17 +0000 (12:26 -0400)
commit08e293e45db8913b48dd4b207a1bed2dfa839c2a
tree12eb87a69c8fd8588bba0d4361539837cdc78064
parent7556f2df23333c24946c72a07100b7e177639594
KVM: nVMX: Drop superfluous VMREAD of vmcs02.GUEST_SYSENTER_*

Don't propagate GUEST_SYSENTER_* from vmcs02 to vmcs12 on nested VM-Exit
as the vmcs12 fields are updated in vmx_set_msr(), and writes to the
corresponding MSRs are always intercepted by KVM when running L2.

Dropping the propagation was intended to be done in the same commit that
added vmcs12 writes in vmx_set_msr()[1], but for reasons unknown was
only shuffled around[2][3].

[1] https://patchwork.kernel.org/patch/10933215
[2] https://patchwork.kernel.org/patch/10933215/#22682289
[3] https://lore.kernel.org/patchwork/patch/1088643

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200428231025.12766-3-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c