VirtualBox

source: vbox/trunk/include/VBox/vmm/vm.mac@ 91305

Last change on this file since 91305 was 91305, checked in by vboxsync, 3 years ago

VMM/CPUM,++: Moved the nested VT-X I/O permission bitmap allocations into CPUMCTX. bugref:10093

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1;; @file
2; VM - The Virtual Machine.
3;
4
5;
6; Copyright (C) 2006-2020 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%include "VBox/param.mac"
31
32;/** This action forces the VM to service check and pending interrups on the APIC. */
33%define VMCPU_FF_INTERRUPT_APIC (1 << 0)
34;/** This action forces the VM to service check and pending interrups on the PIC. */
35%define VMCPU_FF_INTERRUPT_PIC (1 << 1)
36;/** This action forces the VM to schedule and run pending timer (TM). */
37%define VMCPU_FF_TIMER (1 << 2)
38;/** This action forces the VM to service pending requests from other
39; * thread or requests which must be executed in another context. */
40%define VMCPU_FF_REQUEST (1 << 9)
41
42;;
43; This is part of the VMCPU structure.
44struc VMCPU
45 .fLocalForcedActions resd 1
46 alignb 8
47 .enmState resd 1
48
49 alignb 64
50 .iem resb 26688
51
52 alignb 64
53 .pVMR3 RTR3PTR_RES 1
54 .pVCpuR0ForVtg RTR0PTR_RES 1
55 .pVMRC resq 1
56 .pUVCpu RTR3PTR_RES 1
57 .hNativeThread RTR3PTR_RES 1
58 .hNativeThreadR0 RTR0PTR_RES 1
59 .hThread RTR3PTR_RES 1
60 .idCpu resd 1
61
62 alignb 64
63 .hm resb 9984
64 alignb 64
65 .nem resb 512
66 alignb 64
67 .trpm resb 128
68 alignb 64
69 .tm resb 5760
70 alignb 64
71 .vmm resb 1344
72 alignb 64
73 .pdm resb 256
74 alignb 64
75 .iom resb 512
76 alignb 64
77 .dbgf resb 512
78 alignb 64
79 .gim resb 512
80 alignb 64
81 .apic resb 3840
82
83 alignb 64
84 .fTraceGroups resd 1
85 .cEmtHashCollisions resb 1
86 .abAdHoc resb 3
87 alignb 8
88 .aStatAdHoc resb STAMPROFILEADV_size * 8
89
90 alignb 4096
91 .pgm resb 4096+28672
92 alignb 4096
93 .cpum resb 98304
94%define VMCPU.cpum.GstCtx VMCPU.cpum
95 alignb 4096
96 .em resb 40960
97 alignb 4096
98endstruc
99
100;;
101; This is part of the VM structure.
102struc VM
103 .enmVMState resd 1
104 .fGlobalForcedActions resd 1
105 .paVMPagesR3 RTR3PTR_RES 1
106 .pSession RTR0PTR_RES 1
107 .pUVM RTR3PTR_RES 1
108 .pVMR3 RTR3PTR_RES 1
109 .pVMR0ForCall RTR0PTR_RES 1
110 .pVMRC resq 1
111%ifdef IN_RING0
112 .hSelfUnsafe resd 1
113 .cCpusUnsafe resd 1
114%else
115 .hSelf resd 1
116 .cCpus resd 1
117%endif
118 .uCpuExecutionCap resd 1
119 .cbSelf resd 1
120 .cbVCpu resd 1
121 .uStructVersion resd 1
122 .bMainExecutionEngine resb 1
123 .fHMEnabled resb 1
124 .fUseLargePages resb 1
125
126 .uPadding1 resb 5
127
128 .hTraceBufR3 RTR3PTR_RES 1
129 .hTraceBufR0 RTR0PTR_RES 1
130
131 alignb 64
132 .cpum resb 8832 + 128*8192
133 alignb 64
134 .vmm resb 1600
135 alignb 64
136 .pgm resb 21120
137 alignb 64
138 .hm resb 5504
139 alignb 64
140 .trpm resb 2048
141 alignb 64
142 .selm resb 768
143 alignb 64
144 .mm resb 192
145 alignb 64
146 .pdm resb 8320
147 alignb 64
148 .iom resb 1152
149 alignb 64
150 .em resb 256
151 alignb 64
152 .nem resb 128
153 alignb 64
154 .tm resb 10112
155 alignb 64
156 .dbgf resb 2432
157 alignb 64
158 .ssm resb 128
159 alignb 64
160 .gim resb 448
161 alignb 64
162 .apic resb 128
163 alignb 64
164 .vm resb 32
165 .cfgm resb 8
166 .R0Stats resb 64
167
168 times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 4095) & ~4095) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1
169 .apCpusR3 RTR3PTR_RES VMM_MAX_CPU_COUNT
170 alignb 4096
171
172endstruc
173
174
175%endif
176
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette