[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@jp.fujitsu.com>
This commit is contained in:
awilliam@xenbuild.aw committed 2006-06-09 10:35:36 -06:00
1 parent 380fd3ed0d
commit 58f8dc1cba
1 file changed
+2 -2
+2 -2
View File
@@ -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);
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.