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
hlt(ExitInfo *ei)
{
if(irqactive == 0)
if(irqactive < 0)
state = VMHALT;
skipinstr(ei);
}

View file

@ -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;