As explicitly spelled out by the SDM, EFLAGS.VIF and EFLAGS.VIP both set at the start of an instruction trigger #GP(0) independent of actual instruction.
Signed-off-by: Jan Beulich <[email protected]> --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -3247,6 +3247,11 @@ x86_emulate( ASSERT(ops->read); + generate_exception_if((mode_vif() && + (_regs.eflags & X86_EFLAGS_VIF) && + (_regs.eflags & X86_EFLAGS_VIP)), + EXC_GP, 0); + rc = x86_decode(&state, ctxt, ops); if ( rc != X86EMUL_OKAY ) return rc; _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
