1 | ;; @file
|
---|
2 | ; VM - The Virtual Machine.
|
---|
3 | ;
|
---|
4 |
|
---|
5 | ;
|
---|
6 | ; Copyright (C) 2006-2015 Oracle Corporation
|
---|
7 | ;
|
---|
8 | ; This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | ; available from http://www.virtualbox.org. This file is free software;
|
---|
10 | ; you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | ; General Public License (GPL) as published by the Free Software
|
---|
12 | ; Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | ;
|
---|
16 | ; The contents of this file may alternatively be used under the terms
|
---|
17 | ; of the Common Development and Distribution License Version 1.0
|
---|
18 | ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
19 | ; VirtualBox OSE distribution, in which case the provisions of the
|
---|
20 | ; CDDL are applicable instead of those of the GPL.
|
---|
21 | ;
|
---|
22 | ; You may elect to license modified versions of this file under the
|
---|
23 | ; terms and conditions of either the GPL or the CDDL or both.
|
---|
24 | ;
|
---|
25 |
|
---|
26 | %ifndef ___VBox_vmm_vm_mac
|
---|
27 | %define ___VBox_vmm_vm_mac
|
---|
28 |
|
---|
29 | %include "VBox/vmm/stam.mac"
|
---|
30 |
|
---|
31 | ;/** This action forces the VM to service check and pending interrups on the APIC. */
|
---|
32 | %define VMCPU_FF_INTERRUPT_APIC (1 << 0)
|
---|
33 | ;/** This action forces the VM to service check and pending interrups on the PIC. */
|
---|
34 | %define VMCPU_FF_INTERRUPT_PIC (1 << 1)
|
---|
35 | ;/** This action forces the VM to schedule and run pending timer (TM). */
|
---|
36 | %define VMCPU_FF_TIMER (1 << 2)
|
---|
37 | ;/** This action forces the VM to service pending requests from other
|
---|
38 | ; * thread or requests which must be executed in another context. */
|
---|
39 | %define VMCPU_FF_REQUEST (1 << 9)
|
---|
40 |
|
---|
41 | ;;
|
---|
42 | ; This is part of the VMCPU structure.
|
---|
43 | struc VMCPU
|
---|
44 | .fLocalForcedActions resd 1
|
---|
45 | .enmState resd 1
|
---|
46 | .pUVCpu RTR3PTR_RES 1
|
---|
47 | .pVMR3 RTR3PTR_RES 1
|
---|
48 | .pVMR0 RTR0PTR_RES 1
|
---|
49 | .pVMRC RTRCPTR_RES 1
|
---|
50 | .idCpu resd 1
|
---|
51 |
|
---|
52 | .hNativeThread RTR0PTR_RES 1
|
---|
53 | .hNativeThreadR0 RTR0PTR_RES 1
|
---|
54 | .idHostCpu resd 1
|
---|
55 | .iHostCpuSet resd 1
|
---|
56 | %if HC_ARCH_BITS == 32
|
---|
57 | .abAlignment1 resb 12
|
---|
58 | %else
|
---|
59 | ; .abAlignment1 resb 0
|
---|
60 | %endif
|
---|
61 |
|
---|
62 | alignb 64
|
---|
63 | .iem resb 18496
|
---|
64 | .hm resb 5760
|
---|
65 | .em resb 1408
|
---|
66 | .trpm resb 128
|
---|
67 | .tm resb 384
|
---|
68 | .vmm resb 704
|
---|
69 | .pdm resb 256
|
---|
70 | .iom resb 512
|
---|
71 | .dbgf resb 256
|
---|
72 | .gim resb 256
|
---|
73 | .apic resb 768
|
---|
74 |
|
---|
75 | .fTraceGroups resd 1
|
---|
76 | .uAdHoc resd 1
|
---|
77 | alignb 8
|
---|
78 | .aStatAdHoc resb STAMPROFILEADV_size * 8
|
---|
79 |
|
---|
80 | alignb 4096
|
---|
81 | .pgm resb 4096
|
---|
82 | alignb 4096
|
---|
83 | .cpum resb 4096
|
---|
84 | alignb 4096
|
---|
85 | endstruc
|
---|
86 |
|
---|
87 | ;;
|
---|
88 | ; This is part of the VM structure.
|
---|
89 | struc VM
|
---|
90 | .enmVMState resd 1
|
---|
91 | .fGlobalForcedActions resd 1
|
---|
92 | .paVMPagesR3 RTR3PTR_RES 1
|
---|
93 | .pSession RTR0PTR_RES 1
|
---|
94 | .pUVM RTR3PTR_RES 1
|
---|
95 | .pVMR3 RTR3PTR_RES 1
|
---|
96 | .pVMR0 RTR0PTR_RES 1
|
---|
97 | .pVMRC RTRCPTR_RES 1
|
---|
98 | .hSelf resd 1
|
---|
99 | .cCpus resd 1
|
---|
100 | .uCpuExecutionCap resd 1
|
---|
101 | .cbSelf resd 1
|
---|
102 | .offVMCPU resd 1
|
---|
103 | .pfnVMMRCToHostAsm resd 1
|
---|
104 | .pfnVMMRCToHostAsmNoReturn resd 1
|
---|
105 | .fRecompileUser resb 1
|
---|
106 | .fRecompileSupervisor resb 1
|
---|
107 | .fRawRing1Enabled resb 1
|
---|
108 | .fPATMEnabled resb 1
|
---|
109 | .fCSAMEnabled resb 1
|
---|
110 | .fHMEnabled resb 1
|
---|
111 | .fHMEnabledFixed resb 1
|
---|
112 | .fHMNeedRawModeCtx resb 1
|
---|
113 | .fFaultTolerantMaster resb 1
|
---|
114 | .fUseLargePages resb 1
|
---|
115 |
|
---|
116 | .uPadding1 resb 2
|
---|
117 |
|
---|
118 | .hTraceBufRC RTRCPTR_RES 1
|
---|
119 | .hTraceBufR3 RTR3PTR_RES 1
|
---|
120 | .hTraceBufR0 RTR0PTR_RES 1
|
---|
121 |
|
---|
122 | alignb 8
|
---|
123 |
|
---|
124 | .StatTotalQemuToGC resb STAMPROFILEADV_size
|
---|
125 | .StatTotalGCToQemu resb STAMPROFILEADV_size
|
---|
126 | .StatTotalInGC resb STAMPROFILEADV_size
|
---|
127 | .StatTotalInQemu resb STAMPROFILEADV_size
|
---|
128 | .StatSwitcherToGC resb STAMPROFILEADV_size
|
---|
129 | .StatSwitcherToHC resb STAMPROFILEADV_size
|
---|
130 | .StatSwitcherSaveRegs resb STAMPROFILEADV_size
|
---|
131 | .StatSwitcherSysEnter resb STAMPROFILEADV_size
|
---|
132 | .StatSwitcherDebug resb STAMPROFILEADV_size
|
---|
133 | .StatSwitcherCR0 resb STAMPROFILEADV_size
|
---|
134 | .StatSwitcherCR4 resb STAMPROFILEADV_size
|
---|
135 | .StatSwitcherJmpCR3 resb STAMPROFILEADV_size
|
---|
136 | .StatSwitcherRstrRegs resb STAMPROFILEADV_size
|
---|
137 | .StatSwitcherLgdt resb STAMPROFILEADV_size
|
---|
138 | .StatSwitcherLidt resb STAMPROFILEADV_size
|
---|
139 | .StatSwitcherLldt resb STAMPROFILEADV_size
|
---|
140 | .StatSwitcherTSS resb STAMPROFILEADV_size
|
---|
141 |
|
---|
142 | %ifndef HC_ARCH_BITS
|
---|
143 | %error "Missing HC_ARCH_BITS"
|
---|
144 | %endif
|
---|
145 | %if HC_ARCH_BITS == 32
|
---|
146 | .abAlignment3 resb 16
|
---|
147 | %else
|
---|
148 | ; .abAlignment3 resb 16
|
---|
149 | %endif
|
---|
150 |
|
---|
151 | alignb 64
|
---|
152 | .cpum resb 1536
|
---|
153 | .vmm resb 1600
|
---|
154 | .pgm resb (4096*2+6080)
|
---|
155 | .hm resb 5440
|
---|
156 | .trpm resb 5248
|
---|
157 | .selm resb 768
|
---|
158 | .mm resb 192
|
---|
159 | .pdm resb 1920
|
---|
160 | .iom resb 896
|
---|
161 | .em resb 256
|
---|
162 | .tm resb 2496
|
---|
163 | .dbgf resb 2368
|
---|
164 | .ssm resb 128
|
---|
165 | .ftm resb 512
|
---|
166 | %ifdef VBOX_WITH_RAW_MODE
|
---|
167 | .patm resb 768
|
---|
168 | .csam resb 1088
|
---|
169 | %endif
|
---|
170 | %ifdef VBOX_WITH_REM
|
---|
171 | .rem resb 0x11100
|
---|
172 | %endif
|
---|
173 | .gim resb 448
|
---|
174 | .apic resb 128
|
---|
175 | .vm resb 24
|
---|
176 | .cfgm resb 8
|
---|
177 | alignb 4096
|
---|
178 | .aCpus resb VMCPU_size
|
---|
179 | endstruc
|
---|
180 |
|
---|
181 |
|
---|
182 | %endif
|
---|
183 |
|
---|