]> xenbits.xensource.com Git - xen.git/commit
x86/vmx: Avoid hitting BUG_ON() after EPTP-related domain_crash()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Sep 2018 11:26:38 +0000 (13:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Sep 2018 11:26:38 +0000 (13:26 +0200)
commit5bb24b27924ba2b339cc79f57f224a4bf5c74313
tree4ed2a0bc6b498c28752c15e5ded0ab411ff1086f
parent71e51140fdeb98c8fefc3a7067b554212bb61ac9
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>
master commit: 48dbb2dbe9d9f92a2890a15bb48a0598c065b9f8
master date: 2018-08-02 10:10:43 +0100
xen/arch/x86/hvm/vmx/vmx.c