diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2006-11-23 17:40:28 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2006-11-23 17:40:28 +0000 |
commit | 63aa5155c2e5c301b5cf89604210998a829deaa0 (patch) | |
tree | 87c1b560b1bc1dca3140173192a8111d9afa7ac6 /xen/include/asm-x86/shadow.h | |
parent | acc3cc66f75751ffee27ce4abc61bf2a9d2590d2 (diff) | |
download | xen-63aa5155c2e5c301b5cf89604210998a829deaa0.tar.gz xen-63aa5155c2e5c301b5cf89604210998a829deaa0.tar.bz2 xen-63aa5155c2e5c301b5cf89604210998a829deaa0.zip |
[XEN] Use a separate struct shadow_page_info for shadow pages
and move the definitions of shadow types etc out of public headers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r-- | xen/include/asm-x86/shadow.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h index af9abff3f4..14f330f81c 100644 --- a/xen/include/asm-x86/shadow.h +++ b/xen/include/asm-x86/shadow.h @@ -577,32 +577,6 @@ void shadow_guest_physmap_remove_page(struct domain *d, unsigned long gfn, unsigned long mfn); -/* - * Definitions for the shadow_flags field in page_info. - * These flags are stored on *guest* pages... - * Bits 1-13 are encodings for the shadow types. - */ -#define PGC_SH_type_to_index(_type) ((_type) >> PGC_SH_type_shift) -#define SHF_page_type_mask \ - (((1u << (PGC_SH_type_to_index(PGC_SH_max_shadow) + 1u)) - 1u) - \ - ((1u << PGC_SH_type_to_index(PGC_SH_min_shadow)) - 1u)) - -#define SHF_L1_32 (1u << PGC_SH_type_to_index(PGC_SH_l1_32_shadow)) -#define SHF_FL1_32 (1u << PGC_SH_type_to_index(PGC_SH_fl1_32_shadow)) -#define SHF_L2_32 (1u << PGC_SH_type_to_index(PGC_SH_l2_32_shadow)) -#define SHF_L1_PAE (1u << PGC_SH_type_to_index(PGC_SH_l1_pae_shadow)) -#define SHF_FL1_PAE (1u << PGC_SH_type_to_index(PGC_SH_fl1_pae_shadow)) -#define SHF_L2_PAE (1u << PGC_SH_type_to_index(PGC_SH_l2_pae_shadow)) -#define SHF_L2H_PAE (1u << PGC_SH_type_to_index(PGC_SH_l2h_pae_shadow)) -#define SHF_L1_64 (1u << PGC_SH_type_to_index(PGC_SH_l1_64_shadow)) -#define SHF_FL1_64 (1u << PGC_SH_type_to_index(PGC_SH_fl1_64_shadow)) -#define SHF_L2_64 (1u << PGC_SH_type_to_index(PGC_SH_l2_64_shadow)) -#define SHF_L3_64 (1u << PGC_SH_type_to_index(PGC_SH_l3_64_shadow)) -#define SHF_L4_64 (1u << PGC_SH_type_to_index(PGC_SH_l4_64_shadow)) - -/* Used for hysteresis when automatically unhooking mappings on fork/exit */ -#define SHF_unhooked_mappings (1u<<31) - /* * Allocation of shadow pages */ |