1 | ;$Id: HMInternal.mac 47652 2013-08-09 14:56:17Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; HM - Internal header file.
|
---|
4 | ;
|
---|
5 | ;
|
---|
6 | ; Copyright (C) 2006-2012 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 |
|
---|
17 | %if HC_ARCH_BITS == 32
|
---|
18 | %ifndef VBOX_WITH_HYBRID_32BIT_KERNEL
|
---|
19 | %define VMX_USE_CACHED_VMCS_ACCESSES
|
---|
20 | %endif
|
---|
21 | %endif
|
---|
22 |
|
---|
23 | %define VBOX_WITH_AUTO_MSR_LOAD_RESTORE
|
---|
24 |
|
---|
25 | ;Maximum number of cached entries.
|
---|
26 | %define VMCSCACHE_MAX_ENTRY 128
|
---|
27 |
|
---|
28 | ; Structure for storing read and write VMCS actions.
|
---|
29 | struc VMCSCACHE
|
---|
30 | %ifdef VBOX_WITH_CRASHDUMP_MAGIC
|
---|
31 | .aMagic resb 16
|
---|
32 | .uMagic resq 1
|
---|
33 | .u64TimeEntry resq 1
|
---|
34 | .u64TimeSwitch resq 1
|
---|
35 | .cResume resq 1
|
---|
36 | .interPD resq 1
|
---|
37 | .pSwitcher resq 1
|
---|
38 | .uPos resd 1
|
---|
39 | .idCpu resd 1
|
---|
40 | %endif
|
---|
41 | .cr2 resq 1
|
---|
42 | .Write.cValidEntries resd 1
|
---|
43 | .Write.uAlignment resd 1
|
---|
44 | .Write.aField resd VMCSCACHE_MAX_ENTRY
|
---|
45 | .Write.aFieldVal resq VMCSCACHE_MAX_ENTRY
|
---|
46 | .Read.cValidEntries resd 1
|
---|
47 | .Read.uAlignment resd 1
|
---|
48 | .Read.aField resd VMCSCACHE_MAX_ENTRY
|
---|
49 | .Read.aFieldVal resq VMCSCACHE_MAX_ENTRY
|
---|
50 | %ifdef VBOX_STRICT
|
---|
51 | .TestIn.HCPhysCpuPage resq 1
|
---|
52 | .TestIn.HCPhysVmcs resq 1
|
---|
53 | .TestIn.pCache resq 1
|
---|
54 | .TestIn.pCtx resq 1
|
---|
55 | .TestOut.HCPhysVmcs resq 1
|
---|
56 | .TestOut.pCache resq 1
|
---|
57 | .TestOut.pCtx resq 1
|
---|
58 | .TestOut.eflags resq 1
|
---|
59 | .TestOut.cr8 resq 1
|
---|
60 | .ScratchPad.param1 resq 1
|
---|
61 | .ScratchPad.param2 resq 1
|
---|
62 | .ScratchPad.param3 resq 1
|
---|
63 | .ScratchPad.param4 resq 1
|
---|
64 | %endif
|
---|
65 | endstruc
|
---|
66 |
|
---|