Skip to content

Commit 4cd012e

Browse files
author
Maxim Levitsky
committed
tools headers UAPI: Sync KVM's vmx.h header with the kernel sources
JIRA: https://issues.redhat.com/browse/RHEL-47242 commit c30c187 Author: Arnaldo Carvalho de Melo <acme@redhat.com> Date: Thu Jun 12 10:44:07 2025 -0300 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 <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Isaku Yamahata <isaku.yamahata@intel.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/aErcVn_4plQyODR1@x1 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
1 parent 0726fd0 commit 4cd012e

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)