]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Rename .read_write_emulate() to .read_write_guest()
authorSean Christopherson <seanjc@google.com>
Wed, 25 Feb 2026 01:20:47 +0000 (17:20 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 3 Mar 2026 00:02:53 +0000 (16:02 -0800)
commit216729846603d5be668a84d75c88ae097c27ae61
treeff2118653187a2ed1226683a137a95dcb665cf7c
parent929613b3cd1a97bc6e17100c0cab5668cd4eff90
KVM: x86: Rename .read_write_emulate() to .read_write_guest()

Rename the ops and helpers to read/write guest memory to clarify that they
do exactly that, i.e. aren't generic emulation flows and don't do anything
related to emulated MMIO.

Opportunistically add comments to explain the flow, e.g. it's not exactly
obvious that KVM deliberately treats "failed" accesses to guest memory as
emulated MMIO.

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