Re: [PATCH v3 02/10] KVM: x86: Capture "struct x86_exception" in inject_emulated_exception()

From: Yosry Ahmed

Date: Mon May 18 2026 - 14:01:41 EST


On Fri, May 15, 2026 at 03:26:30PM -0700, Sean Christopherson wrote:
> From: Hou Wenlong <houwenlong.hwl@xxxxxxxxxxxx>
>
> As all callers in inject_emulated_exception() use "struct x86_exception"
> directly, capture it locally instead of using the context.
>
> No functional change intended.
>
> Suggested-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> Signed-off-by: Hou Wenlong <houwenlong.hwl@xxxxxxxxxxxx>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>

Reviewed-by: Yosry Ahmed <yosry@xxxxxxxxxx>