vtd: Define msi_msg_{read,write}_remap_rte() to nothing for ia64.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 14 Oct 2008 10:28:37 +0000 (11:28 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 14 Oct 2008 10:28:37 +0000 (11:28 +0100)
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/qinval.c
xen/drivers/passthrough/vtd/utils.c

index 356e887ef8a9970c24dced667321cf4da4831d37..2d81277edefdb33d4be47657094b5e9d8827361d 100644 (file)
@@ -24,7 +24,6 @@
 #include <xen/time.h>
 #include <xen/pci.h>
 #include <xen/pci_regs.h>
-#include <asm/msi.h>
 #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)
 {
index 16601e56ebd73b8bc71ff4c6f2fe62821283edad..2b36b7d06877afef705f8e89d395dec0d1b5fe5b 100644 (file)
@@ -29,8 +29,6 @@
 #include <xen/pci.h>
 #include <xen/pci_regs.h>
 #include <xen/keyhandler.h>
-#include <asm/paging.h>
-#include <asm/msi.h>
 #include "iommu.h"
 #include "dmar.h"
 #include "extern.h"
index a3973e3f6d125a57634e4734997ed0f0a7a9df23..bc015f2c468fd6f737a992188fcffe337706488f 100644 (file)
@@ -24,7 +24,6 @@
 #include <xen/time.h>
 #include <xen/pci.h>
 #include <xen/pci_regs.h>
-#include <asm/msi.h>
 #include "iommu.h"
 #include "dmar.h"
 #include "vtd.h"
index ba9420fb3c6dcd3a816d652532568053a8606070..4404a1f1c1a372072fb4f66b970f56740c22c86c 100644 (file)
@@ -23,7 +23,6 @@
 #include <xen/time.h>
 #include <xen/pci.h>
 #include <xen/pci_regs.h>
-#include <asm/msi.h>
 #include "iommu.h"
 #include "dmar.h"
 #include "vtd.h"