From: Andrew Cooper Date: Tue, 18 Feb 2025 23:01:11 +0000 (+0000) Subject: xen/domain: Annotate struct domain as page aligned X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8c12e47a5d3b8ef7484b4a6d04b73bd6c61a82cf;p=people%2Faperard%2Fxen-unstable.git xen/domain: Annotate struct domain as page aligned 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 Reviewed-by: Stefano Stabellini --- diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 75add0f216..559d201e0c 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -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)