x86: reduce struct paging_domain size
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 8 May 2015 10:21:17 +0000 (12:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 May 2015 10:21:17 +0000 (12:21 +0200)
Pack struct paging_domain to reduce it by 8 bytes.  Thus reducing the
size of struct domain by 8 bytes.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
xen/include/asm-x86/domain.h

index 3f83e8ba594296394f160f435d4f98aeca7d9e41..45b5283d8ddf5f37bc91d945151d7a5c57147732 100644 (file)
@@ -186,6 +186,8 @@ struct paging_domain {
 
     /* flags to control paging operation */
     u32                     mode;
+    /* Has that pool ever run out of memory? */
+    bool_t                  p2m_alloc_failed;
     /* extension for shadow paging support */
     struct shadow_domain    shadow;
     /* extension for hardware-assited paging */
@@ -210,8 +212,6 @@ struct paging_domain {
      * (used by p2m and log-dirty code for their tries) */
     struct page_info * (*alloc_page)(struct domain *d);
     void (*free_page)(struct domain *d, struct page_info *pg);
-    /* Has that pool ever run out of memory? */
-    bool_t p2m_alloc_failed;
 };
 
 struct paging_vcpu {