|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86 shadow: Relax BUILD_BUG_ON() regardin
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1218625928 -3600
# Node ID 641e10533c89fdba208e650d2a6205396ae20509
# Parent b75f0b3e2a7e34744bb8fc80417eb8c48b5ef8f8
x86 shadow: Relax BUILD_BUG_ON() regarding struct sizes.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
xen/arch/x86/mm/shadow/private.h | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff -r b75f0b3e2a7e -r 641e10533c89 xen/arch/x86/mm/shadow/private.h
--- a/xen/arch/x86/mm/shadow/private.h Wed Aug 13 11:09:46 2008 +0100
+++ b/xen/arch/x86/mm/shadow/private.h Wed Aug 13 12:12:08 2008 +0100
@@ -213,15 +213,14 @@ struct shadow_page_info
};
};
-/* The structure above *must* be the same size as a struct page_info
+/* The structure above *must* be no larger than a struct page_info
* from mm.h, since we'll be using the same space in the frametable.
* Also, the mbz field must line up with the owner field of normal
* pages, so they look properly like anonymous/xen pages. */
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));
+ 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));
};
/* Shadow type codes */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] x86 shadow: Relax BUILD_BUG_ON() regarding struct sizes.,
Xen patchbot-unstable <=
|
|
|
|
|