1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPIVMX_H 20 #define _UAPIVMX_H 21 #define VMX_EXIT_REASONS_FAILED_VMENTRY 0x80000000 22 #define EXIT_REASON_EXCEPTION_NMI 0 23 #define EXIT_REASON_EXTERNAL_INTERRUPT 1 24 #define EXIT_REASON_TRIPLE_FAULT 2 25 #define EXIT_REASON_INIT_SIGNAL 3 26 #define EXIT_REASON_INTERRUPT_WINDOW 7 27 #define EXIT_REASON_NMI_WINDOW 8 28 #define EXIT_REASON_TASK_SWITCH 9 29 #define EXIT_REASON_CPUID 10 30 #define EXIT_REASON_HLT 12 31 #define EXIT_REASON_INVD 13 32 #define EXIT_REASON_INVLPG 14 33 #define EXIT_REASON_RDPMC 15 34 #define EXIT_REASON_RDTSC 16 35 #define EXIT_REASON_VMCALL 18 36 #define EXIT_REASON_VMCLEAR 19 37 #define EXIT_REASON_VMLAUNCH 20 38 #define EXIT_REASON_VMPTRLD 21 39 #define EXIT_REASON_VMPTRST 22 40 #define EXIT_REASON_VMREAD 23 41 #define EXIT_REASON_VMRESUME 24 42 #define EXIT_REASON_VMWRITE 25 43 #define EXIT_REASON_VMOFF 26 44 #define EXIT_REASON_VMON 27 45 #define EXIT_REASON_CR_ACCESS 28 46 #define EXIT_REASON_DR_ACCESS 29 47 #define EXIT_REASON_IO_INSTRUCTION 30 48 #define EXIT_REASON_MSR_READ 31 49 #define EXIT_REASON_MSR_WRITE 32 50 #define EXIT_REASON_INVALID_STATE 33 51 #define EXIT_REASON_MSR_LOAD_FAIL 34 52 #define EXIT_REASON_MWAIT_INSTRUCTION 36 53 #define EXIT_REASON_MONITOR_TRAP_FLAG 37 54 #define EXIT_REASON_MONITOR_INSTRUCTION 39 55 #define EXIT_REASON_PAUSE_INSTRUCTION 40 56 #define EXIT_REASON_MCE_DURING_VMENTRY 41 57 #define EXIT_REASON_TPR_BELOW_THRESHOLD 43 58 #define EXIT_REASON_APIC_ACCESS 44 59 #define EXIT_REASON_EOI_INDUCED 45 60 #define EXIT_REASON_GDTR_IDTR 46 61 #define EXIT_REASON_LDTR_TR 47 62 #define EXIT_REASON_EPT_VIOLATION 48 63 #define EXIT_REASON_EPT_MISCONFIG 49 64 #define EXIT_REASON_INVEPT 50 65 #define EXIT_REASON_RDTSCP 51 66 #define EXIT_REASON_PREEMPTION_TIMER 52 67 #define EXIT_REASON_INVVPID 53 68 #define EXIT_REASON_WBINVD 54 69 #define EXIT_REASON_XSETBV 55 70 #define EXIT_REASON_APIC_WRITE 56 71 #define EXIT_REASON_RDRAND 57 72 #define EXIT_REASON_INVPCID 58 73 #define EXIT_REASON_VMFUNC 59 74 #define EXIT_REASON_ENCLS 60 75 #define EXIT_REASON_RDSEED 61 76 #define EXIT_REASON_PML_FULL 62 77 #define EXIT_REASON_XSAVES 63 78 #define EXIT_REASON_XRSTORS 64 79 #define EXIT_REASON_UMWAIT 67 80 #define EXIT_REASON_TPAUSE 68 81 #define VMX_EXIT_REASONS { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, { EXIT_REASON_EXTERNAL_INTERRUPT, "EXTERNAL_INTERRUPT" }, { EXIT_REASON_TRIPLE_FAULT, "TRIPLE_FAULT" }, { EXIT_REASON_INIT_SIGNAL, "INIT_SIGNAL" }, { EXIT_REASON_INTERRUPT_WINDOW, "INTERRUPT_WINDOW" }, { EXIT_REASON_NMI_WINDOW, "NMI_WINDOW" }, { EXIT_REASON_TASK_SWITCH, "TASK_SWITCH" }, { EXIT_REASON_CPUID, "CPUID" }, { EXIT_REASON_HLT, "HLT" }, { EXIT_REASON_INVD, "INVD" }, { EXIT_REASON_INVLPG, "INVLPG" }, { EXIT_REASON_RDPMC, "RDPMC" }, { EXIT_REASON_RDTSC, "RDTSC" }, { EXIT_REASON_VMCALL, "VMCALL" }, { EXIT_REASON_VMCLEAR, "VMCLEAR" }, { EXIT_REASON_VMLAUNCH, "VMLAUNCH" }, { EXIT_REASON_VMPTRLD, "VMPTRLD" }, { EXIT_REASON_VMPTRST, "VMPTRST" }, { EXIT_REASON_VMREAD, "VMREAD" }, { EXIT_REASON_VMRESUME, "VMRESUME" }, { EXIT_REASON_VMWRITE, "VMWRITE" }, { EXIT_REASON_VMOFF, "VMOFF" }, { EXIT_REASON_VMON, "VMON" }, { EXIT_REASON_CR_ACCESS, "CR_ACCESS" }, { EXIT_REASON_DR_ACCESS, "DR_ACCESS" }, { EXIT_REASON_IO_INSTRUCTION, "IO_INSTRUCTION" }, { EXIT_REASON_MSR_READ, "MSR_READ" }, { EXIT_REASON_MSR_WRITE, "MSR_WRITE" }, { EXIT_REASON_INVALID_STATE, "INVALID_STATE" }, { EXIT_REASON_MSR_LOAD_FAIL, "MSR_LOAD_FAIL" }, { EXIT_REASON_MWAIT_INSTRUCTION, "MWAIT_INSTRUCTION" }, { EXIT_REASON_MONITOR_TRAP_FLAG, "MONITOR_TRAP_FLAG" }, { EXIT_REASON_MONITOR_INSTRUCTION, "MONITOR_INSTRUCTION" }, { EXIT_REASON_PAUSE_INSTRUCTION, "PAUSE_INSTRUCTION" }, { EXIT_REASON_MCE_DURING_VMENTRY, "MCE_DURING_VMENTRY" }, { EXIT_REASON_TPR_BELOW_THRESHOLD, "TPR_BELOW_THRESHOLD" }, { EXIT_REASON_APIC_ACCESS, "APIC_ACCESS" }, { EXIT_REASON_EOI_INDUCED, "EOI_INDUCED" }, { EXIT_REASON_GDTR_IDTR, "GDTR_IDTR" }, { EXIT_REASON_LDTR_TR, "LDTR_TR" }, { EXIT_REASON_EPT_VIOLATION, "EPT_VIOLATION" }, { EXIT_REASON_EPT_MISCONFIG, "EPT_MISCONFIG" }, { EXIT_REASON_INVEPT, "INVEPT" }, { EXIT_REASON_RDTSCP, "RDTSCP" }, { EXIT_REASON_PREEMPTION_TIMER, "PREEMPTION_TIMER" }, { EXIT_REASON_INVVPID, "INVVPID" }, { EXIT_REASON_WBINVD, "WBINVD" }, { EXIT_REASON_XSETBV, "XSETBV" }, { EXIT_REASON_APIC_WRITE, "APIC_WRITE" }, { EXIT_REASON_RDRAND, "RDRAND" }, { EXIT_REASON_INVPCID, "INVPCID" }, { EXIT_REASON_VMFUNC, "VMFUNC" }, { EXIT_REASON_ENCLS, "ENCLS" }, { EXIT_REASON_RDSEED, "RDSEED" }, { EXIT_REASON_PML_FULL, "PML_FULL" }, { EXIT_REASON_XSAVES, "XSAVES" }, { EXIT_REASON_XRSTORS, "XRSTORS" }, { EXIT_REASON_UMWAIT, "UMWAIT" }, { EXIT_REASON_TPAUSE, "TPAUSE" } 82 #define VMX_ABORT_SAVE_GUEST_MSR_FAIL 1 83 #define VMX_ABORT_LOAD_HOST_PDPTE_FAIL 2 84 #define VMX_ABORT_LOAD_HOST_MSR_FAIL 4 85 #endif 86