]> www.infradead.org Git - qemu-nvme.git/commitdiff
hw: move virtio devices to hw/ subdirectories
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Feb 2013 11:42:31 +0000 (12:42 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2013 16:13:12 +0000 (18:13 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
24 files changed:
configure
hw/Makefile.objs
hw/block/Makefile.objs
hw/block/dataplane/Makefile.objs [new file with mode: 0644]
hw/block/dataplane/ioq.c [moved from hw/dataplane/ioq.c with 100% similarity]
hw/block/dataplane/ioq.h [moved from hw/dataplane/ioq.h with 100% similarity]
hw/block/dataplane/virtio-blk.c [moved from hw/dataplane/virtio-blk.c with 100% similarity]
hw/block/dataplane/virtio-blk.h [moved from hw/dataplane/virtio-blk.h with 100% similarity]
hw/block/virtio-blk.c [moved from hw/virtio-blk.c with 100% similarity]
hw/char/Makefile.objs
hw/char/virtio-serial-bus.c [moved from hw/virtio-serial-bus.c with 100% similarity]
hw/dataplane/Makefile.objs [deleted file]
hw/net/Makefile.objs
hw/net/vhost_net.c [moved from hw/vhost_net.c with 100% similarity]
hw/net/virtio-net.c [moved from hw/virtio-net.c with 100% similarity]
hw/scsi/Makefile.objs
hw/scsi/virtio-scsi.c [moved from hw/virtio-scsi.c with 100% similarity]
hw/virtio/Makefile.objs
hw/virtio/dataplane/Makefile.objs [new file with mode: 0644]
hw/virtio/dataplane/hostmem.c [moved from hw/dataplane/hostmem.c with 100% similarity]
hw/virtio/dataplane/vring.c [moved from hw/dataplane/vring.c with 100% similarity]
hw/virtio/vhost.c [moved from hw/vhost.c with 100% similarity]
hw/virtio/virtio-balloon.c [moved from hw/virtio-balloon.c with 100% similarity]
hw/virtio/virtio.c [moved from hw/virtio.c with 100% similarity]

index d685275c61fe88a0e70bed35b82544b9d59e1c10..e3279ed8b7f5cb09c215c24dbc4b0a6bbbd079f2 100755 (executable)
--- a/configure
+++ b/configure
@@ -3814,7 +3814,7 @@ if test "$glusterfs" = "yes" ; then
 fi
 
 if test "$virtio_blk_data_plane" = "yes" ; then
-  echo "CONFIG_VIRTIO_BLK_DATA_PLANE=y" >> $config_host_mak
+  echo 'CONFIG_VIRTIO_BLK_DATA_PLANE=$(CONFIG_VIRTIO)' >> $config_host_mak
 fi
 
 # USB host support
index 1d28ce28d7d9bc42ac5fd744b07f7e66b109b775..83a6bf2b18b47c13fa7f527df62e4a868e597ceb 100644 (file)
@@ -34,11 +34,6 @@ ifeq ($(CONFIG_SOFTMMU),y)
 # Per-target files
 # virtio has to be here due to weird dependency between PCI and virtio-net.
 # need to fix this properly
-obj-$(CONFIG_VIRTIO) += dataplane/
-obj-$(CONFIG_VIRTIO) += virtio.o virtio-blk.o virtio-balloon.o virtio-net.o
-obj-$(CONFIG_VIRTIO) += virtio-serial-bus.o virtio-scsi.o
-obj-$(CONFIG_SOFTMMU) += vhost_net.o
-obj-$(CONFIG_VHOST_NET) += vhost.o
 obj-$(CONFIG_VGA) += vga.o
 
 # Inter-VM PCI shared memory & VFIO PCI device assignment
index 5fa51013860dceff9c0b4afee15e5cd6d7749a70..856915eb6a37f99d24056dd1d78be83b1dbeb3c9 100644 (file)
@@ -6,3 +6,6 @@ common-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
 common-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
 common-obj-$(CONFIG_XEN_BACKEND) += xen_disk.o
 common-obj-$(CONFIG_ECC) += ecc.o
+
+obj-$(CONFIG_VIRTIO) += virtio-blk.o
+obj-$(CONFIG_VIRTIO_BLK_DATA_PLANE) += dataplane/
diff --git a/hw/block/dataplane/Makefile.objs b/hw/block/dataplane/Makefile.objs
new file mode 100644 (file)
index 0000000..9da2eb8
--- /dev/null
@@ -0,0 +1 @@
+obj-y += ioq.o virtio-blk.o
similarity index 100%
rename from hw/dataplane/ioq.c
rename to hw/block/dataplane/ioq.c
similarity index 100%
rename from hw/dataplane/ioq.h
rename to hw/block/dataplane/ioq.h
similarity index 100%
rename from hw/virtio-blk.c
rename to hw/block/virtio-blk.c
index eee23ff6373628bc0bd7b62f6f3f567557a0422a..ddfd3ec9cb10e4aa4662d1b6c20932c6ec08c96b 100644 (file)
@@ -8,3 +8,5 @@ common-obj-$(CONFIG_VIRTIO) += virtio-console.o
 common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o
 common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o
 common-obj-$(CONFIG_CADENCE) += cadence_uart.o
+
+obj-$(CONFIG_VIRTIO) += virtio-serial-bus.o
diff --git a/hw/dataplane/Makefile.objs b/hw/dataplane/Makefile.objs
deleted file mode 100644 (file)
index 701111c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-obj-$(CONFIG_VIRTIO_BLK_DATA_PLANE) += hostmem.o vring.o ioq.o virtio-blk.o
index ad91293fe4acf2d1d4667d768822baa3e0644e78..73217d80ae7c0142849b7a0fb55d55ce452d2cc6 100644 (file)
@@ -20,3 +20,6 @@ common-obj-$(CONFIG_MIPSNET) += mipsnet.o
 common-obj-$(CONFIG_XILINX_AXI) += xilinx_axienet.o
 
 common-obj-$(CONFIG_CADENCE) += cadence_gem.o
+
+obj-$(CONFIG_VIRTIO) += virtio-net.o
+obj-y += vhost_net.o
similarity index 100%
rename from hw/vhost_net.c
rename to hw/net/vhost_net.c
similarity index 100%
rename from hw/virtio-net.c
rename to hw/net/virtio-net.c
index 6a56504068d4fa6f8844f6e73b5db39f937930f9..b76b9c3733c981502ab426d09e4d79cebbf035ce 100644 (file)
@@ -4,3 +4,4 @@ common-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
 common-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o
 common-obj-$(CONFIG_ESP) += esp.o
 common-obj-$(CONFIG_ESP_PCI) += esp-pci.o
+obj-$(CONFIG_VIRTIO) += virtio-scsi.o
similarity index 100%
rename from hw/virtio-scsi.c
rename to hw/scsi/virtio-scsi.c
index ed63495a7f619fececb53a25fadf8861ad539dca..c7e801344b0effa6d262a0c4867f08d982bbb13d 100644 (file)
@@ -1,4 +1,7 @@
 common-obj-$(CONFIG_VIRTIO) += virtio-rng.o
 common-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
 common-obj-$(CONFIG_VIRTIO) += virtio-bus.o
+common-obj-$(CONFIG_VIRTIO_BLK_DATA_PLANE) += dataplane/
 
+obj-$(CONFIG_VIRTIO) += virtio.o virtio-balloon.o 
+obj-$(CONFIG_VHOST_NET) += vhost.o
diff --git a/hw/virtio/dataplane/Makefile.objs b/hw/virtio/dataplane/Makefile.objs
new file mode 100644 (file)
index 0000000..a91bf33
--- /dev/null
@@ -0,0 +1 @@
+common-obj-y += hostmem.o vring.o
similarity index 100%
rename from hw/vhost.c
rename to hw/virtio/vhost.c
similarity index 100%
rename from hw/virtio.c
rename to hw/virtio/virtio.c