VirtualBox

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

Last change on this file since 70918 was 70918, checked in by vboxsync, 7 years ago

VMM: NEM kick off.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.1 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 .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 5824
65 .em resb 1408
66 .nem resb 128
67 .trpm resb 128
68 .tm resb 384
69 .vmm resb 704
70 .pdm resb 256
71 .iom resb 512
72 .dbgf resb 256
73 .gim resb 512
74 .apic resb 1792
75
76 .fTraceGroups resd 1
77 .uAdHoc resd 1
78 alignb 8
79 .aStatAdHoc resb STAMPROFILEADV_size * 8
80
81 alignb 4096
82 .pgm resb 4096
83 alignb 4096
84 .cpum resb 4096
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 .fRecompileUser resb 1
107 .fRecompileSupervisor resb 1
108 .fRawRing1Enabled resb 1
109 .fPATMEnabled resb 1
110 .fCSAMEnabled resb 1
111 .fHMEnabled resb 1
112 .fHMEnabledFixed resb 1
113 .fHMNeedRawModeCtx resb 1
114 .fNEMActive resb 1
115 .fFaultTolerantMaster resb 1
116 .fUseLargePages resb 1
117
118 .uPadding1 resb 1
119
120 .hTraceBufRC RTRCPTR_RES 1
121 .hTraceBufR3 RTR3PTR_RES 1
122 .hTraceBufR0 RTR0PTR_RES 1
123
124 alignb 8
125
126 .StatTotalQemuToGC resb STAMPROFILEADV_size
127 .StatTotalGCToQemu resb STAMPROFILEADV_size
128 .StatTotalInGC resb STAMPROFILEADV_size
129 .StatTotalInQemu resb STAMPROFILEADV_size
130 .StatSwitcherToGC resb STAMPROFILEADV_size
131 .StatSwitcherToHC resb STAMPROFILEADV_size
132 .StatSwitcherSaveRegs resb STAMPROFILEADV_size
133 .StatSwitcherSysEnter resb STAMPROFILEADV_size
134 .StatSwitcherDebug resb STAMPROFILEADV_size
135 .StatSwitcherCR0 resb STAMPROFILEADV_size
136 .StatSwitcherCR4 resb STAMPROFILEADV_size
137 .StatSwitcherJmpCR3 resb STAMPROFILEADV_size
138 .StatSwitcherRstrRegs resb STAMPROFILEADV_size
139 .StatSwitcherLgdt resb STAMPROFILEADV_size
140 .StatSwitcherLidt resb STAMPROFILEADV_size
141 .StatSwitcherLldt resb STAMPROFILEADV_size
142 .StatSwitcherTSS resb STAMPROFILEADV_size
143
144%ifndef HC_ARCH_BITS
145 %error "Missing HC_ARCH_BITS"
146%endif
147%if HC_ARCH_BITS == 32
148 .abAlignment3 resb 16
149%else
150; .abAlignment3 resb 16
151%endif
152
153 alignb 64
154 .cpum resb 1536
155 .vmm resb 1600
156 .pgm resb (4096*2+6080)
157 .hm resb 5440
158 .trpm resb 5248
159 .selm resb 768
160 .mm resb 192
161 .pdm resb 1920
162 .iom resb 896
163 .em resb 256
164 .nem resb 128
165 .tm resb 2496
166 .dbgf resb 2368
167 .ssm resb 128
168 .ftm resb 512
169%ifdef VBOX_WITH_RAW_MODE
170 .patm resb 768
171 .csam resb 1088
172%endif
173%ifdef VBOX_WITH_REM
174 .rem resb 0x11100
175%endif
176 .gim resb 448
177 .apic resb 128
178 .vm resb 24
179 .cfgm resb 8
180 alignb 4096
181 .aCpus resb VMCPU_size
182endstruc
183
184
185%endif
186
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