1 | ;; @file
|
---|
2 | ; VM - The Virtual Machine.
|
---|
3 | ;
|
---|
4 |
|
---|
5 | ;
|
---|
6 | ; Copyright (C) 2006-2019 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.
|
---|
44 | struc VMCPU
|
---|
45 | .fLocalForcedActions resd 1
|
---|
46 | alignb 8
|
---|
47 | .enmState resd 1
|
---|
48 | .idHostCpu resd 1
|
---|
49 | .iHostCpuSet resd 1
|
---|
50 |
|
---|
51 | alignb 64
|
---|
52 | .iem resb 18496
|
---|
53 |
|
---|
54 | alignb 64
|
---|
55 | .pVMR3 RTR3PTR_RES 1
|
---|
56 | .pVCpuR0ForVtg RTR0PTR_RES 1
|
---|
57 | .pVMRC resq 1
|
---|
58 | .pUVCpu RTR3PTR_RES 1
|
---|
59 | .hNativeThread RTR0PTR_RES 1
|
---|
60 | .hNativeThreadR0 RTR0PTR_RES 1
|
---|
61 | .idCpu resd 1
|
---|
62 |
|
---|
63 | alignb 64
|
---|
64 | .hm resb 5888
|
---|
65 | .nem resb 512
|
---|
66 | .trpm resb 128
|
---|
67 | .tm resb 5760
|
---|
68 | .vmm resb 896
|
---|
69 | .pdm resb 256
|
---|
70 | .iom resb 512
|
---|
71 | .dbgf resb 256
|
---|
72 | .gim resb 512
|
---|
73 | .apic resb 1792
|
---|
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 | .em resb 40960
|
---|
86 | alignb 4096
|
---|
87 | endstruc
|
---|
88 |
|
---|
89 | ;;
|
---|
90 | ; This is part of the VM structure.
|
---|
91 | struc VM
|
---|
92 | .enmVMState resd 1
|
---|
93 | .fGlobalForcedActions resd 1
|
---|
94 | .paVMPagesR3 RTR3PTR_RES 1
|
---|
95 | .pSession RTR0PTR_RES 1
|
---|
96 | .pUVM RTR3PTR_RES 1
|
---|
97 | .pVMR3 RTR3PTR_RES 1
|
---|
98 | .pVMR0ForCall RTR0PTR_RES 1
|
---|
99 | .pVMRC resq 1
|
---|
100 | %ifdef IN_RING0
|
---|
101 | .hSelfUnsafe resd 1
|
---|
102 | .cCpusUnsafe resd 1
|
---|
103 | %else
|
---|
104 | .hSelf resd 1
|
---|
105 | .cCpus resd 1
|
---|
106 | %endif
|
---|
107 | .uCpuExecutionCap resd 1
|
---|
108 | .cbSelf resd 1
|
---|
109 | .cbVCpu resd 1
|
---|
110 | .uStructVersion resd 1
|
---|
111 | .bMainExecutionEngine resb 1
|
---|
112 | .fHMEnabled resb 1
|
---|
113 | .fUseLargePages resb 1
|
---|
114 |
|
---|
115 | .uPadding1 resb 5
|
---|
116 |
|
---|
117 | .hTraceBufR3 RTR3PTR_RES 1
|
---|
118 | .hTraceBufR0 RTR0PTR_RES 1
|
---|
119 |
|
---|
120 | alignb 64
|
---|
121 | .cpum resb 1536
|
---|
122 | .vmm resb 1600
|
---|
123 | .pgm resb 20800
|
---|
124 | .hm resb 5440
|
---|
125 | .trpm resb 5248
|
---|
126 | .selm resb 768
|
---|
127 | .mm resb 192
|
---|
128 | .pdm resb 1920
|
---|
129 | .iom resb 960
|
---|
130 | .em resb 256
|
---|
131 | .nem resb 128
|
---|
132 | .tm resb 7872
|
---|
133 | .dbgf resb 2432
|
---|
134 | .ssm resb 128
|
---|
135 | %ifdef VBOX_WITH_REM
|
---|
136 | .rem resb 0x11100
|
---|
137 | %endif
|
---|
138 | .gim resb 448
|
---|
139 | .apic resb 128
|
---|
140 | .vm resb 32
|
---|
141 | .cfgm resb 8
|
---|
142 |
|
---|
143 | %ifdef VBOX_WITH_REM
|
---|
144 | .abAlignment2 resb 2968 - RTR0PTR_CB * VMM_MAX_CPU_COUNT
|
---|
145 | %else
|
---|
146 | .abAlignment2 resb 2968 + 256 - RTR0PTR_CB * VMM_MAX_CPU_COUNT
|
---|
147 | %endif
|
---|
148 |
|
---|
149 | alignb RTR0PTR_CB * VMM_MAX_CPU_COUNT ; ASSUMES VMM_MAX_CPU_COUNT is a power of two.
|
---|
150 | .apCpusR3 RTR3PTR_RES VMM_MAX_CPU_COUNT
|
---|
151 | alignb 4096
|
---|
152 |
|
---|
153 | endstruc
|
---|
154 |
|
---|
155 |
|
---|
156 | %endif
|
---|
157 |
|
---|