Skip to content

Commit c30c187

Browse files
committed
tools headers UAPI: Sync KVM's vmx.h header with the kernel sources
To pick the changes in: 6c441e4 ("KVM: TDX: Handle EXIT_REASON_OTHER_SMI") c42856a ("KVM: TDX: Add a place holder for handler of TDX hypercalls (TDG.VP.VMCALL)") That makes 'perf kvm-stat' aware of this new TDCALL exit reason, thus addressing the following perf build warning: Warning: Kernel ABI header differences: diff -u tools/arch/x86/include/uapi/asm/vmx.h arch/x86/include/uapi/asm/vmx.h Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Isaku Yamahata <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paolo Bonzini <[email protected]> Link: https://lore.kernel.org/r/aErcVn_4plQyODR1@x1 Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent f1e30a4 commit c30c187

File tree

1 file changed

+4
-1
lines changed
  • tools/arch/x86/include/uapi/asm

1 file changed

+4
-1
lines changed

tools/arch/x86/include/uapi/asm/vmx.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define EXIT_REASON_TRIPLE_FAULT 2
3535
#define EXIT_REASON_INIT_SIGNAL 3
3636
#define EXIT_REASON_SIPI_SIGNAL 4
37+
#define EXIT_REASON_OTHER_SMI 6
3738

3839
#define EXIT_REASON_INTERRUPT_WINDOW 7
3940
#define EXIT_REASON_NMI_WINDOW 8
@@ -92,6 +93,7 @@
9293
#define EXIT_REASON_TPAUSE 68
9394
#define EXIT_REASON_BUS_LOCK 74
9495
#define EXIT_REASON_NOTIFY 75
96+
#define EXIT_REASON_TDCALL 77
9597

9698
#define VMX_EXIT_REASONS \
9799
{ EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, \
@@ -155,7 +157,8 @@
155157
{ EXIT_REASON_UMWAIT, "UMWAIT" }, \
156158
{ EXIT_REASON_TPAUSE, "TPAUSE" }, \
157159
{ EXIT_REASON_BUS_LOCK, "BUS_LOCK" }, \
158-
{ EXIT_REASON_NOTIFY, "NOTIFY" }
160+
{ EXIT_REASON_NOTIFY, "NOTIFY" }, \
161+
{ EXIT_REASON_TDCALL, "TDCALL" }
159162

160163
#define VMX_EXIT_REASON_FLAGS \
161164
{ VMX_EXIT_REASONS_FAILED_VMENTRY, "FAILED_VMENTRY" }

0 commit comments

Comments
 (0)