@@ -14,7 +14,4 @@ obj-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o
obj-y += testdev.o
obj-y += acpi.o acpi_piix4.o
-obj-$(CONFIG_KVM) += device-assignment.o
-
-
obj-y := $(addprefix ../,$(obj-y))
@@ -1 +1 @@
-obj-$(CONFIG_KVM) += clock.o apic.o i8259.o ioapic.o i8254.o
+obj-$(CONFIG_KVM) += clock.o apic.o i8259.o ioapic.o i8254.o pci-assign.o
similarity index 99%
rename from hw/device-assignment.c
rename to hw/kvm/pci-assign.c
@@ -31,16 +31,16 @@
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include "hw.h"
-#include "pc.h"
+#include "hw/hw.h"
+#include "hw/pc.h"
#include "qemu-error.h"
#include "console.h"
-#include "loader.h"
+#include "hw/loader.h"
#include "monitor.h"
#include "range.h"
#include "sysemu.h"
-#include "pci.h"
-#include "msi.h"
+#include "hw/pci.h"
+#include "hw/msi.h"
#include "kvm_i386.h"
#define MSIX_PAGE_SIZE 0x1000
Move device-assignment.c into hw/kvm, calling it pci-assign.c now, just like its device name. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> --- hw/i386/Makefile.objs | 3 --- hw/kvm/Makefile.objs | 2 +- hw/{device-assignment.c => kvm/pci-assign.c} | 10 +++++----- 3 files changed, 6 insertions(+), 9 deletions(-) rename hw/{device-assignment.c => kvm/pci-assign.c} (99%)