target-i386: Allow interrupt injection after STGI

We need to terminate the translation block after STGI so that pending
interrupts can be injected.

This fixes pending NMI injection for Jailhouse which uses "stgi; clgi"
to open a brief injection window.

Backports commit df2518aa587a0157bbfbc635fe47295629d9914a from qemu
This commit is contained in:
Jan Kiszka 2018-07-03 01:26:23 -04:00 committed by Lioncash
parent 7c01627388
commit fab6f4cd3a
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -8074,8 +8074,9 @@ case 0x101:
break;
}
gen_update_cc_op(s);
gen_jmp_im(s, pc_start - s->cs_base);
gen_helper_stgi(tcg_ctx, cpu_env);
gen_jmp_im(s, s->pc - s->cs_base);
gen_eob(s);
break;
case 0xdd: /* CLGI */