Re: [RESEND PATCH 08/13] KVM: x86: Move #UD injection for failed emulation into emulation code

From: Sean Christopherson
Date: Tue Aug 27 2019 - 16:22:22 EST


On Fri, Aug 23, 2019 at 04:48:16PM +0300, Liran Alon wrote:
>
>
> > On 23 Aug 2019, at 4:07, Sean Christopherson <sean.j.christopherson@xxxxxxxxx> wrote:
> >
> > Immediately inject a #UD and return EMULATE done if emulation fails when
> > handling an intercepted #UD. This helps pave the way for removing
> > EMULATE_FAIL altogether.
> >
> > Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
>
> I suggest squashing this commit which previous one.

Missed this comment first time around...

I'd like to keep the two patches separate in this case. Adding the
EMULTYPE_TRAP_UD_FORCED flag is a functional change, whereas this patch
is purely a refactor.