]> Gentwo Git Trees - linux/.git/commitdiff
tools headers svm: Sync svm headers with the kernel sources
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 3 Nov 2025 15:18:17 +0000 (12:18 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 3 Nov 2025 16:29:53 +0000 (13:29 -0300)
To pick the changes in:

  b8c3c9f5d0505905 ("x86/apic: Initialize Secure AVIC APIC backing page")

That triggers:

  CC      /tmp/build/perf-tools/arch/x86/util/kvm-stat.o
  LD      /tmp/build/perf-tools/arch/x86/util/perf-util-in.o
  LD      /tmp/build/perf-tools/arch/x86/perf-util-in.o
  LD      /tmp/build/perf-tools/arch/perf-util-in.o
  LD      /tmp/build/perf-tools/perf-util-in.o
  AR      /tmp/build/perf-tools/libperf-util.a
  LINK    /tmp/build/perf-tools/perf

But this time causes no changes in tooling results, as the introduced
SVM_VMGEXIT_SAVIC exit reason wasn't added to SVM_EXIT_REASONS, that is
used in kvm-stat.c.

And addresses this perf build warning:

  Warning: Kernel ABI header differences:
    diff -u tools/arch/x86/include/uapi/asm/svm.h arch/x86/include/uapi/asm/svm.h

Please see tools/include/uapi/README for further details.

Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/arch/x86/include/uapi/asm/svm.h

index 9c640a521a67006da1e59df64e167808e9794252..650e3256ea7d7339091b86adfbd317ac5d25d61a 100644 (file)
 #define SVM_VMGEXIT_AP_CREATE                  1
 #define SVM_VMGEXIT_AP_DESTROY                 2
 #define SVM_VMGEXIT_SNP_RUN_VMPL               0x80000018
+#define SVM_VMGEXIT_SAVIC                      0x8000001a
+#define SVM_VMGEXIT_SAVIC_REGISTER_GPA         0
+#define SVM_VMGEXIT_SAVIC_UNREGISTER_GPA       1
+#define SVM_VMGEXIT_SAVIC_SELF_GPA             ~0ULL
 #define SVM_VMGEXIT_HV_FEATURES                        0x8000fffd
 #define SVM_VMGEXIT_TERM_REQUEST               0x8000fffe
 #define SVM_VMGEXIT_TERM_REASON(reason_set, reason_code)       \