x86: Clean up shadow_page_info after page_info changes.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 26 Jan 2009 16:52:38 +0000 (16:52 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 26 Jan 2009 16:52:38 +0000 (16:52 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm/shadow/private.h

index cd4d55e446781a32f52a9d3f892e449c5ab0b984..83e8a2a7283e8268a913dd715eb1f5abaccac5c4 100644 (file)
@@ -244,16 +244,10 @@ struct shadow_page_info
                 u32 tlbflush_timestamp;
             };
             struct {
-                unsigned int type:5;   /* What kind of shadow is this? */
-                unsigned int pinned:1; /* Is the shadow pinned? */
-                unsigned int count:26; /* Reference count */
-#ifdef __x86_64__
-                u32 pad;
-                u64 mbz;               /* Must be zero: this is where the
-                                        * owner field lives in page_info */
-#else
-                u32 mbz;
-#endif
+                unsigned long mbz;     /* Must be zero: count_info is here. */
+                unsigned long type:5;   /* What kind of shadow is this? */
+                unsigned long pinned:1; /* Is the shadow pinned? */
+                unsigned long count:26; /* Reference count */
             } __attribute__((packed));
             union {
                 /* For unused shadow pages, a list of pages of this order; for 
@@ -277,7 +271,7 @@ static inline void shadow_check_page_struct_offsets(void) {
     BUILD_BUG_ON(sizeof (struct shadow_page_info) !=
                  sizeof (struct page_info));
     BUILD_BUG_ON(offsetof(struct shadow_page_info, mbz) !=
-                 offsetof(struct page_info, u.inuse._domain));
+                 offsetof(struct page_info, count_info));
 };
 
 /* Shadow type codes */