bc9e71
commit 1a8364456c2f3946b4feb8fc78eaf00d974f4c03
bc9e71
Author: Jan Kiszka <jan.kiszka@siemens.com>
bc9e71
Date:   Wed Feb 23 09:28:53 2011 +0100
bc9e71
bc9e71
    qemu-kvm: Fix non-PCI target build
bc9e71
    
bc9e71
    Replace obsolete qemu-kvm.h with kvm.h in pci.c and build that module
bc9e71
    just like upstream does. This fixes non-x86 targets which have no PCI
bc9e71
    support.
bc9e71
    
bc9e71
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
bc9e71
    Signed-off-by: Avi Kivity <avi@redhat.com>
bc9e71
bc9e71
diff --git a/Makefile.objs b/Makefile.objs
bc9e71
index f5702eb..3ec7121 100644
bc9e71
--- a/Makefile.objs
bc9e71
+++ b/Makefile.objs
bc9e71
@@ -170,7 +170,7 @@ hw-obj-y =
bc9e71
 hw-obj-y += loader.o
bc9e71
 hw-obj-$(CONFIG_VIRTIO) += virtio.o virtio-console.o
bc9e71
 hw-obj-y += fw_cfg.o
bc9e71
-hw-obj-$(CONFIG_PCI) += pci_bridge.o
bc9e71
+hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
bc9e71
 hw-obj-$(CONFIG_PCI) += msix.o msi.o
bc9e71
 hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
bc9e71
 hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
bc9e71
diff --git a/Makefile.target b/Makefile.target
bc9e71
index 6e9a024..23367eb 100644
bc9e71
--- a/Makefile.target
bc9e71
+++ b/Makefile.target
bc9e71
@@ -195,7 +195,7 @@ endif #CONFIG_BSD_USER
bc9e71
 # System emulator target
bc9e71
 ifdef CONFIG_SOFTMMU
bc9e71
bc9e71
-obj-y = arch_init.o cpus.o monitor.o pci.o machine.o gdbstub.o vl.o balloon.o
bc9e71
+obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o vl.o balloon.o
bc9e71
 # virtio has to be here due to weird dependency between PCI and virtio-net.
bc9e71
 # need to fix this properly
bc9e71
 obj-$(CONFIG_NO_PCI) += pci-stub.o
bc9e71
diff --git a/hw/pci.c b/hw/pci.c
bc9e71
index 0c44939..1f6cebe 100644
bc9e71
--- a/hw/pci.c
bc9e71
+++ b/hw/pci.c
bc9e71
@@ -29,8 +29,8 @@
bc9e71
 #include "net.h"
bc9e71
 #include "sysemu.h"
bc9e71
 #include "loader.h"
bc9e71
-#include "qemu-kvm.h"
bc9e71
 #include "hw/pc.h"
bc9e71
+#include "kvm.h"
bc9e71
 #include "device-assignment.h"
bc9e71
 #include "qemu-objects.h"
bc9e71
 #include "range.h"