KVM: nVMX: include shadow vmcs12 in nested state
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jul 2018 17:45:51 +0000 (19:45 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:58:43 +0000 (17:58 +0200)
commitfa58a9fa74979f845fc6c94a58501e67f3abb6de
tree763f209a8891b58378cb3733f9fd29e54d642a0b
parent61ada7488ffdef0c0f83da14a12629870abb9e97
KVM: nVMX: include shadow vmcs12 in nested state

The shadow vmcs12 cannot be flushed on KVM_GET_NESTED_STATE,
because at that point guest memory is assumed by userspace to
be immutable.  Capture the cache in vmx_get_nested_state, adding
another page at the end if there is an active shadow vmcs12.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c