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-devel

[Xen-devel] [PATCH][VTD] fixed another dom0 boot issue on my system

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][VTD] fixed another dom0 boot issue on my system
From: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Date: Tue, 17 Feb 2009 18:40:10 -0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Han, Weidong" <weidong.han@xxxxxxxxx>
Delivery-date: Tue, 17 Feb 2009 18:40:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmRcjeVO3C4+wPFQs25Kx6kL2Ntyw==
Thread-topic: [PATCH][VTD] fixed another dom0 boot issue on my system
Dom0 boot crashed on my system because dom0 pointer is NULL at this point.

Signed-off-by: Allen Kay allen.m.kay@xxxxxxxxx

===================

diff -r 7fe15a0ee3d8 xen/drivers/passthrough/vtd/x86/vtd.c
--- a/xen/drivers/passthrough/vtd/x86/vtd.c     Tue Feb 17 11:20:18 2009 +0000
+++ b/xen/drivers/passthrough/vtd/x86/vtd.c     Tue Feb 17 16:17:05 2009 -0800
@@ -149,7 +149,8 @@ void iommu_set_dom0_mapping(struct domai
     u64 i, j, tmp;
     extern int xen_in_range(paddr_t start, paddr_t end);

-    BUG_ON(d != dom0);
+    if ( dom0 )
+        BUG_ON(d != dom0);

     for ( i = 0; i < max_page; i++ )
     {

Attachment: fix_boot.patch
Description: fix_boot.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][VTD] fixed another dom0 boot issue on my system, Kay, Allen M <=