]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Use local MMIO fragment variable to clean up emulator_read_write()
authorSean Christopherson <seanjc@google.com>
Wed, 25 Feb 2026 01:20:39 +0000 (17:20 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 3 Mar 2026 00:02:52 +0000 (16:02 -0800)
commit523b6269f700373eba65ad8a0bfaac284a12c167
tree0963d8dc21e7af6622f2699c66ad216cfc88b2f7
parent4f11fded5381eb32ca2e0f1e280c6eb97eff92c8
KVM: x86: Use local MMIO fragment variable to clean up emulator_read_write()

Grab the MMIO fragment used by emulator_read_write() to initiate an exit
to userspace in a local variable to make the code easier to read.

No functional change intended.

Tested-by: Tom Lendacky <thomas.lendacky@gmail.com>
Tested-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Link: https://patch.msgid.link/20260225012049.920665-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c