]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Don't _explicitly_ reconfigure user return MSRs on vCPU INIT
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:33:13 +0000 (09:33 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:57 +0000 (11:01 -0400)
commitd89e5bc8e9fcf9d07f54bb1584a2ab6b1a3aed7c
tree624fab9bc1a4364329d08f560e8376e8024ce4d6
parentd21246bd39b3a8e1b5271848f27e3aeb8aafbfaa
KVM: VMX: Don't _explicitly_ reconfigure user return MSRs on vCPU INIT

When emulating vCPU INIT, do not unconditionally refresh the list of user
return MSRs that need to be loaded into hardware when running the guest.
Unconditionally refreshing the list is confusing, as the vast majority of
MSRs are not modified on INIT.  The real motivation is to handle the case
where an INIT during long mode obviates the need to load the SYSCALL MSRs,
and that is handled as needed by vmx_set_efer().

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