xen/pt: io.c contains HVM only code
authorWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 12:19:41 +0000 (13:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Aug 2018 09:49:27 +0000 (10:49 +0100)
We also need to make it x86 only because ARM will define CONFIG_HVM at
some point.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/Makefile

index 6087333a34bbf0aaad94ae66bc070f9a7d23bcd6..d50ab188c83cc3e7e646752fe4570ded30779e8e 100644 (file)
@@ -4,6 +4,8 @@ subdir-$(CONFIG_X86) += x86
 subdir-$(CONFIG_ARM) += arm
 
 obj-y += iommu.o
-obj-$(CONFIG_X86) += io.o
 obj-$(CONFIG_HAS_PCI) += pci.o
 obj-$(CONFIG_HAS_DEVICE_TREE) += device_tree.o
+
+x86-$(CONFIG_HVM) := io.o
+obj-$(CONFIG_X86) += $(x86-y)