vmx: fix hlt idle problem

This commit is contained in:
cinap_lenrek 2017-08-07 19:10:32 +02:00
parent e0474599dd
commit ddf977d25c
2 changed files with 2 additions and 2 deletions

View file

@ -434,7 +434,7 @@ dbgexc(ExitInfo *ei)
static void static void
hlt(ExitInfo *ei) hlt(ExitInfo *ei)
{ {
if(irqactive == 0) if(irqactive < 0)
state = VMHALT; state = VMHALT;
skipinstr(ei); skipinstr(ei);
} }

View file

@ -282,7 +282,7 @@ picio(int isin, u16int port, u32int val, int sz, void *)
case 0x20: case 0x20:
case 0xa0: case 0xa0:
if((val & 1<<4) != 0){ /* ICW1 */ if((val & 1<<4) != 0){ /* ICW1 */
if(irqactive){ if(irqactive >= 0){
if(ctl("irq") < 0) if(ctl("irq") < 0)
sysfatal("ctl: %r"); sysfatal("ctl: %r");
irqactive = -1; irqactive = -1;