]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: VMCLEAR an active shadow VMCS after last use
authorJim Mattson <jmattson@google.com>
Fri, 28 Oct 2016 15:29:39 +0000 (08:29 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 19:03:17 +0000 (20:03 +0100)
commitc2e9f94807c94050ab2de8f3b5a851afa9b18472
treeb234f5d9d0a148674735d909a74f56665ed293bd
parent2566570db027e59aa6ff64cc6b6e69c555aa03d2
kvm: nVMX: VMCLEAR an active shadow VMCS after last use

After a successful VM-entry with the "VMCS shadowing" VM-execution
control set, the shadow VMCS referenced by the VMCS link pointer field
in the current VMCS becomes active on the logical processor.

A VMCS that is made active on more than one logical processor may become
corrupted. Therefore, before an active VMCS can be migrated to another
logical processor, the first logical processor must execute a VMCLEAR
for the active VMCS. VMCLEAR both ensures that all VMCS data are written
to memory and makes the VMCS inactive.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-By: David Matlack <dmatlack@google.com>
Message-Id: <1477668579-22555-1-git-send-email-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c