]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Capture "struct x86_exception" in inject_emulated_exception()
authorHou Wenlong <houwenlong.hwl@antgroup.com>
Fri, 15 May 2026 22:26:30 +0000 (15:26 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 21 May 2026 21:21:28 +0000 (14:21 -0700)
commit17afe9b750f2aba44ea398edda8c0740e438b7cf
tree2fad315e8a322aaacb285cf71c07219515d4cef8
parentc5bad4fa2d5dfd8c25140051a9807eba387a19b8
KVM: x86: Capture "struct x86_exception" in inject_emulated_exception()

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@google.com>
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Reviewed-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260515222638.1949982-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c