xen-vtx-unstable

view xen/include/asm-x86/shadow_ops.h @ 6774:4d899a738d59

merge?
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 15:05:49 2005 +0000 (2005-09-13)
parents 3feb7fa331ed 291e816acbf4
children e7c7196fa329 8ca0f98ba8e2
line source
1 /******************************************************************************
2 * include/asm-x86/shadow_ops.h
3 *
4 * Copyright (c) 2005 Michael A Fetterman
5 * Based on an earlier implementation by Ian Pratt et al
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
22 #ifndef _XEN_SHADOW_OPS_H
23 #define _XEN_SHADOW_OPS_H
25 #if defined( GUEST_PGENTRY_32 )
27 #define GUEST_L1_PAGETABLE_ENTRIES L1_PAGETABLE_ENTRIES_32
28 #define GUEST_L2_PAGETABLE_ENTRIES L2_PAGETABLE_ENTRIES_32
29 #define GUEST_ROOT_PAGETABLE_ENTRIES ROOT_PAGETABLE_ENTRIES_32
30 #define GUEST_L2_PAGETABLE_SHIFT L2_PAGETABLE_SHIFT_32
32 #define guest_l1_pgentry_t l1_pgentry_32_t
33 #define guest_l2_pgentry_t l2_pgentry_32_t
34 #define guest_root_pgentry_t l2_pgentry_32_t
36 #define guest_l1e_get_paddr l1e_get_paddr_32
37 #define guest_l2e_get_paddr l2e_get_paddr_32
39 #define guest_get_pte_flags get_pte_flags_32
40 #define guest_put_pte_flags put_pte_flags_32
42 #define guest_l1e_get_flags l1e_get_flags_32
43 #define guest_l2e_get_flags l2e_get_flags_32
44 #define guest_root_get_flags l2e_get_flags_32
45 #define guest_root_get_intpte l2e_get_intpte
47 #define guest_l1e_empty l1e_empty_32
48 #define guest_l2e_empty l2e_empty_32
50 #define guest_l1e_from_pfn l1e_from_pfn_32
51 #define guest_l2e_from_pfn l2e_from_pfn_32
53 #define guest_l1e_from_paddr l1e_from_paddr_32
54 #define guest_l2e_from_paddr l2e_from_paddr_32
56 #define guest_l1e_from_page l1e_from_page_32
57 #define guest_l2e_from_page l2e_from_page_32
59 #define guest_l1e_add_flags l1e_add_flags_32
60 #define guest_l2e_add_flags l2e_add_flags_32
62 #define guest_l1e_remove_flag l1e_remove_flags_32
63 #define guest_l2e_remove_flag l2e_remove_flags_32
65 #define guest_l1e_has_changed l1e_has_changed_32
66 #define guest_l2e_has_changed l2e_has_changed_32
67 #define root_entry_has_changed l2e_has_changed_32
69 #define guest_l1_table_offset l1_table_offset_32
70 #define guest_l2_table_offset l2_table_offset_32
72 #define guest_linear_l1_table linear_pg_table_32
73 #define guest_linear_l2_table linear_l2_table_32
75 #define guest_va_to_l1mfn va_to_l1mfn_32
77 #else
79 #define GUEST_L1_PAGETABLE_ENTRIES L1_PAGETABLE_ENTRIES
80 #define GUEST_L2_PAGETABLE_ENTRIES L2_PAGETABLE_ENTRIES
81 #define GUEST_ROOT_PAGETABLE_ENTRIES ROOT_PAGETABLE_ENTRIES
82 #define GUEST_L2_PAGETABLE_SHIFT L2_PAGETABLE_SHIFT
84 #define guest_l1_pgentry_t l1_pgentry_t
85 #define guest_l2_pgentry_t l2_pgentry_t
86 #define guest_root_pgentry_t l4_pgentry_t
88 #define guest_l1e_get_paddr l1e_get_paddr
89 #define guest_l2e_get_paddr l2e_get_paddr
91 #define guest_get_pte_flags get_pte_flags
92 #define guest_put_pte_flags put_pte_flags
94 #define guest_l1e_get_flags l1e_get_flags
95 #define guest_l2e_get_flags l2e_get_flags
96 #define guest_root_get_flags l4e_get_flags
97 #define guest_root_get_intpte l4e_get_intpte
99 #define guest_l1e_empty l1e_empty
100 #define guest_l2e_empty l2e_empty
102 #define guest_l1e_from_pfn l1e_from_pfn
103 #define guest_l2e_from_pfn l2e_from_pfn
105 #define guest_l1e_from_paddr l1e_from_paddr
106 #define guest_l2e_from_paddr l2e_from_paddr
108 #define guest_l1e_from_page l1e_from_page
109 #define guest_l2e_from_page l2e_from_page
111 #define guest_l1e_add_flags l1e_add_flags
112 #define guest_l2e_add_flags l2e_add_flags
114 #define guest_l1e_remove_flag l1e_remove_flags
115 #define guest_l2e_remove_flag l2e_remove_flags
117 #define guest_l1e_has_changed l1e_has_changed
118 #define guest_l2e_has_changed l2e_has_changed
119 #define root_entry_has_changed l4e_has_changed
121 #define guest_l1_table_offset l1_table_offset
122 #define guest_l2_table_offset l2_table_offset
124 #define guest_linear_l1_table linear_pg_table
125 #define guest_linear_l2_table linear_l2_table
127 #define guest_va_to_l1mfn va_to_l1mfn
128 #endif
130 #endif /* _XEN_SHADOW_OPS_H */