Skip to content
Commit 7f7f1ba3 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86: do not load vmcs12 pages while still in SMM



If the vCPU enters system management mode while running a nested guest,
RSM starts processing the vmentry while still in SMM.  In that case,
however, the pages pointed to by the vmcs12 might be incorrectly
loaded from SMRAM.  To avoid this, delay the handling of the pages
until just before the next vmentry.  This is done with a new request
and a new entry in kvm_x86_ops, which we will be able to reuse for
nested VMX state migration.

Extracted from a patch by Jim Mattson and KarimAllah Ahmed.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent fa3899ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment