VirtualBox

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

Last change on this file since 87792 was 87792, checked in by vboxsync, 4 years ago

VMM/TM: Moved the timers off the hyper heap. Replaced the relative offset addressing with queue array indexing. bugref:9943

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
Line 
1;; @file
2; VM - The Virtual Machine.
3;
4
5;
6; Copyright (C) 2006-2020 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 .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 512
72 .gim resb 512
73 .apic resb 3840
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%define VMCPU.cpum.GstCtx VMCPU.cpum
85 alignb 4096
86 .em resb 40960
87 alignb 4096
88endstruc
89
90;;
91; This is part of the VM structure.
92struc VM
93 .enmVMState resd 1
94 .fGlobalForcedActions resd 1
95 .paVMPagesR3 RTR3PTR_RES 1
96 .pSession RTR0PTR_RES 1
97 .pUVM RTR3PTR_RES 1
98 .pVMR3 RTR3PTR_RES 1
99 .pVMR0ForCall RTR0PTR_RES 1
100 .pVMRC resq 1
101%ifdef IN_RING0
102 .hSelfUnsafe resd 1
103 .cCpusUnsafe resd 1
104%else
105 .hSelf resd 1
106 .cCpus resd 1
107%endif
108 .uCpuExecutionCap resd 1
109 .cbSelf resd 1
110 .cbVCpu resd 1
111 .uStructVersion resd 1
112 .bMainExecutionEngine resb 1
113 .fHMEnabled resb 1
114 .fUseLargePages resb 1
115
116 .uPadding1 resb 5
117
118 .hTraceBufR3 RTR3PTR_RES 1
119 .hTraceBufR0 RTR0PTR_RES 1
120
121 alignb 64
122 .cpum resb 1536
123 .vmm resb 1600
124 .pgm resb 21120
125 .hm resb 5504
126 .trpm resb 2048
127 .selm resb 768
128 .mm resb 192
129 .pdm resb 8128
130 .iom resb 1152
131 .em resb 256
132 .nem resb 128
133 .tm resb 9152
134 .dbgf resb 2432
135 .ssm resb 128
136 .gim resb 448
137 .apic resb 128
138 .vm resb 32
139 .cfgm resb 8
140 .R0Stats resb 64
141
142 times ((($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB + 4095) & ~4095) - ($ + VMM_MAX_CPU_COUNT * RTR0PTR_CB)) resb 1
143 .apCpusR3 RTR3PTR_RES VMM_MAX_CPU_COUNT
144 alignb 4096
145
146endstruc
147
148
149%endif
150
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