Kay, Allen M
2009-Feb-18 02:40 UTC
[Xen-devel] [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@intel.com ================== 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++ ) { _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel