]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc686c2e71fcd69e156d142083670b97f675b9585
treeadad3a896c9ceee19d8b04c2683d0bee07376a3b
parent62e246187ba0532a8899bda674809c5646563182
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