|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] align pages in assign_domain_same_
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 1c9bdbc5e27be24c5ff9b1a5d74ddf2b765b8ade
# Parent b87ff075dab98a8e09801c6ca8633fcbe9b586bc
[IA64] align pages in assign_domain_same_page()
Fix a bug. potential miss of page assignment for domain.
If mpaddr and size are not aligned well, the last page might be not
assigned for the domain.
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
---
xen/arch/ia64/xen/mm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r b87ff075dab9 -r 1c9bdbc5e27b xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c Thu Jun 08 11:08:35 2006 -0600
+++ b/xen/arch/ia64/xen/mm.c Fri Jun 09 10:35:36 2006 -0600
@@ -658,8 +658,8 @@ assign_domain_same_page(struct domain *d
unsigned long flags)
{
//XXX optimization
- unsigned long end = mpaddr + size;
- for (; mpaddr < end; mpaddr += PAGE_SIZE) {
+ unsigned long end = PAGE_ALIGN(mpaddr + size);
+ for (mpaddr &= PAGE_MASK; mpaddr < end; mpaddr += PAGE_SIZE) {
__assign_domain_page(d, mpaddr, mpaddr, flags);
}
}
_______________________________________________
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] [IA64] align pages in assign_domain_same_page(),
Xen patchbot-unstable <=
|
|
|
|
|