VirtualBox

source: vbox/trunk/include/VBox/vmm/gvm.mac@ 107893

Last change on this file since 107893 was 107893, checked in by vboxsync, 5 weeks ago

VMM,VBox/types.h,VBox/err.h: Added VM target platform arch members to the VM structures (mostly for ring-0). Also added the structure sizes and svn revision to VMMR0_DO_GVMM_CREATE_VM. jiraref:VBP-1470

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1;; @file
2; GVM - The Global VM Data.
3;
4
5;
6; Copyright (C) 2006-2024 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
41struc GVMCPU
42 .s resb VMCPU_size
43
44 .idCpu resd 1
45 .enmTarget resd 1
46
47 alignb 8
48 .hEMT RTR0PTR_RES 1
49 .pGVM RTR0PTR_RES 1
50 .pVMR0 RTR0PTR_RES 1
51 .pVCpuR3 RTR3PTR_RES 1
52
53 alignb 64
54 .idHostCpu resd 1
55 .iHostCpuSet resd 1
56
57 alignb 64
58 .gvmm resb 256
59 alignb 64
60 .vmmr0 resb 896
61 alignb 64
62 .hmr0 resb 1024
63%ifdef VBOX_WITH_NEM_R0
64 .nemr0 resb 64
65%endif
66 alignb 64
67 .pgmr0 resb 576
68 alignb 16384
69endstruc
70
71
72struc GVM
73 .s resb VM_size
74
75 .u32Magic resd 1
76 .hSelf resd 1
77 alignb 8
78 .pSelf RTR0PTR_RES 1
79 .pVMR3 RTR3PTR_RES 1
80 .pSession RTR0PTR_RES 1
81 .cCpus resd 1
82 .enmTarget resd 1
83
84 alignb 64
85 .gvmm resb 4352
86 alignb 64
87 .gmm resb 1024
88 alignb 64
89 .hmr0 resb 256
90%ifdef VBOX_WITH_NEM_R0
91 alignb 64
92 .nemr0 resb 256
93%endif
94 alignb 64
95 .rawpci resb 64
96 alignb 64
97 .pdmr0 resb 3264
98 alignb 64
99 .pgmr0 resb 90112
100 alignb 64
101 .iomr0 resb 512
102 alignb 64
103 .apicr0 resb 64
104 alignb 64
105 .dbgfr0 resb 1024
106 alignb 64
107 .tmr0 resb 128
108
109 times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 16383) & ~16383) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1
110 .apCpusR0 RTR0PTR_RES VMM_MAX_CPU_COUNT
111
112 alignb 16384
113 .aCpus resb GVMCPU_size
114endstruc
115
116%define GVM_MAGIC 0x19330825
117
118
119%endif
120
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