]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/domain: Annotate struct domain as page aligned
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Feb 2025 23:01:11 +0000 (23:01 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 7 Mar 2025 14:34:08 +0000 (14:34 +0000)
struct domain is always a page aligned allocation.  Update it's type to
reflect this, so we can safely reuse the lower bits in the pointer for
auxiliary information.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/xen/sched.h

index 75add0f216acd7e085b1fc999dcc5d48563c47b4..559d201e0c7e3abb0b289a09d58bc631a6418ba3 100644 (file)
@@ -651,7 +651,7 @@ struct domain
     unsigned int num_llc_colors;
     const unsigned int *llc_colors;
 #endif
-};
+} __aligned(PAGE_SIZE);
 
 static inline struct page_list_head *page_to_list(
     struct domain *d, const struct page_info *pg)