aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-02-04 11:37:52 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2013-03-01 13:54:10 +0100
commitb4a42f81383d60900aae09513f42eb857a5a7c7c (patch)
tree952c4781da510cc183ec4770c9c00993d357d88d
parentfd7f0d66177ec1058a2a256856ff38fc9ceae5af (diff)
hw: move qdev-monitor.o to toplevel directory
qdev-monitor.c is the only "core qdev" file that is not used in user-mode emulation, and it does not define anything that is used by hardware models. Remove it from the hw/ directory and remove hw/qdev-monitor.h from hw/qdev.h too; this requires some files to have some new explicitly includes. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--Makefile.objs1
-rw-r--r--hw/9pfs/virtio-9p-proxy.c1
-rw-r--r--hw/Makefile.objs1
-rw-r--r--hw/dataplane/virtio-blk.c2
-rw-r--r--hw/dataplane/vring.c1
-rw-r--r--hw/pc87312.c1
-rw-r--r--hw/pc_sysfw.c1
-rw-r--r--hw/pci/shpc.c3
-rw-r--r--hw/pci/slotid_cap.c1
-rw-r--r--hw/qdev-addr.c1
-rw-r--r--hw/qdev.c1
-rw-r--r--hw/qdev.h1
-rw-r--r--hw/s390x/sclpconsole.c1
-rw-r--r--hw/usb/dev-network.c1
-rw-r--r--hw/virtio-rng.c1
-rw-r--r--hw/virtio-scsi.c1
-rw-r--r--hw/xilinx.h3
-rw-r--r--hw/xilinx_axienet.c1
-rw-r--r--include/monitor/qdev.h (renamed from hw/qdev-monitor.h)3
-rw-r--r--monitor.c2
-rw-r--r--qdev-monitor.c (renamed from hw/qdev-monitor.c)3
-rw-r--r--util/qemu-config.c1
-rw-r--r--vl.c1
23 files changed, 25 insertions, 8 deletions
diff --git a/Makefile.objs b/Makefile.objs
index a68cdac7ce..2a8174dd15 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -51,6 +51,7 @@ ifeq ($(CONFIG_SOFTMMU),y)
common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/
common-obj-y += net/
common-obj-y += readline.o
+common-obj-y += qdev-monitor.o
common-obj-$(CONFIG_WIN32) += os-win32.o
common-obj-$(CONFIG_POSIX) += os-posix.o
diff --git a/hw/9pfs/virtio-9p-proxy.c b/hw/9pfs/virtio-9p-proxy.c
index 54e98759f0..730027900e 100644
--- a/hw/9pfs/virtio-9p-proxy.c
+++ b/hw/9pfs/virtio-9p-proxy.c
@@ -13,6 +13,7 @@
#include <sys/un.h>
#include "hw/virtio.h"
#include "virtio-9p.h"
+#include "qemu/error-report.h"
#include "fsdev/qemu-fsdev.h"
#include "virtio-9p-proxy.h"
diff --git a/hw/Makefile.objs b/hw/Makefile.objs
index 6e2275b842..f7ee133627 100644
--- a/hw/Makefile.objs
+++ b/hw/Makefile.objs
@@ -190,7 +190,6 @@ common-obj-$(CONFIG_SD) += sd.o
common-obj-y += bt.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
common-obj-y += bt-hci-csr.o
common-obj-y += ps2.o
-common-obj-y += qdev-monitor.o
common-obj-y += qdev-properties-system.o
# xen backend driver support
diff --git a/hw/dataplane/virtio-blk.c b/hw/dataplane/virtio-blk.c
index 3f2da22669..8588f93114 100644
--- a/hw/dataplane/virtio-blk.c
+++ b/hw/dataplane/virtio-blk.c
@@ -16,9 +16,11 @@
#include "qemu/iov.h"
#include "event-poll.h"
#include "qemu/thread.h"
+#include "qemu/error-report.h"
#include "vring.h"
#include "ioq.h"
#include "migration/migration.h"
+#include "block/block.h"
#include "hw/virtio-blk.h"
#include "hw/dataplane/virtio-blk.h"
diff --git a/hw/dataplane/vring.c b/hw/dataplane/vring.c
index d5d4ef45d1..eff5ad8831 100644
--- a/hw/dataplane/vring.c
+++ b/hw/dataplane/vring.c
@@ -16,6 +16,7 @@
#include "trace.h"
#include "hw/dataplane/vring.h"
+#include "qemu/error-report.h"
/* Map the guest's vring to host memory */
bool vring_setup(Vring *vring, VirtIODevice *vdev, int n)
diff --git a/hw/pc87312.c b/hw/pc87312.c
index 38af4c1d10..0e9760e6b2 100644
--- a/hw/pc87312.c
+++ b/hw/pc87312.c
@@ -24,6 +24,7 @@
*/
#include "pc87312.h"
+#include "qemu/error-report.h"
#include "sysemu/blockdev.h"
#include "sysemu/sysemu.h"
#include "char/char.h"
diff --git a/hw/pc_sysfw.c b/hw/pc_sysfw.c
index 7f6c12c8a8..8b65a7a4d8 100644
--- a/hw/pc_sysfw.c
+++ b/hw/pc_sysfw.c
@@ -24,6 +24,7 @@
*/
#include "sysemu/blockdev.h"
+#include "qemu/error-report.h"
#include "sysbus.h"
#include "hw.h"
#include "pc.h"
diff --git a/hw/pci/shpc.c b/hw/pci/shpc.c
index f07266da66..d35c2ee965 100644
--- a/hw/pci/shpc.c
+++ b/hw/pci/shpc.c
@@ -1,7 +1,8 @@
+#include "qemu-common.h"
#include <strings.h>
#include <stdint.h>
#include "qemu/range.h"
-#include "qemu/range.h"
+#include "qemu/error-report.h"
#include "hw/pci/shpc.h"
#include "hw/pci/pci.h"
#include "hw/pci/pci_bus.h"
diff --git a/hw/pci/slotid_cap.c b/hw/pci/slotid_cap.c
index 99a30f429d..62f7bae2f1 100644
--- a/hw/pci/slotid_cap.c
+++ b/hw/pci/slotid_cap.c
@@ -1,5 +1,6 @@
#include "hw/pci/slotid_cap.h"
#include "hw/pci/pci.h"
+#include "qemu/error-report.h"
#define SLOTID_CAP_LENGTH 4
#define SLOTID_NSLOTS_SHIFT (ffs(PCI_SID_ESR_NSLOTS) - 1)
diff --git a/hw/qdev-addr.c b/hw/qdev-addr.c
index b4388f6a66..fc2c437911 100644
--- a/hw/qdev-addr.c
+++ b/hw/qdev-addr.c
@@ -1,6 +1,7 @@
#include "qdev.h"
#include "qdev-addr.h"
#include "exec/hwaddr.h"
+#include "qapi/qmp/qerror.h"
#include "qapi/visitor.h"
/* --- target physical address --- */
diff --git a/hw/qdev.c b/hw/qdev.c
index 689cd543e9..62bc8990f0 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -28,6 +28,7 @@
#include "qdev.h"
#include "sysemu/sysemu.h"
#include "qapi/error.h"
+#include "qapi/qmp/qerror.h"
#include "qapi/visitor.h"
int qdev_hotplug = 0;
diff --git a/hw/qdev.h b/hw/qdev.h
index 365b8d6ca2..f814656e0a 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -4,6 +4,5 @@
#include "hw/hw.h"
#include "qdev-core.h"
#include "qdev-properties.h"
-#include "qdev-monitor.h"
#endif
diff --git a/hw/s390x/sclpconsole.c b/hw/s390x/sclpconsole.c
index effe51110f..475d7ba856 100644
--- a/hw/s390x/sclpconsole.c
+++ b/hw/s390x/sclpconsole.c
@@ -14,6 +14,7 @@
#include <hw/qdev.h>
#include "qemu/thread.h"
+#include "qemu/error-report.h"
#include "sclp.h"
#include "event-facility.h"
diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c
index c08718b679..5473ac2cd5 100644
--- a/hw/usb/dev-network.c
+++ b/hw/usb/dev-network.c
@@ -27,6 +27,7 @@
#include "hw/usb.h"
#include "hw/usb/desc.h"
#include "net/net.h"
+#include "qapi/qmp/qerror.h"
#include "qemu/queue.h"
#include "qemu/config-file.h"
#include "sysemu/sysemu.h"
diff --git a/hw/virtio-rng.c b/hw/virtio-rng.c
index e063127df6..2cdf4ec052 100644
--- a/hw/virtio-rng.c
+++ b/hw/virtio-rng.c
@@ -11,6 +11,7 @@
#include "qemu/iov.h"
#include "qdev.h"
+#include "qapi/qmp/qerror.h"
#include "virtio.h"
#include "virtio-rng.h"
#include "qemu/rng.h"
diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c
index 0715865489..27070d1eea 100644
--- a/hw/virtio-scsi.c
+++ b/hw/virtio-scsi.c
@@ -14,6 +14,7 @@
*/
#include "virtio-scsi.h"
+#include "qemu/error-report.h"
#include <hw/scsi.h>
#include <hw/scsi-defs.h>
diff --git a/hw/xilinx.h b/hw/xilinx.h
index 09bc2e4913..a78281f730 100644
--- a/hw/xilinx.h
+++ b/hw/xilinx.h
@@ -2,8 +2,9 @@
#define HW_XILINX_H 1
-#include "stream.h"
#include "qemu-common.h"
+#include "qapi/qmp/qerror.h"
+#include "stream.h"
#include "net/net.h"
static inline DeviceState *
diff --git a/hw/xilinx_axienet.c b/hw/xilinx_axienet.c
index e5d9251b8b..66b9ec1cc5 100644
--- a/hw/xilinx_axienet.c
+++ b/hw/xilinx_axienet.c
@@ -26,6 +26,7 @@
#include "qemu/log.h"
#include "net/net.h"
#include "net/checksum.h"
+#include "qapi/qmp/qerror.h"
#include "stream.h"
diff --git a/hw/qdev-monitor.h b/include/monitor/qdev.h
index 9ec485028e..8d16e119d3 100644
--- a/hw/qdev-monitor.h
+++ b/include/monitor/qdev.h
@@ -1,7 +1,7 @@
#ifndef QEMU_QDEV_MONITOR_H
#define QEMU_QDEV_MONITOR_H
-#include "qdev-core.h"
+#include "hw/qdev-core.h"
#include "monitor/monitor.h"
/*** monitor commands ***/
@@ -9,7 +9,6 @@
void do_info_qtree(Monitor *mon, const QDict *qdict);
void do_info_qdm(Monitor *mon, const QDict *qdict);
int do_device_add(Monitor *mon, const QDict *qdict, QObject **ret_data);
-int do_device_del(Monitor *mon, const QDict *qdict, QObject **ret_data);
int qdev_device_help(QemuOpts *opts);
DeviceState *qdev_device_add(QemuOpts *opts);
diff --git a/monitor.c b/monitor.c
index 32a6e74fd9..c48530bd55 100644
--- a/monitor.c
+++ b/monitor.c
@@ -23,7 +23,7 @@
*/
#include <dirent.h>
#include "hw/hw.h"
-#include "hw/qdev.h"
+#include "monitor/qdev.h"
#include "hw/usb.h"
#include "hw/pcmcia.h"
#include "hw/pc.h"
diff --git a/hw/qdev-monitor.c b/qdev-monitor.c
index 4f9a6eb39a..9a78ccff6d 100644
--- a/hw/qdev-monitor.c
+++ b/qdev-monitor.c
@@ -17,8 +17,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#include "qdev.h"
+#include "hw/qdev.h"
#include "monitor/monitor.h"
+#include "monitor/qdev.h"
#include "qmp-commands.h"
#include "sysemu/arch_init.h"
#include "qemu/config-file.h"
diff --git a/util/qemu-config.c b/util/qemu-config.c
index db6ec03a78..01ca8901cf 100644
--- a/util/qemu-config.c
+++ b/util/qemu-config.c
@@ -2,6 +2,7 @@
#include "qemu/error-report.h"
#include "qemu/option.h"
#include "qemu/config-file.h"
+#include "qapi/qmp/qerror.h"
#include "hw/qdev.h"
#include "qapi/error.h"
diff --git a/vl.c b/vl.c
index e0a8eeb24b..bbdbafdca6 100644
--- a/vl.c
+++ b/vl.c
@@ -126,6 +126,7 @@ int main(int argc, char **argv)
#include "hw/xen.h"
#include "hw/qdev.h"
#include "hw/loader.h"
+#include "monitor/qdev.h"
#include "bt/bt.h"
#include "net/net.h"
#include "net/slirp.h"