vmx: fix hlt idle problem
This commit is contained in:
parent
e0474599dd
commit
ddf977d25c
2 changed files with 2 additions and 2 deletions
|
@ -434,7 +434,7 @@ dbgexc(ExitInfo *ei)
|
|||
static void
|
||||
hlt(ExitInfo *ei)
|
||||
{
|
||||
if(irqactive == 0)
|
||||
if(irqactive < 0)
|
||||
state = VMHALT;
|
||||
skipinstr(ei);
|
||||
}
|
||||
|
|
|
@ -282,7 +282,7 @@ picio(int isin, u16int port, u32int val, int sz, void *)
|
|||
case 0x20:
|
||||
case 0xa0:
|
||||
if((val & 1<<4) != 0){ /* ICW1 */
|
||||
if(irqactive){
|
||||
if(irqactive >= 0){
|
||||
if(ctl("irq") < 0)
|
||||
sysfatal("ctl: %r");
|
||||
irqactive = -1;
|
||||
|
|
Loading…
Reference in a new issue