1 | ;; @file
|
---|
2 | ; GVM - The Global VM Data.
|
---|
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_gvm_mac
|
---|
37 | %define ___VBox_vmm_gvm_mac
|
---|
38 |
|
---|
39 | %include "VBox/vmm/vm.mac"
|
---|
40 |
|
---|
41 | struc GVMCPU
|
---|
42 | .s resb VMCPU_size
|
---|
43 |
|
---|
44 | .idCpu resd 1
|
---|
45 |
|
---|
46 | alignb 8
|
---|
47 | .hEMT RTR0PTR_RES 1
|
---|
48 | .pGVM RTR0PTR_RES 1
|
---|
49 | .pVMR0 RTR0PTR_RES 1
|
---|
50 | .pVCpuR3 RTR3PTR_RES 1
|
---|
51 |
|
---|
52 | alignb 64
|
---|
53 | .idHostCpu resd 1
|
---|
54 | .iHostCpuSet resd 1
|
---|
55 |
|
---|
56 | alignb 64
|
---|
57 | .gvmm resb 256
|
---|
58 | alignb 64
|
---|
59 | .hmr0 resb 1024
|
---|
60 | %ifdef VBOX_WITH_NEM_R0
|
---|
61 | .nemr0 resb 64
|
---|
62 | %endif
|
---|
63 | alignb 64
|
---|
64 | .vmmr0 resb 896
|
---|
65 | alignb 64
|
---|
66 | .pgmr0 resb 192
|
---|
67 | alignb 16384
|
---|
68 | endstruc
|
---|
69 |
|
---|
70 |
|
---|
71 | struc GVM
|
---|
72 | .s resb VM_size
|
---|
73 |
|
---|
74 | .u32Magic resd 1
|
---|
75 | .hSelf resd 1
|
---|
76 | alignb 8
|
---|
77 | .pSelf RTR0PTR_RES 1
|
---|
78 | .pVMR3 RTR3PTR_RES 1
|
---|
79 | .pSession RTR0PTR_RES 1
|
---|
80 | .cCpus resd 1
|
---|
81 |
|
---|
82 | alignb 64
|
---|
83 | .gvmm resb 4352
|
---|
84 | alignb 64
|
---|
85 | .gmm resb 1024
|
---|
86 | alignb 64
|
---|
87 | .hmr0 resb 256
|
---|
88 | %ifdef VBOX_WITH_NEM_R0
|
---|
89 | alignb 64
|
---|
90 | .nemr0 resb 256
|
---|
91 | %endif
|
---|
92 | alignb 64
|
---|
93 | .rawpci resb 64
|
---|
94 | alignb 64
|
---|
95 | .pdmr0 resb 3008
|
---|
96 | alignb 64
|
---|
97 | .pgmr0 resb 89728
|
---|
98 | alignb 64
|
---|
99 | .iomr0 resb 512
|
---|
100 | alignb 64
|
---|
101 | .apicr0 resb 64
|
---|
102 | alignb 64
|
---|
103 | .dbgfr0 resb 1024
|
---|
104 | alignb 64
|
---|
105 | .tmr0 resb 128
|
---|
106 |
|
---|
107 | times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 16383) & ~16383) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1
|
---|
108 | .apCpusR0 RTR0PTR_RES VMM_MAX_CPU_COUNT
|
---|
109 |
|
---|
110 | alignb 16384
|
---|
111 | .aCpus resb GVMCPU_size
|
---|
112 | endstruc
|
---|
113 |
|
---|
114 | %define GVM_MAGIC 0x19330825
|
---|
115 |
|
---|
116 |
|
---|
117 | %endif
|
---|
118 |
|
---|