]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Bury emulator read/write ops in emulator_{read,write}_emulated()
authorSean Christopherson <seanjc@google.com>
Wed, 25 Feb 2026 01:20:45 +0000 (17:20 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 3 Mar 2026 00:02:53 +0000 (16:02 -0800)
commit3517193ef9c260e4a2677fd4e7dc09efd0f628bb
tree5268e765a912140b67d7b096230053edb6babfcd
parent326e810eaaa53ae38c21855da064bfed26a44045
KVM: x86: Bury emulator read/write ops in emulator_{read,write}_emulated()

Now that SEV-ES invokes vcpu_mmio_{read,write}() directly, bury the
read vs. write emulator ops in the dedicated emulator callbacks so that
they are colocated with their usage, and to make it harder for
non-emulator code to use hooks that are intended for the emulator.

Opportunistically rename the structures to get rid of the long-standing
"emultor" typo.

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-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c