VirtualBox

source: vbox/trunk/include/VBox/vm.mac@ 4958

Last change on this file since 4958 was 4958, checked in by vboxsync, 17 years ago

Added hSelf and removed pVMHC from the VM structure.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1;; @file
2;
3; VM - The Virtual Machine.
4;
5
6;
7; Copyright (C) 2006-2007 innotek GmbH
8;
9; This file is part of VirtualBox Open Source Edition (OSE), as
10; available from http://www.virtualbox.org. This file is free software;
11; you can redistribute it and/or modify it under the terms of the GNU
12; General Public License as published by the Free Software Foundation,
13; in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14; distribution. VirtualBox OSE is distributed in the hope that it will
15; be useful, but WITHOUT ANY WARRANTY of any kind.
16
17%ifndef __VBox_vm_mac__
18%define __VBox_vm_mac__
19
20%include "VBox/stam.mac"
21
22;/** This action forces the VM to service check and pending interrups on the APIC. */
23%define VM_FF_INTERRUPT_APIC (1 << 0)
24;/** This action forces the VM to service check and pending interrups on the PIC. */
25%define VM_FF_INTERRUPT_PIC (1 << 1)
26;/** This action forces the VM to schedule and run pending timer (TM). */
27%define VM_FF_TIMER (1 << 2)
28;/** This action forces the VM to service pending requests from other
29; * thread or requests which must be executed in another context. */
30%define VM_FF_REQUEST (1 << 9)
31
32;;
33; This is part of the VM structure.
34struc VM
35 .enmVMState resd 1
36 .fForcedActions resd 1
37 .paVMPagesR3 RTR3PTR_RES 1
38 .pSession RTR3PTR_RES 1
39 .pNext RTHCPTR_RES 1
40 .pVMR3 RTR3PTR_RES 1
41 .pVMR0 RTR0PTR_RES 1
42 .pVMGC RTGCPTR_RES 1
43 .hSelf resd 1
44 .u32Reserved resd 1
45
46 .pfnVMMGCGuestToHostAsmGuestCtx RTGCPTR_RES 1
47 .pfnVMMGCGuestToHostAsmHyperCtx RTGCPTR_RES 1
48 .pfnVMMGCGuestToHostAsm RTGCPTR_RES 1
49
50 .ThreadEMT RTHCPTR_RES 1
51 .NativeThreadEMT RTHCPTR_RES 1
52
53 .fRawR3Enabled resb 1
54 .fRawR0Enabled resb 1
55 .fPATMEnabled resb 1
56 .fCSAMEnabled resb 1
57 .fHWACCMEnabled resb 3
58
59 alignb 8
60
61 .StatTotalQemuToGC resb STAMPROFILEADV_size
62 .StatTotalGCToQemu resb STAMPROFILEADV_size
63 .StatTotalInGC resb STAMPROFILEADV_size
64 .StatTotalInQemu resb STAMPROFILEADV_size
65 .StatSwitcherToGC resb STAMPROFILEADV_size
66 .StatSwitcherToHC resb STAMPROFILEADV_size
67 .StatSwitcherSaveRegs resb STAMPROFILEADV_size
68 .StatSwitcherSysEnter resb STAMPROFILEADV_size
69 .StatSwitcherDebug resb STAMPROFILEADV_size
70 .StatSwitcherCR0 resb STAMPROFILEADV_size
71 .StatSwitcherCR4 resb STAMPROFILEADV_size
72 .StatSwitcherJmpCR3 resb STAMPROFILEADV_size
73 .StatSwitcherRstrRegs resb STAMPROFILEADV_size
74 .StatSwitcherLgdt resb STAMPROFILEADV_size
75 .StatSwitcherLidt resb STAMPROFILEADV_size
76 .StatSwitcherLldt resb STAMPROFILEADV_size
77 .StatSwitcherTSS resb STAMPROFILEADV_size
78
79 alignb 32
80%ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
81 .cpum resb 3584
82%elif HC_ARCH_BITS == 32
83 .cpum resb 3424
84%else
85 .cpum resb 3552
86%endif
87 .vmm resb 1024
88
89endstruc
90
91
92%endif
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