]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Consolidate SEV-ES MMIO emulation into a single public API
authorSean Christopherson <seanjc@google.com>
Wed, 25 Feb 2026 01:20:44 +0000 (17:20 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 3 Mar 2026 00:02:53 +0000 (16:02 -0800)
commit326e810eaaa53ae38c21855da064bfed26a44045
treec22289d90fa372c4c44fd00262ac83af02f3db89
parent33e09e2f9735fef7255aa96d1fe00782777bc44b
KVM: x86: Consolidate SEV-ES MMIO emulation into a single public API

Dedup kvm_sev_es_mmio_{read,write}() into a single API, as the "cost" of
plumbing in a boolean is largely negligible since KVM pulls out a boolean
for ops->write anyways, and consolidating the APIs will allow for
additional cleanups.

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