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