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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define EXIT_REASON_EXTERNAL_INTERRUPT 1 25 #define EXIT_REASON_TRIPLE_FAULT 2 26 #define EXIT_REASON_PENDING_INTERRUPT 7 27 #define EXIT_REASON_NMI_WINDOW 8 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define EXIT_REASON_TASK_SWITCH 9 30 #define EXIT_REASON_CPUID 10 31 #define EXIT_REASON_HLT 12 32 #define EXIT_REASON_INVD 13 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define EXIT_REASON_INVLPG 14 35 #define EXIT_REASON_RDPMC 15 36 #define EXIT_REASON_RDTSC 16 37 #define EXIT_REASON_VMCALL 18 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define EXIT_REASON_VMCLEAR 19 40 #define EXIT_REASON_VMLAUNCH 20 41 #define EXIT_REASON_VMPTRLD 21 42 #define EXIT_REASON_VMPTRST 22 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define EXIT_REASON_VMREAD 23 45 #define EXIT_REASON_VMRESUME 24 46 #define EXIT_REASON_VMWRITE 25 47 #define EXIT_REASON_VMOFF 26 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define EXIT_REASON_VMON 27 50 #define EXIT_REASON_CR_ACCESS 28 51 #define EXIT_REASON_DR_ACCESS 29 52 #define EXIT_REASON_IO_INSTRUCTION 30 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define EXIT_REASON_MSR_READ 31 55 #define EXIT_REASON_MSR_WRITE 32 56 #define EXIT_REASON_INVALID_STATE 33 57 #define EXIT_REASON_MWAIT_INSTRUCTION 36 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define EXIT_REASON_MONITOR_INSTRUCTION 39 60 #define EXIT_REASON_PAUSE_INSTRUCTION 40 61 #define EXIT_REASON_MCE_DURING_VMENTRY 41 62 #define EXIT_REASON_TPR_BELOW_THRESHOLD 43 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define EXIT_REASON_APIC_ACCESS 44 65 #define EXIT_REASON_EOI_INDUCED 45 66 #define EXIT_REASON_EPT_VIOLATION 48 67 #define EXIT_REASON_EPT_MISCONFIG 49 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define EXIT_REASON_PREEMPTION_TIMER 52 70 #define EXIT_REASON_WBINVD 54 71 #define EXIT_REASON_XSETBV 55 72 #define EXIT_REASON_APIC_WRITE 56 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define EXIT_REASON_INVPCID 58 75 #define VMX_EXIT_REASONS { EXIT_REASON_EXCEPTION_NMI, "EXCEPTION_NMI" }, { EXIT_REASON_EXTERNAL_INTERRUPT, "EXTERNAL_INTERRUPT" }, { EXIT_REASON_TRIPLE_FAULT, "TRIPLE_FAULT" }, { EXIT_REASON_PENDING_INTERRUPT, "PENDING_INTERRUPT" }, { EXIT_REASON_NMI_WINDOW, "NMI_WINDOW" }, { EXIT_REASON_TASK_SWITCH, "TASK_SWITCH" }, { EXIT_REASON_CPUID, "CPUID" }, { EXIT_REASON_HLT, "HLT" }, { 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_MWAIT_INSTRUCTION, "MWAIT_INSTRUCTION" }, { 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_EPT_VIOLATION, "EPT_VIOLATION" }, { EXIT_REASON_EPT_MISCONFIG, "EPT_MISCONFIG" }, { EXIT_REASON_WBINVD, "WBINVD" }, { EXIT_REASON_APIC_WRITE, "APIC_WRITE" }, { EXIT_REASON_EOI_INDUCED, "EOI_INDUCED" }, { EXIT_REASON_INVALID_STATE, "INVALID_STATE" }, { EXIT_REASON_INVD, "INVD" }, { EXIT_REASON_INVPCID, "INVPCID" }, { EXIT_REASON_PREEMPTION_TIMER, "PREEMPTION_TIMER" } 76 #endif 77