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

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPI__SVM_H
#define _UAPI__SVM_H

#define SVM_EXIT_READ_CR0
#define SVM_EXIT_READ_CR2
#define SVM_EXIT_READ_CR3
#define SVM_EXIT_READ_CR4
#define SVM_EXIT_READ_CR8
#define SVM_EXIT_WRITE_CR0
#define SVM_EXIT_WRITE_CR2
#define SVM_EXIT_WRITE_CR3
#define SVM_EXIT_WRITE_CR4
#define SVM_EXIT_WRITE_CR8
#define SVM_EXIT_READ_DR0
#define SVM_EXIT_READ_DR1
#define SVM_EXIT_READ_DR2
#define SVM_EXIT_READ_DR3
#define SVM_EXIT_READ_DR4
#define SVM_EXIT_READ_DR5
#define SVM_EXIT_READ_DR6
#define SVM_EXIT_READ_DR7
#define SVM_EXIT_WRITE_DR0
#define SVM_EXIT_WRITE_DR1
#define SVM_EXIT_WRITE_DR2
#define SVM_EXIT_WRITE_DR3
#define SVM_EXIT_WRITE_DR4
#define SVM_EXIT_WRITE_DR5
#define SVM_EXIT_WRITE_DR6
#define SVM_EXIT_WRITE_DR7
#define SVM_EXIT_EXCP_BASE
#define SVM_EXIT_LAST_EXCP
#define SVM_EXIT_INTR
#define SVM_EXIT_NMI
#define SVM_EXIT_SMI
#define SVM_EXIT_INIT
#define SVM_EXIT_VINTR
#define SVM_EXIT_CR0_SEL_WRITE
#define SVM_EXIT_IDTR_READ
#define SVM_EXIT_GDTR_READ
#define SVM_EXIT_LDTR_READ
#define SVM_EXIT_TR_READ
#define SVM_EXIT_IDTR_WRITE
#define SVM_EXIT_GDTR_WRITE
#define SVM_EXIT_LDTR_WRITE
#define SVM_EXIT_TR_WRITE
#define SVM_EXIT_RDTSC
#define SVM_EXIT_RDPMC
#define SVM_EXIT_PUSHF
#define SVM_EXIT_POPF
#define SVM_EXIT_CPUID
#define SVM_EXIT_RSM
#define SVM_EXIT_IRET
#define SVM_EXIT_SWINT
#define SVM_EXIT_INVD
#define SVM_EXIT_PAUSE
#define SVM_EXIT_HLT
#define SVM_EXIT_INVLPG
#define SVM_EXIT_INVLPGA
#define SVM_EXIT_IOIO
#define SVM_EXIT_MSR
#define SVM_EXIT_TASK_SWITCH
#define SVM_EXIT_FERR_FREEZE
#define SVM_EXIT_SHUTDOWN
#define SVM_EXIT_VMRUN
#define SVM_EXIT_VMMCALL
#define SVM_EXIT_VMLOAD
#define SVM_EXIT_VMSAVE
#define SVM_EXIT_STGI
#define SVM_EXIT_CLGI
#define SVM_EXIT_SKINIT
#define SVM_EXIT_RDTSCP
#define SVM_EXIT_ICEBP
#define SVM_EXIT_WBINVD
#define SVM_EXIT_MONITOR
#define SVM_EXIT_MWAIT
#define SVM_EXIT_MWAIT_COND
#define SVM_EXIT_XSETBV
#define SVM_EXIT_RDPRU
#define SVM_EXIT_EFER_WRITE_TRAP
#define SVM_EXIT_CR0_WRITE_TRAP
#define SVM_EXIT_CR1_WRITE_TRAP
#define SVM_EXIT_CR2_WRITE_TRAP
#define SVM_EXIT_CR3_WRITE_TRAP
#define SVM_EXIT_CR4_WRITE_TRAP
#define SVM_EXIT_CR5_WRITE_TRAP
#define SVM_EXIT_CR6_WRITE_TRAP
#define SVM_EXIT_CR7_WRITE_TRAP
#define SVM_EXIT_CR8_WRITE_TRAP
#define SVM_EXIT_CR9_WRITE_TRAP
#define SVM_EXIT_CR10_WRITE_TRAP
#define SVM_EXIT_CR11_WRITE_TRAP
#define SVM_EXIT_CR12_WRITE_TRAP
#define SVM_EXIT_CR13_WRITE_TRAP
#define SVM_EXIT_CR14_WRITE_TRAP
#define SVM_EXIT_CR15_WRITE_TRAP
#define SVM_EXIT_INVPCID
#define SVM_EXIT_NPF
#define SVM_EXIT_AVIC_INCOMPLETE_IPI
#define SVM_EXIT_AVIC_UNACCELERATED_ACCESS
#define SVM_EXIT_VMGEXIT

/* SEV-ES software-defined VMGEXIT events */
#define SVM_VMGEXIT_MMIO_READ
#define SVM_VMGEXIT_MMIO_WRITE
#define SVM_VMGEXIT_NMI_COMPLETE
#define SVM_VMGEXIT_AP_HLT_LOOP
#define SVM_VMGEXIT_AP_JUMP_TABLE
#define SVM_VMGEXIT_SET_AP_JUMP_TABLE
#define SVM_VMGEXIT_GET_AP_JUMP_TABLE
#define SVM_VMGEXIT_PSC
#define SVM_VMGEXIT_GUEST_REQUEST
#define SVM_VMGEXIT_EXT_GUEST_REQUEST
#define SVM_VMGEXIT_AP_CREATION
#define SVM_VMGEXIT_AP_CREATE_ON_INIT
#define SVM_VMGEXIT_AP_CREATE
#define SVM_VMGEXIT_AP_DESTROY
#define SVM_VMGEXIT_SNP_RUN_VMPL
#define SVM_VMGEXIT_HV_FEATURES
#define SVM_VMGEXIT_TERM_REQUEST
#define SVM_VMGEXIT_TERM_REASON(reason_set, reason_code)
#define SVM_VMGEXIT_UNSUPPORTED_EVENT

/* Exit code reserved for hypervisor/software use */
#define SVM_EXIT_SW

#define SVM_EXIT_ERR

#define SVM_EXIT_REASONS


#endif /* _UAPI__SVM_H */