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

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * vmx.h: VMX Architecture related definitions
 * Copyright (c) 2004, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place - Suite 330, Boston, MA 02111-1307 USA.
 *
 * A few random additions are:
 * Copyright (C) 2006 Qumranet
 *    Avi Kivity <[email protected]>
 *    Yaniv Kamay <[email protected]>
 *
 */
#ifndef _UAPIVMX_H
#define _UAPIVMX_H


#define VMX_EXIT_REASONS_FAILED_VMENTRY
#define VMX_EXIT_REASONS_SGX_ENCLAVE_MODE

#define EXIT_REASON_EXCEPTION_NMI
#define EXIT_REASON_EXTERNAL_INTERRUPT
#define EXIT_REASON_TRIPLE_FAULT
#define EXIT_REASON_INIT_SIGNAL
#define EXIT_REASON_SIPI_SIGNAL

#define EXIT_REASON_INTERRUPT_WINDOW
#define EXIT_REASON_NMI_WINDOW
#define EXIT_REASON_TASK_SWITCH
#define EXIT_REASON_CPUID
#define EXIT_REASON_HLT
#define EXIT_REASON_INVD
#define EXIT_REASON_INVLPG
#define EXIT_REASON_RDPMC
#define EXIT_REASON_RDTSC
#define EXIT_REASON_VMCALL
#define EXIT_REASON_VMCLEAR
#define EXIT_REASON_VMLAUNCH
#define EXIT_REASON_VMPTRLD
#define EXIT_REASON_VMPTRST
#define EXIT_REASON_VMREAD
#define EXIT_REASON_VMRESUME
#define EXIT_REASON_VMWRITE
#define EXIT_REASON_VMOFF
#define EXIT_REASON_VMON
#define EXIT_REASON_CR_ACCESS
#define EXIT_REASON_DR_ACCESS
#define EXIT_REASON_IO_INSTRUCTION
#define EXIT_REASON_MSR_READ
#define EXIT_REASON_MSR_WRITE
#define EXIT_REASON_INVALID_STATE
#define EXIT_REASON_MSR_LOAD_FAIL
#define EXIT_REASON_MWAIT_INSTRUCTION
#define EXIT_REASON_MONITOR_TRAP_FLAG
#define EXIT_REASON_MONITOR_INSTRUCTION
#define EXIT_REASON_PAUSE_INSTRUCTION
#define EXIT_REASON_MCE_DURING_VMENTRY
#define EXIT_REASON_TPR_BELOW_THRESHOLD
#define EXIT_REASON_APIC_ACCESS
#define EXIT_REASON_EOI_INDUCED
#define EXIT_REASON_GDTR_IDTR
#define EXIT_REASON_LDTR_TR
#define EXIT_REASON_EPT_VIOLATION
#define EXIT_REASON_EPT_MISCONFIG
#define EXIT_REASON_INVEPT
#define EXIT_REASON_RDTSCP
#define EXIT_REASON_PREEMPTION_TIMER
#define EXIT_REASON_INVVPID
#define EXIT_REASON_WBINVD
#define EXIT_REASON_XSETBV
#define EXIT_REASON_APIC_WRITE
#define EXIT_REASON_RDRAND
#define EXIT_REASON_INVPCID
#define EXIT_REASON_VMFUNC
#define EXIT_REASON_ENCLS
#define EXIT_REASON_RDSEED
#define EXIT_REASON_PML_FULL
#define EXIT_REASON_XSAVES
#define EXIT_REASON_XRSTORS
#define EXIT_REASON_UMWAIT
#define EXIT_REASON_TPAUSE
#define EXIT_REASON_BUS_LOCK
#define EXIT_REASON_NOTIFY

#define VMX_EXIT_REASONS

#define VMX_EXIT_REASON_FLAGS

#define VMX_ABORT_SAVE_GUEST_MSR_FAIL
#define VMX_ABORT_LOAD_HOST_PDPTE_FAIL
#define VMX_ABORT_LOAD_HOST_MSR_FAIL

#endif /* _UAPIVMX_H */