Jmp to vm_exit directly to avoid calling vmlaunch again if vm-entry fails in vmresume

It is possible that the vm-entry fails in vmresume instr under some scenarios.
It will pass to next instruction following vmresume. In such case it will call
the vmlaunch again.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
Zhao Yakui 2018-03-16 09:04:39 +08:00 committed by Jack Ren
parent f4780c0cd4
commit fe9dfc7842

View File

@ -109,6 +109,9 @@ next:
/* Execute a VM resume */
vmresume
/* jump to vm_exit directly when it fails in vmresume */
jmp vm_exit
vm_launch:
/* Execute a VM launch */