提交 b4a42f81 编写于 作者: P Paolo Bonzini

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: NPaolo Bonzini <pbonzini@redhat.com>
上级 fd7f0d66
......@@ -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
......
......@@ -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"
......
......@@ -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
......
......@@ -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"
......
......@@ -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)
......
......@@ -24,6 +24,7 @@
*/
#include "pc87312.h"
#include "qemu/error-report.h"
#include "sysemu/blockdev.h"
#include "sysemu/sysemu.h"
#include "char/char.h"
......
......@@ -24,6 +24,7 @@
*/
#include "sysemu/blockdev.h"
#include "qemu/error-report.h"
#include "sysbus.h"
#include "hw.h"
#include "pc.h"
......
#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"
......
#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)
......
#include "qdev.h"
#include "qdev-addr.h"
#include "exec/hwaddr.h"
#include "qapi/qmp/qerror.h"
#include "qapi/visitor.h"
/* --- target physical address --- */
......
......@@ -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;
......
......@@ -4,6 +4,5 @@
#include "hw/hw.h"
#include "qdev-core.h"
#include "qdev-properties.h"
#include "qdev-monitor.h"
#endif
......@@ -14,6 +14,7 @@
#include <hw/qdev.h>
#include "qemu/thread.h"
#include "qemu/error-report.h"
#include "sclp.h"
#include "event-facility.h"
......
......@@ -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"
......
......@@ -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"
......
......@@ -14,6 +14,7 @@
*/
#include "virtio-scsi.h"
#include "qemu/error-report.h"
#include <hw/scsi.h>
#include <hw/scsi-defs.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 *
......
......@@ -26,6 +26,7 @@
#include "qemu/log.h"
#include "net/net.h"
#include "net/checksum.h"
#include "qapi/qmp/qerror.h"
#include "stream.h"
......
#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);
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册