[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] add one BUG_ON() to allocate_metaphysical_rr()



# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1219658677 -32400
# Node ID de736eefb6e123141cf064c9245477a455d4d95e
# Parent  2ec019301ad8a16d776cb4eb9fedcc596aa39732
[IA64] add one BUG_ON() to allocate_metaphysical_rr()

add one BUG_ON() to allocate_metaphysical_rr() to make sure
that rid for metaphysical address isn't collided.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/regionreg.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 2ec019301ad8 -r de736eefb6e1 xen/arch/ia64/xen/regionreg.c
--- a/xen/arch/ia64/xen/regionreg.c     Thu Aug 21 15:18:05 2008 +0100
+++ b/xen/arch/ia64/xen/regionreg.c     Mon Aug 25 19:04:37 2008 +0900
@@ -80,6 +80,7 @@ static unsigned long allocate_metaphysic
 static unsigned long allocate_metaphysical_rr(struct domain *d, int n)
 {
        ia64_rr rrv;
+       BUG_ON(d->arch.starting_mp_rid + n >= d->arch.ending_mp_rid);
 
        rrv.rrval = 0;  // Or else may see reserved bit fault
        rrv.rid = d->arch.starting_mp_rid + n;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.