Skip to content

Commit 649a0cc

Browse files
committed
tools headers svm: Sync svm headers with the kernel sources
To pick the changes in: b8c3c9f ("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) <[email protected]> Cc: Neeraj Upadhyay <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent b1d46bc commit 649a0cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
#define SVM_VMGEXIT_AP_CREATE 1
119119
#define SVM_VMGEXIT_AP_DESTROY 2
120120
#define SVM_VMGEXIT_SNP_RUN_VMPL 0x80000018
121+
#define SVM_VMGEXIT_SAVIC 0x8000001a
122+
#define SVM_VMGEXIT_SAVIC_REGISTER_GPA 0
123+
#define SVM_VMGEXIT_SAVIC_UNREGISTER_GPA 1
124+
#define SVM_VMGEXIT_SAVIC_SELF_GPA ~0ULL
121125
#define SVM_VMGEXIT_HV_FEATURES 0x8000fffd
122126
#define SVM_VMGEXIT_TERM_REQUEST 0x8000fffe
123127
#define SVM_VMGEXIT_TERM_REASON(reason_set, reason_code) \

0 commit comments

Comments
 (0)