VirtualBox

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

Last change on this file since 74798 was 74797, checked in by vboxsync, 6 years ago

vm.h/mac: Make space for larger fLocalForcedActions. bugref:9180

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.0 KB
Line 
1;; @file
2; VM - The Virtual Machine.
3;
4
5;
6; Copyright (C) 2006-2017 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.
43struc VMCPU
44 .fLocalForcedActions resd 1
45 alignb 8
46 .enmState resd 1
47 .idHostCpu resd 1
48 .iHostCpuSet resd 1
49
50 alignb 64
51 .iem resb 18496
52
53 alignb 64
54 .idCpu resd 1
55 .pVMRC RTRCPTR_RES 1
56 .pVMR3 RTR3PTR_RES 1
57 .pVMR0 RTR0PTR_RES 1
58 .pUVCpu RTR3PTR_RES 1
59 .hNativeThread RTR0PTR_RES 1
60 .hNativeThreadR0 RTR0PTR_RES 1
61
62 alignb 64
63 .hm resb 5888
64 .nem resb 512
65 .trpm resb 128
66 .tm resb 384
67 .vmm resb 768
68 .pdm resb 256
69 .iom resb 512
70 .dbgf resb 256
71 .gim resb 512
72 .apic resb 1792
73
74 .fTraceGroups resd 1
75 .uAdHoc resd 1
76 alignb 8
77 .aStatAdHoc resb STAMPROFILEADV_size * 8
78
79 alignb 4096
80 .pgm resb 4096
81 alignb 4096
82 .cpum resb 4096
83 alignb 4096
84 .em resb 40960
85 alignb 4096
86endstruc
87
88;;
89; This is part of the VM structure.
90struc VM
91 .enmVMState resd 1
92 .fGlobalForcedActions resd 1
93 .paVMPagesR3 RTR3PTR_RES 1
94 .pSession RTR0PTR_RES 1
95 .pUVM RTR3PTR_RES 1
96 .pVMR3 RTR3PTR_RES 1
97 .pVMR0 RTR0PTR_RES 1
98 .pVMRC RTRCPTR_RES 1
99 .hSelf resd 1
100 .cCpus resd 1
101 .uCpuExecutionCap resd 1
102 .cbSelf resd 1
103 .offVMCPU resd 1
104 .pfnVMMRCToHostAsm resd 1
105 .pfnVMMRCToHostAsmNoReturn resd 1
106 .bMainExecutionEngine resb 1
107 .fRecompileUser resb 1
108 .fRecompileSupervisor resb 1
109 .fRawRing1Enabled resb 1
110 .fPATMEnabled resb 1
111 .fCSAMEnabled resb 1
112 .fHMEnabled resb 1
113 .fHMNeedRawModeCtx resb 1
114 .fFaultTolerantMaster resb 1
115 .fUseLargePages resb 1
116
117 .uPadding1 resb 2
118
119 .hTraceBufRC RTRCPTR_RES 1
120 .hTraceBufR3 RTR3PTR_RES 1
121 .hTraceBufR0 RTR0PTR_RES 1
122
123 alignb 8
124
125 .StatTotalQemuToGC resb STAMPROFILEADV_size
126 .StatTotalGCToQemu resb STAMPROFILEADV_size
127 .StatTotalInGC resb STAMPROFILEADV_size
128 .StatTotalInQemu resb STAMPROFILEADV_size
129 .StatSwitcherToGC resb STAMPROFILEADV_size
130 .StatSwitcherToHC resb STAMPROFILEADV_size
131 .StatSwitcherSaveRegs resb STAMPROFILEADV_size
132 .StatSwitcherSysEnter resb STAMPROFILEADV_size
133 .StatSwitcherDebug resb STAMPROFILEADV_size
134 .StatSwitcherCR0 resb STAMPROFILEADV_size
135 .StatSwitcherCR4 resb STAMPROFILEADV_size
136 .StatSwitcherJmpCR3 resb STAMPROFILEADV_size
137 .StatSwitcherRstrRegs resb STAMPROFILEADV_size
138 .StatSwitcherLgdt resb STAMPROFILEADV_size
139 .StatSwitcherLidt resb STAMPROFILEADV_size
140 .StatSwitcherLldt resb STAMPROFILEADV_size
141 .StatSwitcherTSS resb STAMPROFILEADV_size
142
143%ifndef HC_ARCH_BITS
144 %error "Missing HC_ARCH_BITS"
145%endif
146%if HC_ARCH_BITS == 32
147 .abAlignment3 resb 16
148%else
149; .abAlignment3 resb 16
150%endif
151
152 alignb 64
153 .cpum resb 1536
154 .vmm resb 1600
155 .pgm resb (4096*2+6080)
156 .hm resb 5440
157 .trpm resb 5248
158 .selm resb 768
159 .mm resb 192
160 .pdm resb 1920
161 .iom resb 896
162 .em resb 256
163 .nem resb 128
164 .tm resb 2496
165 .dbgf resb 2432
166 .ssm resb 128
167 .ftm resb 512
168%ifdef VBOX_WITH_RAW_MODE
169 .patm resb 768
170 .csam resb 1088
171%endif
172%ifdef VBOX_WITH_REM
173 .rem resb 0x11100
174%endif
175 .gim resb 448
176 .apic resb 128
177 .vm resb 32
178 .cfgm resb 8
179 alignb 4096
180 .aCpus resb VMCPU_size
181endstruc
182
183
184%endif
185
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