VirtualBox

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

Last change on this file since 93635 was 93635, checked in by vboxsync, 3 years ago

VMM/PGM,VMM/PDM,VGA: Consolidate the user parameters of the physical access handlers into a single uint64_t value that shouldn't be a pointer, at least not for ring-0 callbacks. Special hack for devices where it's translated from a ring-0 device instance index into a current context PPDMDEVINS (not really tested yet). bugref:10094

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1;; @file
2; VM - The Virtual Machine.
3;
4
5;
6; Copyright (C) 2006-2022 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.
44struc VMCPU
45 .fLocalForcedActions resd 1
46 alignb 8
47 .enmState resd 1
48
49 alignb 64
50 .iem resb 26688
51
52 alignb 64
53 .pVMR3 RTR3PTR_RES 1
54 .pVCpuR0ForVtg RTR0PTR_RES 1
55 .pVMRC resq 1
56 .pUVCpu RTR3PTR_RES 1
57 .hNativeThread RTR3PTR_RES 1
58 .hNativeThreadR0 RTR0PTR_RES 1
59 .hThread RTR3PTR_RES 1
60 .idCpu resd 1
61
62 alignb 64
63 .hm resb 9984
64 alignb 64
65 .nem resb 4608
66 alignb 64
67 .trpm resb 128
68 alignb 64
69 .tm resb 5760
70 alignb 64
71 .vmm resb 9536
72 alignb 64
73 .pdm resb 256
74 alignb 64
75 .iom resb 512
76 alignb 64
77 .dbgf resb 512
78 alignb 64
79 .gim resb 512
80 alignb 64
81 .apic resb 3840
82
83 alignb 64
84 .fTraceGroups resd 1
85 .cEmtHashCollisions resb 1
86 .abAdHoc resb 3
87 alignb 8
88 .aStatAdHoc resb STAMPROFILEADV_size * 8
89
90 alignb 4096
91 .pgm resb 4096+28672
92 alignb 4096
93 .cpum resb 102400
94%define VMCPU.cpum.GstCtx VMCPU.cpum
95 alignb 4096
96 .em resb 40960
97 alignb 16384
98endstruc
99
100;;
101; This is part of the VM structure.
102struc VM
103 .enmVMState resd 1
104 .fGlobalForcedActions resd 1
105 .paVMPagesR3 RTR3PTR_RES 1
106 .pSession RTR0PTR_RES 1
107 .pUVM RTR3PTR_RES 1
108 .pVMR3 RTR3PTR_RES 1
109 .pVMR0ForCall RTR0PTR_RES 1
110 .pVMRC resq 1
111%ifdef IN_RING0
112 .hSelfUnsafe resd 1
113 .cCpusUnsafe resd 1
114%else
115 .hSelf resd 1
116 .cCpus resd 1
117%endif
118 .uCpuExecutionCap resd 1
119 .cbSelf resd 1
120 .cbVCpu resd 1
121 .uStructVersion resd 1
122 .bMainExecutionEngine resb 1
123 .fHMEnabled resb 1
124
125 .uPadding1 resb 6
126
127 .hTraceBufR3 RTR3PTR_RES 1
128 .hTraceBufR0 RTR0PTR_RES 1
129
130 alignb 64
131 .cpum resb 8832 + 128*8192
132 alignb 16384
133 .pgm resb 53888
134 alignb 64
135 .vmm resb 1600
136 alignb 64
137 .hm resb 5504
138 alignb 64
139 .trpm resb 2048
140 alignb 64
141 .selm resb 768
142 alignb 64
143 .mm resb 192
144 alignb 64
145 .pdm resb 22400
146 alignb 64
147 .iom resb 1152
148 alignb 64
149 .em resb 256
150 alignb 64
151 .nem resb 4608
152 alignb 64
153 .tm resb 10112
154 alignb 64
155 .dbgf resb 2432
156 alignb 64
157 .ssm resb 128
158 alignb 64
159 .gim resb 448
160 alignb 64
161 .apic resb 128
162 alignb 64
163 .vm resb 32
164 .cfgm resb 8
165 .R0Stats resb 64
166
167 times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 16383) & ~16383) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1
168 .apCpusR3 RTR3PTR_RES VMM_MAX_CPU_COUNT
169 alignb 16384
170
171endstruc
172
173
174%endif
175
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