~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/include/asm/vmxfeatures.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _ASM_X86_VMXFEATURES_H
  3 #define _ASM_X86_VMXFEATURES_H
  4 
  5 /*
  6  * Defines VMX CPU feature bits
  7  */
  8 #define NVMXINTS                        5 /* N 32-bit words worth of info */
  9 
 10 /*
 11  * Note: If the comment begins with a quoted string, that string is used
 12  * in /proc/cpuinfo instead of the macro name.  Otherwise, this feature bit
 13  * is not displayed in /proc/cpuinfo at all.
 14  */
 15 
 16 /* Pin-Based VM-Execution Controls, EPT/VPID, APIC and VM-Functions, word 0 */
 17 #define VMX_FEATURE_INTR_EXITING        ( 0*32+  0) /* VM-Exit on vectored interrupts */
 18 #define VMX_FEATURE_NMI_EXITING         ( 0*32+  3) /* VM-Exit on NMIs */
 19 #define VMX_FEATURE_VIRTUAL_NMIS        ( 0*32+  5) /* "vnmi" NMI virtualization */
 20 #define VMX_FEATURE_PREEMPTION_TIMER    ( 0*32+  6) /* "preemption_timer" VMX Preemption Timer */
 21 #define VMX_FEATURE_POSTED_INTR         ( 0*32+  7) /* "posted_intr" Posted Interrupts */
 22 
 23 /* EPT/VPID features, scattered to bits 16-23 */
 24 #define VMX_FEATURE_INVVPID             ( 0*32+ 16) /* "invvpid" INVVPID is supported */
 25 #define VMX_FEATURE_EPT_EXECUTE_ONLY    ( 0*32+ 17) /* "ept_x_only" EPT entries can be execute only */
 26 #define VMX_FEATURE_EPT_AD              ( 0*32+ 18) /* "ept_ad" EPT Accessed/Dirty bits */
 27 #define VMX_FEATURE_EPT_1GB             ( 0*32+ 19) /* "ept_1gb" 1GB EPT pages */
 28 #define VMX_FEATURE_EPT_5LEVEL          ( 0*32+ 20) /* "ept_5level" 5-level EPT paging */
 29 
 30 /* Aggregated APIC features 24-27 */
 31 #define VMX_FEATURE_FLEXPRIORITY        ( 0*32+ 24) /* "flexpriority" TPR shadow + virt APIC */
 32 #define VMX_FEATURE_APICV               ( 0*32+ 25) /* "apicv" TPR shadow + APIC reg virt + virt intr delivery + posted interrupts */
 33 
 34 /* VM-Functions, shifted to bits 28-31 */
 35 #define VMX_FEATURE_EPTP_SWITCHING      ( 0*32+ 28) /* "eptp_switching" EPTP switching (in guest) */
 36 
 37 /* Primary Processor-Based VM-Execution Controls, word 1 */
 38 #define VMX_FEATURE_INTR_WINDOW_EXITING ( 1*32+  2) /* VM-Exit if INTRs are unblocked in guest */
 39 #define VMX_FEATURE_USE_TSC_OFFSETTING  ( 1*32+  3) /* "tsc_offset" Offset hardware TSC when read in guest */
 40 #define VMX_FEATURE_HLT_EXITING         ( 1*32+  7) /* VM-Exit on HLT */
 41 #define VMX_FEATURE_INVLPG_EXITING      ( 1*32+  9) /* VM-Exit on INVLPG */
 42 #define VMX_FEATURE_MWAIT_EXITING       ( 1*32+ 10) /* VM-Exit on MWAIT */
 43 #define VMX_FEATURE_RDPMC_EXITING       ( 1*32+ 11) /* VM-Exit on RDPMC */
 44 #define VMX_FEATURE_RDTSC_EXITING       ( 1*32+ 12) /* VM-Exit on RDTSC */
 45 #define VMX_FEATURE_CR3_LOAD_EXITING    ( 1*32+ 15) /* VM-Exit on writes to CR3 */
 46 #define VMX_FEATURE_CR3_STORE_EXITING   ( 1*32+ 16) /* VM-Exit on reads from CR3 */
 47 #define VMX_FEATURE_TERTIARY_CONTROLS   ( 1*32+ 17) /* Enable Tertiary VM-Execution Controls */
 48 #define VMX_FEATURE_CR8_LOAD_EXITING    ( 1*32+ 19) /* VM-Exit on writes to CR8 */
 49 #define VMX_FEATURE_CR8_STORE_EXITING   ( 1*32+ 20) /* VM-Exit on reads from CR8 */
 50 #define VMX_FEATURE_VIRTUAL_TPR         ( 1*32+ 21) /* "vtpr" TPR virtualization, a.k.a. TPR shadow */
 51 #define VMX_FEATURE_NMI_WINDOW_EXITING  ( 1*32+ 22) /* VM-Exit if NMIs are unblocked in guest */
 52 #define VMX_FEATURE_MOV_DR_EXITING      ( 1*32+ 23) /* VM-Exit on accesses to debug registers */
 53 #define VMX_FEATURE_UNCOND_IO_EXITING   ( 1*32+ 24) /* VM-Exit on *all* IN{S} and OUT{S}*/
 54 #define VMX_FEATURE_USE_IO_BITMAPS      ( 1*32+ 25) /* VM-Exit based on I/O port */
 55 #define VMX_FEATURE_MONITOR_TRAP_FLAG   ( 1*32+ 27) /* "mtf" VMX single-step VM-Exits */
 56 #define VMX_FEATURE_USE_MSR_BITMAPS     ( 1*32+ 28) /* VM-Exit based on MSR index */
 57 #define VMX_FEATURE_MONITOR_EXITING     ( 1*32+ 29) /* VM-Exit on MONITOR (MWAIT's accomplice) */
 58 #define VMX_FEATURE_PAUSE_EXITING       ( 1*32+ 30) /* VM-Exit on PAUSE (unconditionally) */
 59 #define VMX_FEATURE_SEC_CONTROLS        ( 1*32+ 31) /* Enable Secondary VM-Execution Controls */
 60 
 61 /* Secondary Processor-Based VM-Execution Controls, word 2 */
 62 #define VMX_FEATURE_VIRT_APIC_ACCESSES  ( 2*32+  0) /* "vapic" Virtualize memory mapped APIC accesses */
 63 #define VMX_FEATURE_EPT                 ( 2*32+  1) /* "ept" Extended Page Tables, a.k.a. Two-Dimensional Paging */
 64 #define VMX_FEATURE_DESC_EXITING        ( 2*32+  2) /* VM-Exit on {S,L}*DT instructions */
 65 #define VMX_FEATURE_RDTSCP              ( 2*32+  3) /* Enable RDTSCP in guest */
 66 #define VMX_FEATURE_VIRTUAL_X2APIC      ( 2*32+  4) /* Virtualize X2APIC for the guest */
 67 #define VMX_FEATURE_VPID                ( 2*32+  5) /* "vpid" Virtual Processor ID (TLB ASID modifier) */
 68 #define VMX_FEATURE_WBINVD_EXITING      ( 2*32+  6) /* VM-Exit on WBINVD */
 69 #define VMX_FEATURE_UNRESTRICTED_GUEST  ( 2*32+  7) /* "unrestricted_guest" Allow Big Real Mode and other "invalid" states */
 70 #define VMX_FEATURE_APIC_REGISTER_VIRT  ( 2*32+  8) /* "vapic_reg" Hardware emulation of reads to the virtual-APIC */
 71 #define VMX_FEATURE_VIRT_INTR_DELIVERY  ( 2*32+  9) /* "vid" Evaluation and delivery of pending virtual interrupts */
 72 #define VMX_FEATURE_PAUSE_LOOP_EXITING  ( 2*32+ 10) /* "ple" Conditionally VM-Exit on PAUSE at CPL0 */
 73 #define VMX_FEATURE_RDRAND_EXITING      ( 2*32+ 11) /* VM-Exit on RDRAND*/
 74 #define VMX_FEATURE_INVPCID             ( 2*32+ 12) /* Enable INVPCID in guest */
 75 #define VMX_FEATURE_VMFUNC              ( 2*32+ 13) /* Enable VM-Functions (leaf dependent) */
 76 #define VMX_FEATURE_SHADOW_VMCS         ( 2*32+ 14) /* "shadow_vmcs" VMREAD/VMWRITE in guest can access shadow VMCS */
 77 #define VMX_FEATURE_ENCLS_EXITING       ( 2*32+ 15) /* VM-Exit on ENCLS (leaf dependent) */
 78 #define VMX_FEATURE_RDSEED_EXITING      ( 2*32+ 16) /* VM-Exit on RDSEED */
 79 #define VMX_FEATURE_PAGE_MOD_LOGGING    ( 2*32+ 17) /* "pml" Log dirty pages into buffer */
 80 #define VMX_FEATURE_EPT_VIOLATION_VE    ( 2*32+ 18) /* "ept_violation_ve" Conditionally reflect EPT violations as #VE exceptions */
 81 #define VMX_FEATURE_PT_CONCEAL_VMX      ( 2*32+ 19) /* Suppress VMX indicators in Processor Trace */
 82 #define VMX_FEATURE_XSAVES              ( 2*32+ 20) /* Enable XSAVES and XRSTORS in guest */
 83 #define VMX_FEATURE_MODE_BASED_EPT_EXEC ( 2*32+ 22) /* "ept_mode_based_exec" Enable separate EPT EXEC bits for supervisor vs. user */
 84 #define VMX_FEATURE_PT_USE_GPA          ( 2*32+ 24) /* Processor Trace logs GPAs */
 85 #define VMX_FEATURE_TSC_SCALING         ( 2*32+ 25) /* "tsc_scaling" Scale hardware TSC when read in guest */
 86 #define VMX_FEATURE_USR_WAIT_PAUSE      ( 2*32+ 26) /* "usr_wait_pause" Enable TPAUSE, UMONITOR, UMWAIT in guest */
 87 #define VMX_FEATURE_ENCLV_EXITING       ( 2*32+ 28) /* VM-Exit on ENCLV (leaf dependent) */
 88 #define VMX_FEATURE_BUS_LOCK_DETECTION  ( 2*32+ 30) /* VM-Exit when bus lock caused */
 89 #define VMX_FEATURE_NOTIFY_VM_EXITING   ( 2*32+ 31) /* "notify_vm_exiting" VM-Exit when no event windows after notify window */
 90 
 91 /* Tertiary Processor-Based VM-Execution Controls, word 3 */
 92 #define VMX_FEATURE_IPI_VIRT            ( 3*32+  4) /* "ipi_virt" Enable IPI virtualization */
 93 #endif /* _ASM_X86_VMXFEATURES_H */
 94 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php