From 8c12e47a5d3b8ef7484b4a6d04b73bd6c61a82cf Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Tue, 18 Feb 2025 23:01:11 +0000 Subject: [PATCH] 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 --- xen/include/xen/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)