From: Keir Fraser Date: Tue, 14 Oct 2008 10:28:37 +0000 (+0100) Subject: vtd: Define msi_msg_{read,write}_remap_rte() to nothing for ia64. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14078 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f7eb9578cb729daf22f003ad4d291ab519cf2a76;p=xen.git vtd: Define msi_msg_{read,write}_remap_rte() to nothing for ia64. Signed-off-by: Anthony Xu Signed-off-by: Dexuan Cui --- diff --git a/xen/drivers/passthrough/vtd/intremap.c b/xen/drivers/passthrough/vtd/intremap.c index 356e887ef8..2d81277ede 100644 --- a/xen/drivers/passthrough/vtd/intremap.c +++ b/xen/drivers/passthrough/vtd/intremap.c @@ -24,7 +24,6 @@ #include #include #include -#include #include "iommu.h" #include "dmar.h" #include "vtd.h" @@ -269,6 +268,7 @@ void io_apic_write_remap_rte( *(IO_APIC_BASE(apic)+4) = *(((u32 *)&old_rte)+1); } +#if defined(__i386__) || defined(__x86_64__) static int remap_entry_to_msi_msg( struct iommu *iommu, struct msi_msg *msg) { @@ -452,6 +452,19 @@ void msi_msg_write_remap_rte( msi_msg_to_remap_entry(iommu, pdev, msg); } +#elif defined(__ia64__) +void msi_msg_read_remap_rte( + struct msi_desc *msi_desc, struct msi_msg *msg) +{ + /* TODO. */ +} + +void msi_msg_write_remap_rte( + struct msi_desc *msi_desc, struct msi_msg *msg) +{ + /* TODO. */ +} +#endif int intremap_setup(struct iommu *iommu) { diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index 16601e56eb..2b36b7d068 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -29,8 +29,6 @@ #include #include #include -#include -#include #include "iommu.h" #include "dmar.h" #include "extern.h" diff --git a/xen/drivers/passthrough/vtd/qinval.c b/xen/drivers/passthrough/vtd/qinval.c index a3973e3f6d..bc015f2c46 100644 --- a/xen/drivers/passthrough/vtd/qinval.c +++ b/xen/drivers/passthrough/vtd/qinval.c @@ -24,7 +24,6 @@ #include #include #include -#include #include "iommu.h" #include "dmar.h" #include "vtd.h" diff --git a/xen/drivers/passthrough/vtd/utils.c b/xen/drivers/passthrough/vtd/utils.c index ba9420fb3c..4404a1f1c1 100644 --- a/xen/drivers/passthrough/vtd/utils.c +++ b/xen/drivers/passthrough/vtd/utils.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "iommu.h" #include "dmar.h" #include "vtd.h"