Skip to content

Commit fc9ef91

Browse files
committed
tools headers UAPI: Sync KVM's vmx.h header with the kernel sources to handle new exit reasons
To pick the changes in: 885df2d ("KVM: x86: Add support for RDMSR/WRMSRNS w/ immediate on Intel") c42856a ("KVM: TDX: Add a place holder for handler of TDX hypercalls (TDG.VP.VMCALL)") That makes 'perf kvm-stat' aware of these new TDCALL and MSR_{READ,WRITE}_IMM exit reasons, 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 Please see tools/include/uapi/README for further details. Cc: Sean Christopherson <[email protected]> Cc: Xin Li <[email protected]> Cc: Isaku Yamahata <[email protected]> Cc: Paolo Bonzini <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 649a0cc commit fc9ef91

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • tools/arch/x86/include/uapi/asm

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
#define EXIT_REASON_BUS_LOCK 74
9595
#define EXIT_REASON_NOTIFY 75
9696
#define EXIT_REASON_TDCALL 77
97+
#define EXIT_REASON_MSR_READ_IMM 84
98+
#define EXIT_REASON_MSR_WRITE_IMM 85
9799

98100
#define VMX_EXIT_REASONS \
99101
{ EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, \
@@ -158,7 +160,9 @@
158160
{ EXIT_REASON_TPAUSE, "TPAUSE" }, \
159161
{ EXIT_REASON_BUS_LOCK, "BUS_LOCK" }, \
160162
{ EXIT_REASON_NOTIFY, "NOTIFY" }, \
161-
{ EXIT_REASON_TDCALL, "TDCALL" }
163+
{ EXIT_REASON_TDCALL, "TDCALL" }, \
164+
{ EXIT_REASON_MSR_READ_IMM, "MSR_READ_IMM" }, \
165+
{ EXIT_REASON_MSR_WRITE_IMM, "MSR_WRITE_IMM" }
162166

163167
#define VMX_EXIT_REASON_FLAGS \
164168
{ VMX_EXIT_REASONS_FAILED_VMENTRY, "FAILED_VMENTRY" }

0 commit comments

Comments
 (0)