]> 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)
commit291fc90f999e586ed7f318f6920018028c21345f
treeadad3a896c9ceee19d8b04c2683d0bee07376a3b
parente1ae2776b47c77888560960db2ed997c935df10a
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