]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86/mmu: Pretty print PK, SS, and SGX flags in MMU tracepoints
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 22:32:29 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:17:32 +0000 (09:17 -0700)
commit843af0f2e4617db197034b27a9a658a59271f19f
tree651b05362520d5e569af357d299e97ddfad85efe
parent296599346c671f31854d674db2891ff2e1654b6a
KVM: x86/mmu: Pretty print PK, SS, and SGX flags in MMU tracepoints

Add PK (Protection Keys), SS (Shadow Stacks), and SGX (Software Guard
Extensions) to the set of #PF error flags handled via
kvm_mmu_trace_pferr_flags.  While KVM doesn't expect PK or SS #PFs in
particular, pretty print their names instead of the raw hex value saves
the user from having to go spelunking in the SDM to figure out what's
going on.

Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-23-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmutrace.h