Re: [PATCH v4 2/2] KVM: X86: Kill off ctxt->ud

From: Sean Christopherson
Date: Thu May 27 2021 - 20:28:45 EST


On Thu, May 27, 2021, Wanpeng Li wrote:
> From: Wanpeng Li <wanpengli@xxxxxxxxxxx>
>
> ctxt->ud is consumed only by x86_decode_insn(), we can kill it off by
> passing emulation_type to x86_decode_insn() and dropping ctxt->ud
> altogether. Tracking that info in ctxt for literally one call is silly.
>
> Suggested-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> Signed-off-by: Wanpeng Li <wanpengli@xxxxxxxxxxx>
> ---

Reviewed-by: Sean Christopherson <seanjc@xxxxxxxxxx>