1 | /* $Id: PGMRCGst.h 56287 2015-06-09 11:15:22Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox - Page Manager, Guest Paging Template - Guest Context.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2015 Oracle Corporation
|
---|
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 (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | /*******************************************************************************
|
---|
19 | * Defined Constants And Macros *
|
---|
20 | *******************************************************************************/
|
---|
21 | #undef GSTPT
|
---|
22 | #undef PGSTPT
|
---|
23 | #undef GSTPTE
|
---|
24 | #undef PGSTPTE
|
---|
25 | #undef GSTPD
|
---|
26 | #undef PGSTPD
|
---|
27 | #undef GSTPDE
|
---|
28 | #undef PGSTPDE
|
---|
29 | #undef GST_BIG_PAGE_SIZE
|
---|
30 | #undef GST_BIG_PAGE_OFFSET_MASK
|
---|
31 | #undef GST_PDE_PG_MASK
|
---|
32 | #undef GST_PDE4M_PG_MASK
|
---|
33 | #undef GST_PD_SHIFT
|
---|
34 | #undef GST_PD_MASK
|
---|
35 | #undef GST_PTE_PG_MASK
|
---|
36 | #undef GST_PT_SHIFT
|
---|
37 | #undef GST_PT_MASK
|
---|
38 |
|
---|
39 | #if PGM_GST_TYPE == PGM_TYPE_32BIT
|
---|
40 | # define GSTPT X86PT
|
---|
41 | # define PGSTPT PX86PT
|
---|
42 | # define GSTPTE X86PTE
|
---|
43 | # define PGSTPTE PX86PTE
|
---|
44 | # define GSTPD X86PD
|
---|
45 | # define PGSTPD PX86PD
|
---|
46 | # define GSTPDE X86PDE
|
---|
47 | # define PGSTPDE PX86PDE
|
---|
48 | # define GST_BIG_PAGE_SIZE X86_PAGE_4M_SIZE
|
---|
49 | # define GST_BIG_PAGE_OFFSET_MASK X86_PAGE_4M_OFFSET_MASK
|
---|
50 | # define GST_PDE_PG_MASK X86_PDE_PG_MASK
|
---|
51 | # define GST_PDE4M_PG_MASK X86_PDE4M_PG_MASK
|
---|
52 | # define GST_PD_SHIFT X86_PD_SHIFT
|
---|
53 | # define GST_PD_MASK X86_PD_MASK
|
---|
54 | # define GST_PTE_PG_MASK X86_PTE_PG_MASK
|
---|
55 | # define GST_PT_SHIFT X86_PT_SHIFT
|
---|
56 | # define GST_PT_MASK X86_PT_MASK
|
---|
57 | #else
|
---|
58 | # define GSTPT X86PTPAE
|
---|
59 | # define PGSTPT PX86PTPAE
|
---|
60 | # define GSTPTE X86PTEPAE
|
---|
61 | # define PGSTPTE PX86PTEPAE
|
---|
62 | # define GSTPD X86PDPAE
|
---|
63 | # define PGSTPD PX86PDPAE
|
---|
64 | # define GSTPDE X86PDEPAE
|
---|
65 | # define PGSTPDE PX86PDEPAE
|
---|
66 | # define GST_BIG_PAGE_SIZE X86_PAGE_2M_SIZE
|
---|
67 | # define GST_BIG_PAGE_OFFSET_MASK X86_PAGE_2M_OFFSET_MASK
|
---|
68 | # define GST_PDE_PG_MASK X86_PDE_PAE_PG_MASK
|
---|
69 | # define GST_PDE4M_PG_MASK X86_PDE4M_PAE_PG_MASK
|
---|
70 | # define GST_PD_SHIFT X86_PD_PAE_SHIFT
|
---|
71 | # define GST_PD_MASK X86_PD_PAE_MASK
|
---|
72 | # define GST_PTE_PG_MASK X86_PTE_PAE_PG_MASK
|
---|
73 | # define GST_PT_SHIFT X86_PT_PAE_SHIFT
|
---|
74 | # define GST_PT_MASK X86_PT_PAE_MASK
|
---|
75 | #endif
|
---|
76 |
|
---|