WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Don't panic for (rare) dom0 physaddr with uncacheable at

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Don't panic for (rare) dom0 physaddr with uncacheable attribute
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Nov 2005 16:26:08 +0000
Delivery-date: Fri, 11 Nov 2005 16:26:35 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 djm@xxxxxxxxxxxxxxx
# Node ID 7fd6dff1631d662c53b7a11c55ef7b07ac50e156
# Parent  8ddc812626b24eb327613b61e5251181eb93b98f
Don't panic for (rare) dom0 physaddr with uncacheable attribute

diff -r 8ddc812626b2 -r 7fd6dff1631d xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Wed Nov  9 18:59:28 2005
+++ b/xen/arch/ia64/xen/vcpu.c  Wed Nov  9 20:11:31 2005
@@ -1296,9 +1296,12 @@
        TR_ENTRY *trp;
 
        if (PSCB(vcpu,metaphysical_mode)) {
-               if (address >> 61)      // FIXME: need more precise check here
+               unsigned long region = address >> 61;
+               // dom0 may generate an uncacheable physical address (msb=1)
+               if (region && ((region != 4) || (vcpu->domain != dom0))) {
                        panic_domain(vcpu_regs(vcpu),
-                               "vcpu_translate: bad physical address\n");
+                        "vcpu_translate: bad physical address: %p\n",address);
+               }
                *pteval = (address & _PAGE_PPN_MASK) | __DIRTY_BITS | 
_PAGE_PL_2 | _PAGE_AR_RWX;
                *itir = PAGE_SHIFT << 2;
                phys_translate_count++;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Don't panic for (rare) dom0 physaddr with uncacheable attribute, Xen patchbot -unstable <=