]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Add VMCS to CPU's loaded VMCSs before VMPTRLD
authorJim Mattson <jmattson@google.com>
Sat, 30 Jul 2016 01:56:53 +0000 (18:56 -0700)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 1 Aug 2016 13:14:24 +0000 (15:14 +0200)
commit4d7d6d59d62851bd9143c33498cd13067246fb35
tree67ab1b8159cfbb84f03022097739c24a54ae7c18
parent96001bd8a40d0e61fb4d486b9d748af4edc43fde
KVM: VMX: Add VMCS to CPU's loaded VMCSs before VMPTRLD

Kexec needs to know the addresses of all VMCSs that are active on
each CPU, so that it can flush them from the VMCS caches. It is
safe to record superfluous addresses that are not associated with
an active VMCS, but it is not safe to omit an address associated
with an active VMCS.

After a call to vmcs_load, the VMCS that was loaded is active on
the CPU. The VMCS should be added to the CPU's list of active
VMCSs before it is loaded.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c