]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Trace unsatisfied MMIO reads on a per-page basis
authorSean Christopherson <seanjc@google.com>
Wed, 25 Feb 2026 01:20:38 +0000 (17:20 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 3 Mar 2026 00:02:52 +0000 (16:02 -0800)
commit4f11fded5381eb32ca2e0f1e280c6eb97eff92c8
tree35a04791da684d7f4563f72900f93fe923453185
parent4046823e78b0c9abd25d23bffd7f1c773532dbfd
KVM: x86: Trace unsatisfied MMIO reads on a per-page basis

Invoke the "unsatisfied MMIO reads" when KVM first detects that a
particular access "chunk" requires an exit to userspace instead of tracing
the entire access at the time KVM initiates the exit to userspace.  I.e.
precisely trace the first and/or second fragments of a page split instead
of tracing the entire access, as the GPA could be wrong on a page split
case.

Leave the completion tracepoint alone, at least for now, as fixing the
completion path would incur significantly complexity to track exactly which
fragment(s) of the overall access actually triggered MMIO, but add a
comment that the tracing for completed reads in is technically wrong.

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