This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] add one BUG_ON() to allocate_metaphysical_rr()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Sep 2008 09:50:14 -0700
Delivery-date: Wed, 17 Sep 2008 09:50:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] add one BUG_ON() to allocate_metaphysical_rr(), Xen patchbot-unstable <=