VirtualBox

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

Last change on this file since 105177 was 105177, checked in by vboxsync, 5 months ago

VMM/IEM: Increase TLB size to 8192 on arm; quick fix for 2M/4M page problem with invlpg. On AMD64 we stick to 256 TLB entries for VM struct size reasons. bugref:10687

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.6 KB
Line 
1;; @file
2; VM - The Virtual Machine.
3;
4
5;
6; Copyright (C) 2006-2023 Oracle and/or its affiliates.
7;
8; This file is part of VirtualBox base platform packages, as
9; available from https://www.virtualbox.org.
10;
11; This program is free software; you can redistribute it and/or
12; modify it under the terms of the GNU General Public License
13; as published by the Free Software Foundation, in version 3 of the
14; License.
15;
16; This program is distributed in the hope that it will be useful, but
17; WITHOUT ANY WARRANTY; without even the implied warranty of
18; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19; General Public License for more details.
20;
21; You should have received a copy of the GNU General Public License
22; along with this program; if not, see <https://www.gnu.org/licenses>.
23;
24; The contents of this file may alternatively be used under the terms
25; of the Common Development and Distribution License Version 1.0
26; (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
27; in the VirtualBox distribution, in which case the provisions of the
28; CDDL are applicable instead of those of the GPL.
29;
30; You may elect to license modified versions of this file under the
31; terms and conditions of either the GPL or the CDDL or both.
32;
33; SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
34;
35
36%ifndef ___VBox_vmm_vm_mac
37%define ___VBox_vmm_vm_mac
38
39%include "VBox/vmm/stam.mac"
40%include "VBox/param.mac"
41
42;/** This action forces the VM to service check and pending interrups on the APIC. */
43%define VMCPU_FF_INTERRUPT_APIC (1 << 0)
44;/** This action forces the VM to service check and pending interrups on the PIC. */
45%define VMCPU_FF_INTERRUPT_PIC (1 << 1)
46;/** This action forces the VM to schedule and run pending timer (TM). */
47%define VMCPU_FF_TIMER (1 << 2)
48;/** This action forces the VM to service pending requests from other
49; * thread or requests which must be executed in another context. */
50%define VMCPU_FF_REQUEST (1 << 9)
51
52;;
53; This is part of the VMCPU structure.
54struc VMCPU
55 .fLocalForcedActions resd 1
56 alignb 8
57 .enmState resd 1
58
59 alignb 64
60 .iem resb 113600 + 32768
61
62 alignb 64
63 .pVMR3 RTR3PTR_RES 1
64 .pVCpuR0ForVtg RTR0PTR_RES 1
65 .pVMRC resq 1
66 .pUVCpu RTR3PTR_RES 1
67 .hNativeThread RTR3PTR_RES 1
68 .hNativeThreadR0 RTR0PTR_RES 1
69 .hThread RTR3PTR_RES 1
70 .idCpu resd 1
71
72 alignb 64
73 .hm resb 9984
74 alignb 64
75 .nem resb 4608
76 alignb 64
77 .trpm resb 128
78 alignb 64
79 .tm resb 5760
80 alignb 64
81 .vmm resb 9536
82 alignb 64
83 .pdm resb 256
84 alignb 64
85 .iom resb 512
86 alignb 64
87 .dbgf resb 512
88 alignb 64
89 .gim resb 512
90 alignb 64
91%ifdef VBOX_VMM_TARGET_ARMV8
92 .gic resb 3840
93%else
94 .apic resb 3840
95%endif
96
97 alignb 64
98 .fTraceGroups resd 1
99 .cEmtHashCollisions resb 1
100 .abAdHoc resb 3
101 alignb 8
102 .aStatAdHoc resb STAMPROFILEADV_size * 8
103
104 alignb 4096
105 .pgm resb 36864
106 alignb 4096
107 .cpum resb 102400
108%define VMCPU.cpum.GstCtx VMCPU.cpum
109 alignb 4096
110 .em resb 40960
111 alignb 16384
112endstruc
113
114;;
115; This is part of the VM structure.
116struc VM
117 .enmVMState resd 1
118 .fGlobalForcedActions resd 1
119 .paVMPagesR3 RTR3PTR_RES 1
120 .pSession RTR0PTR_RES 1
121 .pUVM RTR3PTR_RES 1
122 .pVMR3 RTR3PTR_RES 1
123 .pVMR0ForCall RTR0PTR_RES 1
124 .pVMRC resq 1
125%ifdef IN_RING0
126 .hSelfUnsafe resd 1
127 .cCpusUnsafe resd 1
128%else
129 .hSelf resd 1
130 .cCpus resd 1
131%endif
132 .uCpuExecutionCap resd 1
133 .cbSelf resd 1
134 .cbVCpu resd 1
135 .uStructVersion resd 1
136 .bMainExecutionEngine resb 1
137 .fHMEnabled resb 1
138
139 .uPadding1 resb 6
140
141 .hTraceBufR3 RTR3PTR_RES 1
142 .hTraceBufR0 RTR0PTR_RES 1
143
144 alignb 64
145 .cpum resb 8832 + 128*8192
146 alignb 16384
147 .pgm resb 129728
148 alignb 64
149 .vmm resb 1600
150 alignb 64
151 .hm resb 5504
152 alignb 64
153 .trpm resb 2048
154 alignb 64
155 .selm resb 768
156 alignb 64
157 .mm resb 192
158 alignb 64
159 .pdm resb 22400
160 alignb 64
161 .iom resb 1152
162 alignb 64
163 .em resb 256
164 alignb 64
165 .nem resb 4608
166 alignb 64
167 .tm resb 10112
168 alignb 64
169 .dbgf resb 2432
170 alignb 64
171 .ssm resb 128
172 alignb 64
173 .gim resb 448
174 alignb 64
175%ifdef VBOX_VMM_TARGET_ARMV8
176 .gic resb 128
177%else
178 .apic resb 128
179%endif
180 alignb 64
181 .vm resb 32
182 .cfgm resb 8
183 .iem resb 16
184 .R0Stats resb 64
185 .gcm resb 8
186
187 times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 16383) & ~16383) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1
188 .apCpusR3 RTR3PTR_RES VMM_MAX_CPU_COUNT
189 alignb 16384
190
191endstruc
192
193
194%endif
195
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