kvm: nVMX: Set nested_run_pending in vmx_set_nested_state after checks complete
authorAaron Lewis <aaronlewis@google.com>
Thu, 2 May 2019 18:31:25 +0000 (11:31 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 May 2019 12:14:08 +0000 (14:14 +0200)
commit9b5db6c762adcca120667b683af55700ffd7ae29
treeadad3a896c9ceee19d8b04c2683d0bee07376a3b
parentda1e3071d53d79b00b07b34a5853c8e42f35d745
kvm: nVMX: Set nested_run_pending in vmx_set_nested_state after checks complete

nested_run_pending=1 implies we have successfully entered guest mode.
Move setting from external state in vmx_set_nested_state() until after
all other checks are complete.

Based on a patch by Aaron Lewis.

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