KVM: nVMX: Remove obsolete MSR bitmap refresh at nested transitions
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:33:16 +0000 (09:33 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:58 +0000 (11:01 -0400)
commit284036c644a1dc71890503c849b22c3126308067
tree6b3fcb5fc426da7e2db26c656d2cb6d78c8dbaea
parent9e4784e19daaa5cd637753d5300fc5a42d0c694a
KVM: nVMX: Remove obsolete MSR bitmap refresh at nested transitions

Drop unnecessary MSR bitmap updates during nested transitions, as L1's
APIC_BASE MSR is not modified by the standard VM-Enter/VM-Exit flows,
and L2's MSR bitmap is managed separately.  In the unlikely event that L1
is pathological and loads APIC_BASE via the VM-Exit load list, KVM will
handle updating the bitmap in its normal WRMSR flows.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-39-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h