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

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



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274506898 -3600
# Node ID c45badecc05cbf2a6b8b40f19e0edc3575b7b779
# Parent  89616846ff4cbe77b1ea2e71ebc05812f7d4f900
iommu: Gracefully fail to initialise iommu on generic x86 platforms.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   21446:93410e5e4ad8
xen-unstable date:        Sat May 22 06:36:41 2010 +0100
---
 xen/include/asm-x86/hvm/iommu.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 89616846ff4c -r c45badecc05c xen/include/asm-x86/hvm/iommu.h
--- a/xen/include/asm-x86/hvm/iommu.h   Sat May 22 06:40:57 2010 +0100
+++ b/xen/include/asm-x86/hvm/iommu.h   Sat May 22 06:41:38 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®.