PANIC fix

This commit is contained in:
Stanislav Shwartsman 2010-03-16 15:11:03 +00:00
parent f4e2801e13
commit bc96e7e411

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: vmx.cc,v 1.40 2010-03-16 14:51:20 sshwarts Exp $
// $Id: vmx.cc,v 1.41 2010-03-16 15:11:03 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009 Stanislav Shwartsman
@ -1743,7 +1743,8 @@ void BX_CPU_C::VMexit(bxInstruction_c *i, Bit32u reason, Bit64u qualification)
VMCS_CACHE *vm = &BX_CPU_THIS_PTR vmcs;
if (!BX_CPU_THIS_PTR in_vmx || !BX_CPU_THIS_PTR in_vmx_guest) {
BX_PANIC(("PANIC: VMEXIT not in VMX guest mode !"));
if ((reason & 0x80000000) == 0)
BX_PANIC(("PANIC: VMEXIT not in VMX guest mode !"));
}
// VMEXITs are FAULT-like: restore RIP/RSP to value before VMEXIT occurred