7143fd3903
Fixes error because of missing autoconf.h when building os11.2 Factory. - bnc#609153 - xm migrate <domain_name> localhost -l fails on Windows VMs 21615-dont-save-xen-heap-pages.patch - Upstream fixes from Jan 21446-iommu-graceful-generic-fail.patch 21453-shadow-avoid-remove-all-after-teardown.patch 21456-compat-hvm-addr-check.patch 21492-x86-pirq-unbind.patch 21526-x86-nehalem-cpuid-mask.patch 21620-x86-signed-domain-irq.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=59
30 lines
811 B
Diff
30 lines
811 B
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir.fraser@citrix.com>
|
|
# 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@citrix.com>
|
|
|
|
--- a/xen/include/asm-x86/hvm/iommu.h
|
|
+++ b/xen/include/asm-x86/hvm/iommu.h
|
|
@@ -1,6 +1,8 @@
|
|
#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;
|
|
extern const struct iommu_ops amd_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;
|