x86/vmx: Avoid hitting BUG_ON() after EPTP-related domain_crash()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Aug 2018 11:47:50 +0000 (12:47 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Aug 2018 09:10:43 +0000 (10:10 +0100)
commit48dbb2dbe9d9f92a2890a15bb48a0598c065b9f8
tree2782bc10dc9e1dcabed8dd1eb21125431c2f2e34
parented5f8d9ca47e69e30221c37ec812f2b38af19d83
x86/vmx: Avoid hitting BUG_ON() after EPTP-related domain_crash()

If the EPTP pointer can't be located in the altp2m list, the domain
is (legitimately) crashed.

Under those circumstances, execution will continue and guarentee to hit the
BUG_ON(idx >= MAX_ALTP2M) (unfortunately, just out of context).

Return from vmx_vmexit_handler() after the domain_crash(), which also has the
side effect of reentering the scheduler more promptly.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c