Skip to content

Commit 843af0f

Browse files
committed
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>
1 parent 2965993 commit 843af0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86/kvm/mmu/mmutrace.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
{ PFERR_PRESENT_MASK, "P" }, \
5252
{ PFERR_WRITE_MASK, "W" }, \
5353
{ PFERR_USER_MASK, "U" }, \
54+
{ PFERR_PK_MASK, "PK" }, \
55+
{ PFERR_SS_MASK, "SS" }, \
56+
{ PFERR_SGX_MASK, "SGX" }, \
5457
{ PFERR_RSVD_MASK, "RSVD" }, \
5558
{ PFERR_FETCH_MASK, "F" }
5659

0 commit comments

Comments
 (0)