]> Gentwo Git Trees - linux/.git/commitdiff
tools headers UAPI: Sync KVM's vmx.h header with the kernel sources to handle new...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 3 Nov 2025 16:24:47 +0000 (13:24 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 3 Nov 2025 16:29:53 +0000 (13:29 -0300)
To pick the changes in:

  885df2d2109a60f8 ("KVM: x86: Add support for RDMSR/WRMSRNS w/ immediate on Intel")
  c42856af8f70d983 ("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 <seanjc@google.com>
Cc: Xin Li <xin@zytor.com>
Cc: Isaku Yamahata <isaku.yamahata@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/arch/x86/include/uapi/asm/vmx.h

index f0f4a4cf84a7244e5c41465a97465c3aa7845383..9792e329343e8715b3c6a722663f5c1d162e870d 100644 (file)
@@ -94,6 +94,8 @@
 #define EXIT_REASON_BUS_LOCK            74
 #define EXIT_REASON_NOTIFY              75
 #define EXIT_REASON_TDCALL              77
+#define EXIT_REASON_MSR_READ_IMM        84
+#define EXIT_REASON_MSR_WRITE_IMM       85
 
 #define VMX_EXIT_REASONS \
        { EXIT_REASON_EXCEPTION_NMI,         "EXCEPTION_NMI" }, \
        { EXIT_REASON_TPAUSE,                "TPAUSE" }, \
        { EXIT_REASON_BUS_LOCK,              "BUS_LOCK" }, \
        { EXIT_REASON_NOTIFY,                "NOTIFY" }, \
-       { EXIT_REASON_TDCALL,                "TDCALL" }
+       { EXIT_REASON_TDCALL,                "TDCALL" }, \
+       { EXIT_REASON_MSR_READ_IMM,          "MSR_READ_IMM" }, \
+       { EXIT_REASON_MSR_WRITE_IMM,         "MSR_WRITE_IMM" }
 
 #define VMX_EXIT_REASON_FLAGS \
        { VMX_EXIT_REASONS_FAILED_VMENTRY,      "FAILED_VMENTRY" }