xref: /xnu-12377.41.6/bsd/dev/dtrace/scripts/vmx_compat.d (revision bbb1b6f9e71b8cdde6e5cd6f4841f207dee3d828)
1*bbb1b6f9SApple OSS Distributions /*
2*bbb1b6f9SApple OSS Distributions  * CDDL HEADER START
3*bbb1b6f9SApple OSS Distributions  *
4*bbb1b6f9SApple OSS Distributions  * The contents of this file are subject to the terms of the
5*bbb1b6f9SApple OSS Distributions  * Common Development and Distribution License (the "License").
6*bbb1b6f9SApple OSS Distributions  * You may not use this file except in compliance with the License.
7*bbb1b6f9SApple OSS Distributions  *
8*bbb1b6f9SApple OSS Distributions  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*bbb1b6f9SApple OSS Distributions  * or http://www.opensolaris.org/os/licensing.
10*bbb1b6f9SApple OSS Distributions  * See the License for the specific language governing permissions
11*bbb1b6f9SApple OSS Distributions  * and limitations under the License.
12*bbb1b6f9SApple OSS Distributions  *
13*bbb1b6f9SApple OSS Distributions  * When distributing Covered Code, include this CDDL HEADER in each
14*bbb1b6f9SApple OSS Distributions  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*bbb1b6f9SApple OSS Distributions  * If applicable, add the following below this CDDL HEADER, with the
16*bbb1b6f9SApple OSS Distributions  * fields enclosed by brackets "[]" replaced with your own identifying
17*bbb1b6f9SApple OSS Distributions  * information: Portions Copyright [yyyy] [name of copyright owner]
18*bbb1b6f9SApple OSS Distributions  *
19*bbb1b6f9SApple OSS Distributions  * CDDL HEADER END
20*bbb1b6f9SApple OSS Distributions  *
21*bbb1b6f9SApple OSS Distributions  * Copyright 2011 Joyent, Inc.  All rights reserved.
22*bbb1b6f9SApple OSS Distributions  */
23*bbb1b6f9SApple OSS Distributions 
24*bbb1b6f9SApple OSS Distributions /*
25*bbb1b6f9SApple OSS Distributions  * This file delivers VMX description that is compatible with DTrace
26*bbb1b6f9SApple OSS Distributions  * upstream.
27*bbb1b6f9SApple OSS Distributions  */
28*bbb1b6f9SApple OSS Distributions 
29*bbb1b6f9SApple OSS Distributions enum vmregs_vmx {
30*bbb1b6f9SApple OSS Distributions 	VMX_VIRTUAL_PROCESSOR_ID			= 0x00000000,
31*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_ES_SELECTOR				= 0x00000800,
32*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_CS_SELECTOR				= 0x00000802,
33*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_SS_SELECTOR				= 0x00000804,
34*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_DS_SELECTOR				= 0x00000806,
35*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_FS_SELECTOR				= 0x00000808,
36*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_GS_SELECTOR				= 0x0000080a,
37*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_LDTR_SELECTOR				= 0x0000080c,
38*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_TR_SELECTOR				= 0x0000080e,
39*bbb1b6f9SApple OSS Distributions 	VMX_HOST_ES_SELECTOR				= 0x00000c00,
40*bbb1b6f9SApple OSS Distributions 	VMX_HOST_CS_SELECTOR				= 0x00000c02,
41*bbb1b6f9SApple OSS Distributions 	VMX_HOST_SS_SELECTOR				= 0x00000c04,
42*bbb1b6f9SApple OSS Distributions 	VMX_HOST_DS_SELECTOR				= 0x00000c06,
43*bbb1b6f9SApple OSS Distributions 	VMX_HOST_FS_SELECTOR				= 0x00000c08,
44*bbb1b6f9SApple OSS Distributions 	VMX_HOST_GS_SELECTOR				= 0x00000c0a,
45*bbb1b6f9SApple OSS Distributions 	VMX_HOST_TR_SELECTOR				= 0x00000c0c,
46*bbb1b6f9SApple OSS Distributions 	VMX_IO_BITMAP_A					= 0x00002000,
47*bbb1b6f9SApple OSS Distributions 	VMX_IO_BITMAP_A_HIGH				= 0x00002001,
48*bbb1b6f9SApple OSS Distributions 	VMX_IO_BITMAP_B					= 0x00002002,
49*bbb1b6f9SApple OSS Distributions 	VMX_IO_BITMAP_B_HIGH				= 0x00002003,
50*bbb1b6f9SApple OSS Distributions 	VMX_MSR_BITMAP					= 0x00002004,
51*bbb1b6f9SApple OSS Distributions 	VMX_MSR_BITMAP_HIGH				= 0x00002005,
52*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_MSR_STORE_ADDR			= 0x00002006,
53*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_MSR_STORE_ADDR_HIGH			= 0x00002007,
54*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_MSR_LOAD_ADDR			= 0x00002008,
55*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_MSR_LOAD_ADDR_HIGH			= 0x00002009,
56*bbb1b6f9SApple OSS Distributions 	VMX_VM_ENTRY_MSR_LOAD_ADDR			= 0x0000200a,
57*bbb1b6f9SApple OSS Distributions 	VMX_VM_ENTRY_MSR_LOAD_ADDR_HIGH			= 0x0000200b,
58*bbb1b6f9SApple OSS Distributions 	VMX_TSC_OFFSET					= 0x00002010,
59*bbb1b6f9SApple OSS Distributions 	VMX_TSC_OFFSET_HIGH				= 0x00002011,
60*bbb1b6f9SApple OSS Distributions 	VMX_VIRTUAL_APIC_PAGE_ADDR			= 0x00002012,
61*bbb1b6f9SApple OSS Distributions 	VMX_VIRTUAL_APIC_PAGE_ADDR_HIGH			= 0x00002013,
62*bbb1b6f9SApple OSS Distributions 	VMX_APIC_ACCESS_ADDR				= 0x00002014,
63*bbb1b6f9SApple OSS Distributions 	VMX_APIC_ACCESS_ADDR_HIGH			= 0x00002015,
64*bbb1b6f9SApple OSS Distributions 	VMX_EPT_POINTER					= 0x0000201a,
65*bbb1b6f9SApple OSS Distributions 	VMX_EPT_POINTER_HIGH				= 0x0000201b,
66*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PHYSICAL_ADDRESS			= 0x00002400,
67*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PHYSICAL_ADDRESS_HIGH			= 0x00002401,
68*bbb1b6f9SApple OSS Distributions 	VMX_VMCS_LINK_POINTER				= 0x00002800,
69*bbb1b6f9SApple OSS Distributions 	VMX_VMCS_LINK_POINTER_HIGH			= 0x00002801,
70*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_IA32_DEBUGCTL				= 0x00002802,
71*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_IA32_DEBUGCTL_HIGH			= 0x00002803,
72*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_IA32_PAT				= 0x00002804,
73*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_IA32_PAT_HIGH				= 0x00002805,
74*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR0				= 0x0000280a,
75*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR0_HIGH				= 0x0000280b,
76*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR1				= 0x0000280c,
77*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR1_HIGH				= 0x0000280d,
78*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR2				= 0x0000280e,
79*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR2_HIGH				= 0x0000280f,
80*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR3				= 0x00002810,
81*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PDPTR3_HIGH				= 0x00002811,
82*bbb1b6f9SApple OSS Distributions 	VMX_HOST_IA32_PAT				= 0x00002c00,
83*bbb1b6f9SApple OSS Distributions 	VMX_HOST_IA32_PAT_HIGH				= 0x00002c01,
84*bbb1b6f9SApple OSS Distributions 	VMX_PIN_BASED_VM_EXEC_CONTROL			= 0x00004000,
85*bbb1b6f9SApple OSS Distributions 	VMX_CPU_BASED_VM_EXEC_CONTROL			= 0x00004002,
86*bbb1b6f9SApple OSS Distributions 	VMX_EXCEPTION_BITMAP				= 0x00004004,
87*bbb1b6f9SApple OSS Distributions 	VMX_PAGE_FAULT_ERROR_CODE_MASK			= 0x00004006,
88*bbb1b6f9SApple OSS Distributions 	VMX_PAGE_FAULT_ERROR_CODE_MATCH			= 0x00004008,
89*bbb1b6f9SApple OSS Distributions 	VMX_CR3_TARGET_COUNT				= 0x0000400a,
90*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_CONTROLS				= 0x0000400c,
91*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_MSR_STORE_COUNT			= 0x0000400e,
92*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_MSR_LOAD_COUNT			= 0x00004010,
93*bbb1b6f9SApple OSS Distributions 	VMX_VM_ENTRY_CONTROLS				= 0x00004012,
94*bbb1b6f9SApple OSS Distributions 	VMX_VM_ENTRY_MSR_LOAD_COUNT			= 0x00004014,
95*bbb1b6f9SApple OSS Distributions 	VMX_VM_ENTRY_INTR_INFO_FIELD			= 0x00004016,
96*bbb1b6f9SApple OSS Distributions 	VMX_VM_ENTRY_EXCEPTION_ERROR_CODE		= 0x00004018,
97*bbb1b6f9SApple OSS Distributions 	VMX_VM_ENTRY_INSTRUCTION_LEN			= 0x0000401a,
98*bbb1b6f9SApple OSS Distributions 	VMX_TPR_THRESHOLD				= 0x0000401c,
99*bbb1b6f9SApple OSS Distributions 	VMX_SECONDARY_VM_EXEC_CONTROL			= 0x0000401e,
100*bbb1b6f9SApple OSS Distributions 	VMX_PLE_GAP					= 0x00004020,
101*bbb1b6f9SApple OSS Distributions 	VMX_PLE_WINDOW					= 0x00004022,
102*bbb1b6f9SApple OSS Distributions 	VMX_VM_INSTRUCTION_ERROR			= 0x00004400,
103*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_REASON				= 0x00004402,
104*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_INTR_INFO				= 0x00004404,
105*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_INTR_ERROR_CODE			= 0x00004406,
106*bbb1b6f9SApple OSS Distributions 	VMX_IDT_VECTORING_INFO_FIELD			= 0x00004408,
107*bbb1b6f9SApple OSS Distributions 	VMX_IDT_VECTORING_ERROR_CODE			= 0x0000440a,
108*bbb1b6f9SApple OSS Distributions 	VMX_VM_EXIT_INSTRUCTION_LEN			= 0x0000440c,
109*bbb1b6f9SApple OSS Distributions 	VMX_VMX_INSTRUCTION_INFO			= 0x0000440e,
110*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_ES_LIMIT				= 0x00004800,
111*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_CS_LIMIT				= 0x00004802,
112*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_SS_LIMIT				= 0x00004804,
113*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_DS_LIMIT				= 0x00004806,
114*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_FS_LIMIT				= 0x00004808,
115*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_GS_LIMIT				= 0x0000480a,
116*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_LDTR_LIMIT				= 0x0000480c,
117*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_TR_LIMIT				= 0x0000480e,
118*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_GDTR_LIMIT				= 0x00004810,
119*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_IDTR_LIMIT				= 0x00004812,
120*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_ES_AR_BYTES				= 0x00004814,
121*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_CS_AR_BYTES				= 0x00004816,
122*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_SS_AR_BYTES				= 0x00004818,
123*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_DS_AR_BYTES				= 0x0000481a,
124*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_FS_AR_BYTES				= 0x0000481c,
125*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_GS_AR_BYTES				= 0x0000481e,
126*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_LDTR_AR_BYTES				= 0x00004820,
127*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_TR_AR_BYTES				= 0x00004822,
128*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_INTERRUPTIBILITY_INFO			= 0x00004824,
129*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_ACTIVITY_STATE			= 0X00004826,
130*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_SYSENTER_CS				= 0x0000482A,
131*bbb1b6f9SApple OSS Distributions 	VMX_HOST_IA32_SYSENTER_CS			= 0x00004c00,
132*bbb1b6f9SApple OSS Distributions 	VMX_CR0_GUEST_HOST_MASK				= 0x00006000,
133*bbb1b6f9SApple OSS Distributions 	VMX_CR4_GUEST_HOST_MASK				= 0x00006002,
134*bbb1b6f9SApple OSS Distributions 	VMX_CR0_READ_SHADOW				= 0x00006004,
135*bbb1b6f9SApple OSS Distributions 	VMX_CR4_READ_SHADOW				= 0x00006006,
136*bbb1b6f9SApple OSS Distributions 	VMX_CR3_TARGET_VALUE0				= 0x00006008,
137*bbb1b6f9SApple OSS Distributions 	VMX_CR3_TARGET_VALUE1				= 0x0000600a,
138*bbb1b6f9SApple OSS Distributions 	VMX_CR3_TARGET_VALUE2				= 0x0000600c,
139*bbb1b6f9SApple OSS Distributions 	VMX_CR3_TARGET_VALUE3				= 0x0000600e,
140*bbb1b6f9SApple OSS Distributions 	VMX_EXIT_QUALIFICATION				= 0x00006400,
141*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_LINEAR_ADDRESS			= 0x0000640a,
142*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_CR0					= 0x00006800,
143*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_CR3					= 0x00006802,
144*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_CR4					= 0x00006804,
145*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_ES_BASE				= 0x00006806,
146*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_CS_BASE				= 0x00006808,
147*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_SS_BASE				= 0x0000680a,
148*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_DS_BASE				= 0x0000680c,
149*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_FS_BASE				= 0x0000680e,
150*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_GS_BASE				= 0x00006810,
151*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_LDTR_BASE				= 0x00006812,
152*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_TR_BASE				= 0x00006814,
153*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_GDTR_BASE				= 0x00006816,
154*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_IDTR_BASE				= 0x00006818,
155*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_DR7					= 0x0000681a,
156*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_RSP					= 0x0000681c,
157*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_RIP					= 0x0000681e,
158*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_RFLAGS				= 0x00006820,
159*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_PENDING_DBG_EXCEPTIONS		= 0x00006822,
160*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_SYSENTER_ESP				= 0x00006824,
161*bbb1b6f9SApple OSS Distributions 	VMX_GUEST_SYSENTER_EIP				= 0x00006826,
162*bbb1b6f9SApple OSS Distributions 	VMX_HOST_CR0					= 0x00006c00,
163*bbb1b6f9SApple OSS Distributions 	VMX_HOST_CR3					= 0x00006c02,
164*bbb1b6f9SApple OSS Distributions 	VMX_HOST_CR4					= 0x00006c04,
165*bbb1b6f9SApple OSS Distributions 	VMX_HOST_FS_BASE				= 0x00006c06,
166*bbb1b6f9SApple OSS Distributions 	VMX_HOST_GS_BASE				= 0x00006c08,
167*bbb1b6f9SApple OSS Distributions 	VMX_HOST_TR_BASE				= 0x00006c0a,
168*bbb1b6f9SApple OSS Distributions 	VMX_HOST_GDTR_BASE				= 0x00006c0c,
169*bbb1b6f9SApple OSS Distributions 	VMX_HOST_IDTR_BASE				= 0x00006c0e,
170*bbb1b6f9SApple OSS Distributions 	VMX_HOST_IA32_SYSENTER_ESP			= 0x00006c10,
171*bbb1b6f9SApple OSS Distributions 	VMX_HOST_IA32_SYSENTER_EIP			= 0x00006c12,
172*bbb1b6f9SApple OSS Distributions 	VMX_HOST_RSP					= 0x00006c14,
173*bbb1b6f9SApple OSS Distributions 	VMX_HOST_RIP					= 0x00006c16
174*bbb1b6f9SApple OSS Distributions };
175*bbb1b6f9SApple OSS Distributions 
176