Skip to content

Commit f8d8661

Browse files
committed
tools headers UAPI: Synch KVM's svm.h header with the kernel
To pick up the changes from: d5af44d ("x86/sev: Provide support for SNP guest request NAEs") 0afb6b6 ("x86/sev: Use SEV-SNP AP creation to start secondary CPUs") dc3f3d2 ("x86/mm: Validate memory when changing the C-bit") cbd3d4f ("x86/sev: Check SEV-SNP features support") That gets these new SVM exit reasons: + { SVM_VMGEXIT_PSC, "vmgexit_page_state_change" }, \ + { SVM_VMGEXIT_GUEST_REQUEST, "vmgexit_guest_request" }, \ + { SVM_VMGEXIT_EXT_GUEST_REQUEST, "vmgexit_ext_guest_request" }, \ + { SVM_VMGEXIT_AP_CREATION, "vmgexit_ap_creation" }, \ + { SVM_VMGEXIT_HV_FEATURES, "vmgexit_hypervisor_feature" }, \ Addressing this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/svm.h' differs from latest version at 'arch/x86/include/uapi/asm/svm.h' diff -u tools/arch/x86/include/uapi/asm/svm.h arch/x86/include/uapi/asm/svm.h This causes these changes: CC /tmp/build/perf-urgent/arch/x86/util/kvm-stat.o LD /tmp/build/perf-urgent/arch/x86/util/perf-in.o LD /tmp/build/perf-urgent/arch/x86/perf-in.o LD /tmp/build/perf-urgent/arch/perf-in.o LD /tmp/build/perf-urgent/perf-in.o LINK /tmp/build/perf-urgent/perf Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent e2213a2 commit f8d8661

File tree

1 file changed

+13
-0
lines changed
  • tools/arch/x86/include/uapi/asm

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@
108108
#define SVM_VMGEXIT_AP_JUMP_TABLE 0x80000005
109109
#define SVM_VMGEXIT_SET_AP_JUMP_TABLE 0
110110
#define SVM_VMGEXIT_GET_AP_JUMP_TABLE 1
111+
#define SVM_VMGEXIT_PSC 0x80000010
112+
#define SVM_VMGEXIT_GUEST_REQUEST 0x80000011
113+
#define SVM_VMGEXIT_EXT_GUEST_REQUEST 0x80000012
114+
#define SVM_VMGEXIT_AP_CREATION 0x80000013
115+
#define SVM_VMGEXIT_AP_CREATE_ON_INIT 0
116+
#define SVM_VMGEXIT_AP_CREATE 1
117+
#define SVM_VMGEXIT_AP_DESTROY 2
118+
#define SVM_VMGEXIT_HV_FEATURES 0x8000fffd
111119
#define SVM_VMGEXIT_UNSUPPORTED_EVENT 0x8000ffff
112120

113121
/* Exit code reserved for hypervisor/software use */
@@ -218,6 +226,11 @@
218226
{ SVM_VMGEXIT_NMI_COMPLETE, "vmgexit_nmi_complete" }, \
219227
{ SVM_VMGEXIT_AP_HLT_LOOP, "vmgexit_ap_hlt_loop" }, \
220228
{ SVM_VMGEXIT_AP_JUMP_TABLE, "vmgexit_ap_jump_table" }, \
229+
{ SVM_VMGEXIT_PSC, "vmgexit_page_state_change" }, \
230+
{ SVM_VMGEXIT_GUEST_REQUEST, "vmgexit_guest_request" }, \
231+
{ SVM_VMGEXIT_EXT_GUEST_REQUEST, "vmgexit_ext_guest_request" }, \
232+
{ SVM_VMGEXIT_AP_CREATION, "vmgexit_ap_creation" }, \
233+
{ SVM_VMGEXIT_HV_FEATURES, "vmgexit_hypervisor_feature" }, \
221234
{ SVM_EXIT_ERR, "invalid_guest_state" }
222235

223236

0 commit comments

Comments
 (0)