KVM: nVMX: clean up handling of shadow<->vmcs12 syncing

Track separately whether shadow and vmcs12 provide an authoritative
VMCS.  The shadow VMCS starts as unauthoritative, and also becomes
unauthoritative when L0 writes to the vmcs12.  The vmcs12 becomes
unauthoritative when entering an L1 that can write to shadow, i.e.
when entering L1 in VMX root mode.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 file changed