• Jim Mattson's avatar
    kvm: nVMX: VMCLEAR an active shadow VMCS after last use · 355f4fb1
    Jim Mattson authored
    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: default avatarJim Mattson <jmattson@google.com>
    Reviewed-By: default avatarDavid Matlack <dmatlack@google.com>
    Message-Id: <1477668579-22555-1-git-send-email-jmattson@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    355f4fb1
vmx.c 321 KB