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

[Xen-changelog] [xen-unstable] iommu: Gracefully fail to initialise iommu on generic x86 platforms.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274506601 -3600
# Node ID 93410e5e4ad8799932ad31820d0d82c74d1f63a2
# Parent  c1ed00d495342334980be576bbb8a2b1037b89c9
iommu: Gracefully fail to initialise iommu on generic x86 platforms.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/include/asm-x86/hvm/iommu.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r c1ed00d49534 -r 93410e5e4ad8 xen/include/asm-x86/hvm/iommu.h
--- a/xen/include/asm-x86/hvm/iommu.h   Sat May 22 06:31:47 2010 +0100
+++ b/xen/include/asm-x86/hvm/iommu.h   Sat May 22 06:36:41 2010 +0100
@@ -1,5 +1,7 @@
 #ifndef __ASM_X86_HVM_IOMMU_H__
 #define __ASM_X86_HVM_IOMMU_H__
+
+#include <xen/errno.h>
 
 struct iommu_ops;
 extern const struct iommu_ops intel_iommu_ops;
@@ -31,7 +33,7 @@ static inline int iommu_hardware_setup(v
     case X86_VENDOR_AMD:
         return amd_iov_detect();
     default:
-        BUG();
+        return -ENODEV;
     }
 
     return 0;

_______________________________________________
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®.