Skip to contentSkip to conversation

Include reorganization + PCI patch queue

GIT PULL New Paolo Bonzini 8 participants 52 messages Dec 17, 2012 – Dec 20, 2012 Page 1 of 3

Subsystems (9)
lore
Share & tools
lore
#0 lore raw

Anthony,

The following changes since commit a8a826a3c3b8c8a1c4def0e9e22b46e78e6163a0:

exec: refactor cpu_restore_state (2012-12-16 08:35:24 +0000)

are available in the git repository at:

git://github.com/bonzini/qemu.git header-dirs

for you to fetch changes up to 394394a788cec72682750f855e5182de156026b4:

janitor: move remaining public headers to include/ (2012-12-17 18:56:58 +0100)

----------------------------------------------------------------
Jason Baron (1):
Fixup q35/ich9 Licenses

Michael S. Tsirkin (12):
tap: reset vnet header size on open get_maintainer.pl: update from linix 3.8
pci: prepare makefiles for pci code reorganization
MAINTAINERS: add hw/pci/ to list of PCI files
pci: move pci core code to hw/pci
pci: update all users to look in pci/
pci: fix path for local includes
Revert "pci: prepare makefiles for pci code reorganization"
pci: rename pci_internals.h pci_bus.h
pci_bus: update comment
pci_bus.h: tweak include guards
kvm: do not flush after deleting gsi

Paolo Bonzini (33):
Merge commit '1dd3a74d2ee2d873cde0b390b536e45420b3fe05' into HEAD
libcacard: simplify rules for recursive build
vscclient: use per-target variables
build: adjust setting of QEMU_INCLUDES
build: add $(TARGET_DIR) to "GEN config-target.h" lines
build: move rules from Makefile to */Makefile.objs
build: create ldscripts/
build: kill libdis, move disassemblers to disas/
build: kill libuser
janitor: do not rely on indirect inclusions of or from qemu-char.h
janitor: do not include qemu-char everywhere
net: move Bluetooth stuff out of net.h
net: do not include net.h everywhere
net: move net.c to net/
net: reorganize headers
qemu-ga: move qemu-ga files to qga/
ui: move files to ui/ and include/ui/
qapi: move inclusions of qemu-common.h from headers to .c files
qapi: remove qapi/qapi-types-core.h
qapi: make struct Visitor opaque
janitor: add guards to headers
qapi: move include files to include/qobject/
block: move include files to include/block/
exec: move include files to include/exec/
monitor: move include files to include/monitor/
migration: move include files to include/migration/
qom: move include files to include/qom/
misc: move include files to include/qemu/
softmmu: move include files to include/sysemu/
softmmu: move remaining include files to include/ subdirectories
fpu: move public header file to include/fpu
hw: move executable format header files to hw/
janitor: move remaining public headers to include/

 .gitignore                                         |   1 +
 MAINTAINERS                                        |   1 +
 Makefile                                           |  47 +--
 Makefile.dis                                       |  20 -
 Makefile.objs                                      |  32 +-
 Makefile.target                                    |   8 +-
 Makefile.user                                      |  24 --
 a.out.h                                            | 430 ---------------------
 acl.c                                              |   2 +-
 aes.c                                              |   2 +-
 aio-posix.c                                        |   6 +-
 aio-win32.c                                        |   6 +-
 arch_init.c                                        |  24 +-
 async.c                                            |   4 +-
 audio/Makefile.objs                                |   3 +
 audio/alsaaudio.c                                  |   2 +-
 audio/audio.c                                      |   6 +-
 audio/audio.h                                      |   2 +-
 audio/noaudio.c                                    |   2 +-
 audio/ossaudio.c                                   |   4 +-
 audio/spiceaudio.c                                 |   2 +-
 audio/wavaudio.c                                   |   2 +-
 audio/wavcapture.c                                 |   2 +-
 audio/winwaveaudio.c                               |   2 +-
 backends/rng-egd.c                                 |   4 +-
 backends/rng-random.c                              |   4 +-
 backends/rng.c                                     |   2 +-
 balloon.c                                          |  10 +-
 bitmap.c                                           |   4 +-
 bitops.c                                           |   2 +-
 block-migration.c                                  |  12 +-
 block.c                                            |  18 +-
 block/Makefile.objs                                |   2 +
 block/blkdebug.c                                   |   5 +-
 block/blkverify.c                                  |   4 +-
 block/bochs.c                                      |   4 +-
 block/cloop.c                                      |   4 +-
 block/commit.c                                     |   4 +-
 block/cow.c                                        |   4 +-
 block/curl.c                                       |   2 +-
 block/dmg.c                                        |   6 +-
 block/gluster.c                                    |   6 +-
 block/iscsi.c                                      |   5 +-
 block/linux-aio.c                                  |   6 +-
 block/mirror.c                                     |   4 +-
 block/nbd.c                                        |  10 +-
 block/parallels.c                                  |   4 +-
 block/qcow.c                                       |   8 +-
 block/qcow2-cache.c                                |   2 +-
 block/qcow2-cluster.c                              |   2 +-
 block/qcow2-refcount.c                             |   2 +-
 block/qcow2-snapshot.c                             |   2 +-
 block/qcow2.c                                      |  10 +-
 block/qcow2.h                                      |   4 +-
 block/qed-table.c                                  |   2 +-
 block/qed.c                                        |   6 +-
 block/qed.h                                        |   2 +-
 block/raw-posix.c                                  |  13 +-
 block/raw-win32.c                                  |  10 +-
 block/raw.c                                        |   4 +-
 block/rbd.c                                        |   4 +-
 block/sheepdog.c                                   |   8 +-
 block/stream.c                                     |   4 +-
 block/vdi.c                                        |   8 +-
 block/vmdk.c                                       |   6 +-
 block/vpc.c                                        |   6 +-
 block/vvfat.c                                      |   6 +-
 block/win32-aio.c                                  |  10 +-
 blockdev-nbd.c                                     |  12 +-
 blockdev.c                                         |  20 +-
 blockjob.c                                         |  14 +-
 bsd-user/elfload.c                                 |   2 +-
 bsd-user/main.c                                    |   4 +-
 bsd-user/qemu.h                                    |   6 +-
 bt-host.c                                          |   5 +-
 bt-host.h                                          |   9 -
 bt-vhci.c                                          |   4 +-
 buffered_file.c                                    |   3 +-
 buffered_file.h                                    |   2 +-
 cache-utils.c                                      |   2 +-
 cmd.c                                              |   4 +-
 compatfd.c                                         |   2 +-
 configure                                          |  53 +--
 coroutine-gthread.c                                |   2 +-
 coroutine-sigaltstack.c                            |   2 +-
 coroutine-ucontext.c                               |   2 +-
 coroutine-win32.c                                  |   2 +-
 cpu-exec.c                                         |   6 +-
 cpus.c                                             |  22 +-
 cputlb.c                                           |  18 +-
 cutils.c                                           |   6 +-
 device_tree.c                                      |   6 +-
 disas.c                                            |   6 +-
 disas/Makefile.objs                                |  16 +
 alpha-dis.c => disas/alpha.c                       |   2 +-
 arm-dis.c => disas/arm.c                           |   2 +-
 cris-dis.c => disas/cris.c                         |   2 +-
 hppa-dis.c => disas/hppa.c                         |   2 +-
 i386-dis.c => disas/i386.c                         |   2 +-
 ia64-dis.c => disas/ia64.c                         |   2 +-
 lm32-dis.c => disas/lm32.c                         |   2 +-
 m68k-dis.c => disas/m68k.c                         |   2 +-
 microblaze-dis.c => disas/microblaze.c             |   2 +-
 mips-dis.c => disas/mips.c                         |   2 +-
 ppc-dis.c => disas/ppc.c                           |   2 +-
 s390-dis.c => disas/s390.c                         |   2 +-
 sh4-dis.c => disas/sh4.c                           |   2 +-
 sparc-dis.c => disas/sparc.c                       |   2 +-
 tci-dis.c => disas/tci.c                           |   2 +-
 dma-helpers.c                                      |   6 +-
 dump-stub.c                                        |   4 +-
 dump.c                                             |  18 +-
 envlist.c                                          |   4 +-
 error.c                                            |   8 +-
 event_notifier-posix.c                             |   5 +-
 event_notifier-win32.c                             |   4 +-
 exec.c                                             |  19 +-
 fpu/softfloat.c                                    |   2 +-
 fsdev/qemu-fsdev-dummy.c                           |   4 +-
 fsdev/qemu-fsdev.c                                 |   6 +-
 fsdev/qemu-fsdev.h                                 |   2 +-
 fsdev/virtfs-proxy-helper.c                        |   4 +-
 fsdev/virtio-9p-marshal.c                          |   4 +-
 gdbstub.c                                          |  12 +-
 hmp.c                                              |  13 +-
 hmp.h                                              |   2 +-
 host-utils.c                                       |   2 +-
 hw/9pfs/codir.c                                    |   4 +-
 hw/9pfs/cofile.c                                   |   4 +-
 hw/9pfs/cofs.c                                     |   4 +-
 hw/9pfs/coxattr.c                                  |   4 +-
 hw/9pfs/virtio-9p-coth.c                           |   5 +-
 hw/9pfs/virtio-9p-coth.h                           |   4 +-
 hw/9pfs/virtio-9p-device.c                         |   2 +-
 hw/9pfs/virtio-9p-handle.c                         |   2 +-
 hw/9pfs/virtio-9p-local.c                          |   2 +-
 hw/9pfs/virtio-9p-posix-acl.c                      |   2 +-
 hw/9pfs/virtio-9p-synth.h                          |   4 +
 hw/9pfs/virtio-9p-xattr.h                          |   2 +-
 hw/9pfs/virtio-9p.c                                |   4 +-
 hw/9pfs/virtio-9p.h                                |   4 +-
 hw/Makefile.objs                                   |  15 +-
 hw/ac97.c                                          |   4 +-
 hw/acpi.c                                          |   4 +-
 hw/acpi.h                                          |   2 +-
 hw/acpi_ich9.c                                     |  23 +-
 hw/acpi_piix4.c                                    |  10 +-
 hw/adb.c                                           |   2 +-
 hw/adlib.c                                         |   2 +-
 hw/ads7846.c                                       |   2 +-
 hw/alpha_dp264.c                                   |   2 +-
 hw/alpha_pci.c                                     |   4 +-
 hw/alpha_sys.h                                     |   5 +-
 hw/alpha_typhoon.c                                 |   6 +-
 hw/an5206.c                                        |   2 +-
 hw/apb_pci.c                                       |  12 +-
 hw/apic.c                                          |   6 +-
 hw/apic_common.c                                   |   2 +-
 hw/apic_internal.h                                 |   4 +-
 hw/apm.c                                           |   2 +-
 hw/apm.h                                           |   2 +-
 hw/applesmc.c                                      |   4 +-
 hw/arm-misc.h                                      |   2 +-
 hw/arm11mpcore.c                                   |   2 +-
 hw/arm_boot.c                                      |   5 +-
 hw/arm_mptimer.c                                   |   2 +-
 hw/arm_sysctl.c                                    |   4 +-
 hw/arm_timer.c                                     |   2 +-
 hw/armv7m_nvic.c                                   |   4 +-
 hw/audiodev.h                                      |   5 +
 hw/axis_dev88.c                                    |   6 +-
 hw/baum.c                                          |   4 +-
 hw/baum.h                                          |   4 +
 hw/blizzard.c                                      |   4 +-
 hw/block-common.c                                  |   4 +-
 hw/boards.h                                        |   2 +-
 hw/bonito.c                                        |   8 +-
 hw/bt-hci-csr.c                                    |   6 +-
 hw/bt-hci.c                                        |   4 +-
 hw/bt-hid.c                                        |   4 +-
 hw/bt-l2cap.c                                      |   2 +-
 hw/bt.c                                            |   2 +-
 hw/bt.h                                            |   5 +
 hw/cadence_gem.c                                   |   2 +-
 hw/cadence_ttc.c                                   |   2 +-
 hw/cadence_uart.c                                  |   4 +-
 hw/cbus.c                                          |   2 +-
 hw/ccid-card-emulated.c                            |   6 +-
 hw/ccid-card-passthru.c                            |   6 +-
 hw/cirrus_vga.c                                    |   4 +-
 hw/collie.c                                        |   4 +-
 hw/cris-boot.h                                     |   4 +
 hw/cs4231a.c                                       |   2 +-
 hw/cuda.c                                          |   4 +-
 hw/debugcon.c                                      |   2 +-
 hw/dec_pci.c                                       |   8 +-
 hw/device-hotplug.c                                |   9 +-
 hw/dma.c                                           |   1 +
 hw/dp8393x.c                                       |   4 +-
 hw/dummy_m68k.c                                    |   2 +-
 hw/e1000.c                                         |   8 +-
 hw/eepro100.c                                      |   8 +-
 hw/empty_slot.h                                    |   5 +
 hw/es1370.c                                        |   4 +-
 hw/escc.c                                          |   4 +-
 hw/escc.h                                          |   5 +
 hw/esp-pci.c                                       |   4 +-
 hw/esp.c                                           |   2 +-
 hw/etraxfs.h                                       |   7 +-
 hw/etraxfs_dma.c                                   |   4 +-
 hw/etraxfs_dma.h                                   |   5 +
 hw/etraxfs_eth.c                                   |   2 +-
 hw/etraxfs_ser.c                                   |   4 +-
 hw/etraxfs_timer.c                                 |   4 +-
 hw/exynos4210.c                                    |   2 +-
 hw/exynos4210.h                                    |   2 +-
 hw/exynos4210_fimd.c                               |   8 +-
 hw/exynos4210_i2c.c                                |   2 +-
 hw/exynos4210_mct.c                                |   2 +-
 hw/exynos4210_pwm.c                                |   2 +-
 hw/exynos4210_rtc.c                                |   6 +-
 hw/exynos4210_uart.c                               |   4 +-
 hw/exynos4_boards.c                                |   6 +-
 hw/fdc.c                                           |  10 +-
 hw/flash.h                                         |   7 +-
 hw/framebuffer.c                                   |   2 +-
 hw/framebuffer.h                                   |   2 +-
 hw/fw_cfg.c                                        |   5 +-
 hw/g364fb.c                                        |   4 +-
 hw/grackle_pci.c                                   |   4 +-
 hw/grlib_apbuart.c                                 |   2 +-
 hw/grlib_gptimer.c                                 |   2 +-
 hw/gt64xxx.c                                       |   6 +-
 hw/gumstix.c                                       |   6 +-
 hw/hd-geometry.c                                   |   2 +-
 hw/hda-audio.c                                     |   2 +-
 hw/hid.c                                           |   4 +-
 hw/hid.h                                           |   2 +-
 hw/highbank.c                                      |   8 +-
 hw/hpet.c                                          |   4 +-
 hw/hw.h                                            |  12 +-
 hw/i386/Makefile.objs                              |   2 +-
 hw/i82378.c                                        |   2 +-
 hw/i8254.c                                         |   2 +-
 hw/i8254_common.c                                  |   2 +-
 hw/i8259.c                                         |   4 +-
 hw/i82801b11.c                                     |   2 +-
 hw/ich9.h                                          |  10 +-
 hw/ide.h                                           |   4 +-
 hw/ide/ahci.c                                      |  10 +-
 hw/ide/cmd646.c                                    |   8 +-
 hw/ide/core.c                                      |  12 +-
 hw/ide/ich.c                                       |   8 +-
 hw/ide/internal.h                                  |   6 +-
 hw/ide/isa.c                                       |   4 +-
 hw/ide/macio.c                                     |   4 +-
 hw/ide/microdrive.c                                |   4 +-
 hw/ide/mmio.c                                      |   4 +-
 hw/ide/pci.c                                       |   6 +-
 hw/ide/piix.c                                      |   8 +-
 hw/ide/qdev.c                                      |   8 +-
 hw/ide/via.c                                       |   8 +-
 hw/imx_avic.c                                      |   2 +-
 hw/imx_ccm.c                                       |   2 +-
 hw/imx_serial.c                                    |   4 +-
 hw/imx_timer.c                                     |   2 +-
 hw/integratorcp.c                                  |   6 +-
 hw/intel-hda.c                                     |   8 +-
 hw/ioapic_internal.h                               |   2 +-
 hw/ioh3420.c                                       |   6 +-
 hw/ioh3420.h                                       |   2 +-
 hw/isa-bus.c                                       |   6 +-
 hw/isa.h                                           |   4 +-
 hw/isa_mmio.c                                      |   2 +-
 hw/ivshmem.c                                       |  13 +-
 hw/jazz_led.c                                      |   5 +-
 hw/kvm/apic.c                                      |   4 +-
 hw/kvm/clock.c                                     |   4 +-
 hw/kvm/i8254.c                                     |   6 +-
 hw/kvm/i8259.c                                     |   2 +-
 hw/kvm/ioapic.c                                    |   2 +-
 hw/kvm/pci-assign.c                                |  14 +-
 hw/kvmvapic.c                                      |   6 +-
 hw/kzm.c                                           |   6 +-
 hw/lan9118.c                                       |   4 +-
 hw/lance.c                                         |   6 +-
 hw/leon3.c                                         |   8 +-
 hw/lm32.h                                          |   5 +
 hw/lm32_boards.c                                   |   5 +-
 hw/lm32_juart.c                                    |   2 +-
 hw/lm32_pic.c                                      |   2 +-
 hw/lm32_sys.c                                      |   8 +-
 hw/lm32_timer.c                                    |   4 +-
 hw/lm32_uart.c                                     |   4 +-
 hw/lm832x.c                                        |   4 +-
 hw/loader.c                                        |  10 +-
 hw/lpc_ich9.c                                      |  46 +--
 hw/lsi53c895a.c                                    |   4 +-
 hw/m25p80.c                                        |   2 +-
 hw/m48t59.c                                        |   6 +-
 hw/mac_dbdma.c                                     |   1 +
 hw/mac_dbdma.h                                     |   6 +-
 hw/mac_nvram.c                                     |   2 +-
 hw/macio.c                                         |   2 +-
 hw/mainstone.c                                     |   6 +-
 hw/mc146818rtc.c                                   |   6 +-
 hw/mcf5206.c                                       |   6 +-
 hw/mcf5208.c                                       |   8 +-
 hw/mcf_fec.c                                       |   4 +-
 hw/mcf_intc.c                                      |   2 +-
 hw/mcf_uart.c                                      |   4 +-
 hw/megasas.c                                       |   8 +-
 hw/microblaze_boot.c                               |   6 +-
 hw/milkymist-ac97.c                                |   2 +-
 hw/milkymist-hpdmc.c                               |   2 +-
 hw/milkymist-hw.h                                  |   1 +
 hw/milkymist-memcard.c                             |   6 +-
 hw/milkymist-minimac2.c                            |   4 +-
 hw/milkymist-pfpu.c                                |   4 +-
 hw/milkymist-softusb.c                             |   4 +-
 hw/milkymist-sysctl.c                              |   6 +-
 hw/milkymist-tmu2.c                                |   2 +-
 hw/milkymist-uart.c                                |   4 +-
 hw/milkymist-vgafb.c                               |   6 +-
 hw/milkymist.c                                     |   7 +-
 hw/mips.h                                          |   2 +-
 hw/mips_fulong2e.c                                 |  16 +-
 hw/mips_jazz.c                                     |  10 +-
 hw/mips_malta.c                                    |  18 +-
 hw/mips_mipssim.c                                  |   6 +-
 hw/mips_r4k.c                                      |  10 +-
 hw/mips_timer.c                                    |   2 +-
 hw/mipsnet.c                                       |   2 +-
 hw/mpc8544_guts.c                                  |   2 +-
 hw/msmouse.c                                       |   6 +-
 hw/msmouse.h                                       |   5 +
 hw/multiboot.c                                     |   2 +-
 hw/musicpal.c                                      |  17 +-
 hw/nand.c                                          |   4 +-
 hw/ne2000-isa.c                                    |   4 +-
 hw/ne2000.c                                        |   6 +-
 hw/ne2000.h                                        |   5 +
 hw/nseries.c                                       |   8 +-
 hw/omap.h                                          |   2 +-
 hw/omap1.c                                         |   6 +-
 hw/omap2.c                                         |   8 +-
 hw/omap_dma.c                                      |   2 +-
 hw/omap_dss.c                                      |   2 +-
 hw/omap_gpmc.c                                     |   4 +-
 hw/omap_gptimer.c                                  |   2 +-
 hw/omap_lcdc.c                                     |   5 +-
 hw/omap_sx1.c                                      |   6 +-
 hw/omap_synctimer.c                                |   2 +-
 hw/omap_uart.c                                     |   4 +-
 hw/onenand.c                                       |   8 +-
 hw/opencores_eth.c                                 |   4 +-
 hw/openpic.c                                       |   4 +-
 hw/openrisc_sim.c                                  |   8 +-
 hw/openrisc_timer.c                                |   2 +-
 hw/palm.c                                          |   6 +-
 hw/pam.c                                           |   2 +-
 hw/pam.h                                           |   2 +-
 hw/parallel.c                                      |   4 +-
 hw/pc.c                                            |  20 +-
 hw/pc.h                                            |   8 +-
 hw/pc_piix.c                                       |  18 +-
 hw/pc_q35.c                                        |   6 +-
 hw/pc_sysfw.c                                      |   6 +-
 hw/pci/Makefile.objs                               |   9 +
 hw/{ => pci}/msi.c                                 |   4 +-
 hw/{ => pci}/msi.h                                 |   2 +-
 hw/{ => pci}/msix.c                                |  10 +-
 hw/{ => pci}/msix.h                                |   2 +-
 hw/{ => pci}/pci-hotplug.c                         |  22 +-
 hw/{ => pci}/pci-stub.c                            |   6 +-
 hw/{ => pci}/pci.c                                 |  24 +-
 hw/{ => pci}/pci.h                                 |  14 +-
 hw/{ => pci}/pci_bridge.c                          |   6 +-
 hw/{ => pci}/pci_bridge.h                          |   2 +-
 hw/{pci_internals.h => pci/pci_bus.h}              |  16 +-
 hw/{ => pci}/pci_host.c                            |   4 +-
 hw/{ => pci}/pci_host.h                            |   2 +-
 hw/{ => pci}/pci_ids.h                             |   4 +
 hw/{ => pci}/pci_regs.h                            |   0
 hw/{ => pci}/pcie.c                                |  14 +-
 hw/{ => pci}/pcie.h                                |   8 +-
 hw/{ => pci}/pcie_aer.c                            |  18 +-
 hw/{ => pci}/pcie_aer.h                            |   2 +-
 hw/{ => pci}/pcie_host.c                           |   8 +-
 hw/{ => pci}/pcie_host.h                           |   4 +-
 hw/{ => pci}/pcie_port.c                           |   2 +-
 hw/{ => pci}/pcie_port.h                           |   4 +-
 hw/{ => pci}/pcie_regs.h                           |   0
 hw/{ => pci}/shpc.c                                |  12 +-
 hw/{ => pci}/shpc.h                                |   4 +-
 hw/{ => pci}/slotid_cap.c                          |   4 +-
 hw/{ => pci}/slotid_cap.h                          |   0
 hw/pci_bridge_dev.c                                |  14 +-
 hw/pckbd.c                                         |   2 +-
 hw/pcmcia.h                                        |   5 +
 hw/pcnet-pci.c                                     |   8 +-
 hw/pcnet.c                                         |   8 +-
 hw/pcnet.h                                         |   7 +-
 hw/pcspk.c                                         |   2 +-
 hw/petalogix_ml605_mmu.c                           |   8 +-
 hw/petalogix_s3adsp1800_mmu.c                      |   8 +-
 hw/pflash_cfi01.c                                  |   8 +-
 hw/pflash_cfi02.c                                  |   8 +-
 hw/piix4.c                                         |   2 +-
 hw/piix_pci.c                                      |   6 +-
 hw/pl011.c                                         |   2 +-
 hw/pl031.c                                         |   4 +-
 hw/pl110.c                                         |   5 +-
 hw/pl181.c                                         |   2 +-
 hw/ppc.c                                           |   8 +-
 hw/ppc.h                                           |   5 +
 hw/ppc/Makefile.objs                               |   2 +-
 hw/ppc/e500.c                                      |  12 +-
 hw/ppc/e500plat.c                                  |   2 +-
 hw/ppc/mpc8544ds.c                                 |   2 +-
 hw/ppc405_boards.c                                 |  10 +-
 hw/ppc405_uc.c                                     |   8 +-
 hw/ppc440_bamboo.c                                 |  12 +-
 hw/ppc4xx.h                                        |   2 +-
 hw/ppc4xx_devs.c                                   |   4 +-
 hw/ppc4xx_pci.c                                    |   6 +-
 hw/ppc_booke.c                                     |   6 +-
 hw/ppc_mac.h                                       |   2 +-
 hw/ppc_newworld.c                                  |  12 +-
 hw/ppc_oldworld.c                                  |  12 +-
 hw/ppc_prep.c                                      |  16 +-
 hw/ppce500_pci.c                                   |   8 +-
 hw/ppce500_spin.c                                  |   4 +-
 hw/prep_pci.c                                      |   6 +-
 hw/ps2.c                                           |   4 +-
 hw/ptimer.c                                        |   4 +-
 hw/ptimer.h                                        |   4 +-
 hw/puv3.c                                          |   6 +-
 hw/pxa.h                                           |   2 +-
 hw/pxa2xx.c                                        |   6 +-
 hw/pxa2xx_keypad.c                                 |   2 +-
 hw/pxa2xx_lcd.c                                    |   6 +-
 hw/pxa2xx_timer.c                                  |   4 +-
 hw/q35.h                                           |   6 +-
 hw/qdev-addr.c                                     |   4 +-
 hw/qdev-addr.h                                     |   5 +
 hw/qdev-core.h                                     |  10 +-
 hw/qdev-monitor.c                                  |   5 +-
 hw/qdev-monitor.h                                  |   2 +-
 hw/qdev-properties.c                               |   9 +-
 hw/qdev.c                                          |   8 +-
 hw/qxl-logger.c                                    |   2 +-
 hw/qxl.c                                           |   8 +-
 hw/qxl.h                                           |  11 +-
 hw/r2d.c                                           |  10 +-
 hw/rc4030.c                                        |   2 +-
 hw/realview.c                                      |  10 +-
 hw/rtl8139.c                                       |  12 +-
 hw/s390-virtio-bus.c                               |   9 +-
 hw/s390-virtio-bus.h                               |   4 +
 hw/s390-virtio.c                                   |  14 +-
 hw/s390x/event-facility.c                          |   4 +-
 hw/s390x/event-facility.h                          |   2 +-
 hw/s390x/sclp.c                                    |   4 +-
 hw/s390x/sclpconsole.c                             |   3 +-
 hw/s390x/sclpquiesce.c                             |   2 +-
 hw/sb16.c                                          |   4 +-
 hw/scsi-bus.c                                      |   6 +-
 hw/scsi-defs.h                                     |   4 +
 hw/scsi-disk.c                                     |   8 +-
 hw/scsi-generic.c                                  |   4 +-
 hw/scsi.h                                          |   4 +-
 hw/sd.c                                            |   4 +-
 hw/serial-pci.c                                    |   2 +-
 hw/serial.c                                        |   6 +-
 hw/serial.h                                        |   8 +-
 hw/sga.c                                           |   4 +-
 hw/sh7750.c                                        |   4 +-
 hw/sh_intc.h                                       |   2 +-
 hw/sh_pci.c                                        |   8 +-
 hw/sh_serial.c                                     |   4 +-
 hw/sh_timer.c                                      |   4 +-
 hw/shix.c                                          |   4 +-
 hw/slavio_intctl.c                                 |   2 +-
 hw/slavio_misc.c                                   |   2 +-
 hw/slavio_timer.c                                  |   2 +-
 hw/sm501.c                                         |   7 +-
 hw/smbios.c                                        |   2 +-
 hw/smbus_ich9.c                                    |  18 +-
 hw/smc91c111.c                                     |   2 +-
 hw/soc_dma.c                                       |   2 +-
 hw/soc_dma.h                                       |   8 +-
 hw/spapr.c                                         |  18 +-
 hw/spapr.h                                         |   2 +-
 hw/spapr_events.c                                  |   6 +-
 hw/spapr_hcall.c                                   |   6 +-
 hw/spapr_iommu.c                                   |   6 +-
 hw/spapr_llan.c                                    |   2 +-
 hw/spapr_nvram.c                                   |   2 +-
 hw/spapr_pci.c                                     |  12 +-
 hw/spapr_pci.h                                     |   4 +-
 hw/spapr_rtas.c                                    |   6 +-
 hw/spapr_vio.c                                     |   8 +-
 hw/spapr_vio.h                                     |   2 +-
 hw/spapr_vscsi.c                                   |   1 -
 hw/spapr_vty.c                                     |   2 +-
 hw/spitz.c                                         |  12 +-
 hw/ssd0303.c                                       |   2 +-
 hw/ssd0323.c                                       |   2 +-
 hw/ssi-sd.c                                        |   2 +-
 hw/stellaris.c                                     |   6 +-
 hw/stellaris_enet.c                                |   2 +-
 hw/stellaris_input.c                               |   2 +-
 hw/stream.h                                        |   2 +-
 hw/strongarm.c                                     |   5 +-
 hw/strongarm.h                                     |   2 +-
 hw/sun4c_intctl.c                                  |   2 +-
 hw/sun4m.c                                         |   8 +-
 hw/sun4u.c                                         |  12 +-
 hw/sysbus.c                                        |   4 +-
 hw/sysbus.h                                        |   2 +-
 hw/tc6393xb.c                                      |   6 +-
 hw/tcx.c                                           |   5 +-
 hw/tosa.c                                          |   6 +-
 hw/tsc2005.c                                       |   4 +-
 hw/tsc210x.c                                       |   4 +-
 hw/tusb6010.c                                      |   2 +-
 hw/twl92230.c                                      |   6 +-
 uboot_image.h => hw/uboot_image.h                  |   0
 hw/unin_pci.c                                      |   4 +-
 hw/usb.h                                           |   2 +-
 hw/usb/bus.c                                       |   4 +-
 hw/usb/combined-packet.c                           |   2 +-
 hw/usb/core.c                                      |   2 +-
 hw/usb/dev-bluetooth.c                             |   2 +-
 hw/usb/dev-hid.c                                   |   4 +-
 hw/usb/dev-network.c                               |   9 +-
 hw/usb/dev-serial.c                                |   4 +-
 hw/usb/dev-smartcard-reader.c                      |   4 +-
 hw/usb/dev-storage.c                               |  12 +-
 hw/usb/dev-uas.c                                   |   4 +-
 hw/usb/dev-wacom.c                                 |   2 +-
 hw/usb/hcd-ehci-pci.c                              |   4 +-
 hw/usb/hcd-ehci.h                                  |  12 +-
 hw/usb/hcd-musb.c                                  |   2 +-
 hw/usb/hcd-ohci.c                                  |   4 +-
 hw/usb/hcd-uhci.c                                  |   8 +-
 hw/usb/hcd-xhci.c                                  |   8 +-
 hw/usb/host-bsd.c                                  |   2 +-
 hw/usb/host-linux.c                                |   6 +-
 hw/usb/host-stub.c                                 |   4 +-
 hw/usb/libhw.c                                     |   4 +-
 hw/usb/redirect.c                                  |   8 +-
 hw/versatile_pci.c                                 |   6 +-
 hw/versatilepb.c                                   |  10 +-
 hw/vexpress.c                                      |   8 +-
 hw/vfio_pci.c                                      |  20 +-
 hw/vga-isa-mm.c                                    |   6 +-
 hw/vga-isa.c                                       |   6 +-
 hw/vga-pci.c                                       |   8 +-
 hw/vga.c                                           |   8 +-
 hw/vga_int.h                                       |   8 +-
 hw/vhost.c                                         |   4 +-
 hw/vhost.h                                         |   2 +-
 hw/vhost_net.c                                     |   4 +-
 hw/vhost_net.h                                     |   2 +-
 hw/virtex_ml507.c                                  |  11 +-
 hw/virtio-balloon.c                                |   8 +-
 hw/virtio-balloon.h                                |   2 +-
 hw/virtio-blk.c                                    |   4 +-
 hw/virtio-console.c                                |   4 +-
 hw/virtio-net.c                                    |   8 +-
 hw/virtio-net.h                                    |  30 +-
 hw/virtio-pci.c                                    |  15 +-
 hw/virtio-rng.c                                    |   2 +-
 hw/virtio-scsi.h                                   |   3 +-
 hw/virtio-serial-bus.c                             |   6 +-
 hw/virtio.c                                        |   4 +-
 hw/virtio.h                                        |   6 +-
 hw/vmmouse.c                                       |   2 +-
 hw/vmport.c                                        |   2 +-
 hw/vmware_vga.c                                    |   4 +-
 hw/vt82c686.c                                      |  10 +-
 hw/watchdog.c                                      |  12 +-
 hw/watchdog.h                                      |   2 +-
 hw/wdt_i6300esb.c                                  |   4 +-
 hw/wdt_ib700.c                                     |   2 +-
 hw/xen-host-pci-device.h                           |   2 +-
 hw/xen_apic.c                                      |   2 +-
 hw/xen_backend.c                                   |   4 +-
 hw/xen_backend.h                                   |   5 +-
 hw/xen_common.h                                    |   2 +-
 hw/xen_console.c                                   |   2 +-
 hw/xen_devconfig.c                                 |   2 +-
 hw/xen_disk.c                                      |   3 +-
 hw/xen_domainbuild.c                               |   4 +-
 hw/xen_machine_pv.c                                |   2 +-
 hw/xen_nic.c                                       |   3 +-
 hw/xen_platform.c                                  |   5 +-
 hw/xen_pt.c                                        |   6 +-
 hw/xen_pt.h                                        |   2 +-
 hw/xen_pt_config_init.c                            |   2 +-
 hw/xenfb.c                                         |   4 +-
 hw/xgmac.c                                         |   6 +-
 hw/xilinx.h                                        |   8 +-
 hw/xilinx_axidma.c                                 |   5 +-
 hw/xilinx_axienet.c                                |   5 +-
 hw/xilinx_ethlite.c                                |   2 +-
 hw/xilinx_spi.c                                    |   4 +-
 hw/xilinx_spips.c                                  |   6 +-
 hw/xilinx_timer.c                                  |   2 +-
 hw/xilinx_uartlite.c                               |   2 +-
 hw/xilinx_zynq.c                                   |   8 +-
 hw/xio3130_downstream.c                            |   6 +-
 hw/xio3130_downstream.h                            |   2 +-
 hw/xio3130_upstream.c                              |   6 +-
 hw/xio3130_upstream.h                              |   2 +-
 hw/xtensa_lx60.c                                   |  11 +-
 hw/xtensa_pic.c                                    |   4 +-
 hw/xtensa_sim.c                                    |   6 +-
 hw/z2.c                                            |   8 +-
 hw/zynq_slcr.c                                     |   4 +-
 aes.h => include/block/aes.h                       |   0
 qemu-aio.h => include/block/aio.h                  |   4 +-
 block.h => include/block/block.h                   |   8 +-
 block_int.h => include/block/block_int.h           |  14 +-
 blockjob.h => include/block/blockjob.h             |   2 +-
 qemu-coroutine.h => include/block/coroutine.h      |   4 +-
 .../block/coroutine_int.h                          |   4 +-
 nbd.h => include/block/nbd.h                       |   0
 thread-pool.h => include/block/thread-pool.h       |   8 +-
 include/bt/bt.h                                    |  20 +
 qemu-char.h => include/char/char.h                 |  14 +-
 config.h => include/config.h                       |   0
 dis-asm.h => include/disas/bfd.h                   |   0
 disas.h => include/disas/disas.h                   |   0
 elf.h => include/elf.h                             |   0
 exec-memory.h => include/exec/address-spaces.h     |   2 +-
 cpu-all.h => include/exec/cpu-all.h                |   6 +-
 cpu-common.h => include/exec/cpu-common.h          |   8 +-
 cpu-defs.h => include/exec/cpu-defs.h              |   6 +-
 cputlb.h => include/exec/cputlb.h                  |   0
 def-helper.h => include/exec/def-helper.h          |   0
 exec-all.h => include/exec/exec-all.h              |  14 +-
 gdbstub.h => include/exec/gdbstub.h                |   0
 gen-icount.h => include/exec/gen-icount.h          |   7 +-
 hwaddr.h => include/exec/hwaddr.h                  |   0
 ioport.h => include/exec/ioport.h                  |   2 +-
 iorange.h => include/exec/iorange.h                |   0
 .../exec/memory-internal.h                         |   0
 memory.h => include/exec/memory.h                  |  12 +-
 poison.h => include/exec/poison.h                  |   0
 softmmu-semi.h => include/exec/softmmu-semi.h      |   4 +
 softmmu_defs.h => include/exec/softmmu_defs.h      |   0
 softmmu_exec.h => include/exec/softmmu_exec.h      |  58 +--
 softmmu_header.h => include/exec/softmmu_header.h  |   0
 .../exec/softmmu_template.h                        |   4 +-
 qemu-lock.h => include/exec/spinlock.h             |   0
 qemu-user-types.h => include/exec/user/abitypes.h  |   0
 thunk.h => include/exec/user/thunk.h               |   0
 {fpu => include/fpu}/softfloat.h                   |   2 +-
 libfdt_env.h => include/libfdt_env.h               |   2 +-
 block-migration.h => include/migration/block.h     |   0
 migration.h => include/migration/migration.h       |   8 +-
 include/{qemu => migration}/page_cache.h           |   0
 qemu-file.h => include/migration/qemu-file.h       |   0
 vmstate.h => include/migration/vmstate.h           |   0
 monitor.h => include/monitor/monitor.h             |   9 +-
 readline.h => include/monitor/readline.h           |   0
 {net => include/net}/checksum.h                    |   0
 net.h => include/net/net.h                         |  25 +-
 {net => include/net}/queue.h                       |   0
 {net => include/net}/slirp.h                       |   4 +-
 include/net/tap.h                                  |  67 ++++
 .../qapi/dealloc-visitor.h                         |   2 +-
 error.h => include/qapi/error.h                    |   2 +-
 {qapi => include/qapi}/opts-visitor.h              |   4 +-
 {qapi => include/qapi}/qmp-input-visitor.h         |   4 +-
 {qapi => include/qapi}/qmp-output-visitor.h        |   4 +-
 qapi/qmp-core.h => include/qapi/qmp/dispatch.h     |   6 +-
 json-lexer.h => include/qapi/qmp/json-lexer.h      |   4 +-
 json-parser.h => include/qapi/qmp/json-parser.h    |   4 +-
 .../qapi/qmp/json-streamer.h                       |   4 +-
 qbool.h => include/qapi/qmp/qbool.h                |   2 +-
 qdict.h => include/qapi/qmp/qdict.h                |   6 +-
 qerror.h => include/qapi/qmp/qerror.h              |   8 +-
 qfloat.h => include/qapi/qmp/qfloat.h              |   2 +-
 qint.h => include/qapi/qmp/qint.h                  |   2 +-
 qjson.h => include/qapi/qmp/qjson.h                |   6 +-
 qlist.h => include/qapi/qmp/qlist.h                |   6 +-
 qobject.h => include/qapi/qmp/qobject.h            |   0
 qstring.h => include/qapi/qmp/qstring.h            |   2 +-
 qemu-objects.h => include/qapi/qmp/types.h         |  16 +-
 {qapi => include/qapi}/string-input-visitor.h      |   2 +-
 {qapi => include/qapi}/string-output-visitor.h     |   2 +-
 include/qapi/visitor-impl.h                        |  63 +++
 qapi/qapi-visit-core.h => include/qapi/visitor.h   |  42 +-
 qemu-common.h => include/qemu-common.h             |  14 +-
 acl.h => include/qemu/acl.h                        |   2 +-
 qemu-barrier.h => include/qemu/atomic.h            |   2 +-
 bitmap.h => include/qemu/bitmap.h                  |   2 +-
 bitops.h => include/qemu/bitops.h                  |   0
 bswap.h => include/qemu/bswap.h                    |   2 +-
 cache-utils.h => include/qemu/cache-utils.h        |   0
 compatfd.h => include/qemu/compatfd.h              |   0
 compiler.h => include/qemu/compiler.h              |   0
 qemu-config.h => include/qemu/config-file.h        |   5 +-
 envlist.h => include/qemu/envlist.h                |   0
 qemu-error.h => include/qemu/error-report.h        |   0
 event_notifier.h => include/qemu/event_notifier.h  |   0
 host-utils.h => include/qemu/host-utils.h          |   6 +-
 int128.h => include/qemu/int128.h                  |   0
 iov.h => include/qemu/iov.h                        |   5 +
 qemu-log.h => include/qemu/log.h                   |   2 +-
 main-loop.h => include/qemu/main-loop.h            |   2 +-
 module.h => include/qemu/module.h                  |   0
 notify.h => include/qemu/notify.h                  |   2 +-
 qemu-option.h => include/qemu/option.h             |   6 +-
 .../qemu/option_int.h                              |   3 +-
 osdep.h => include/qemu/osdep.h                    |   0
 qemu-queue.h => include/qemu/queue.h               |   2 +-
 range.h => include/qemu/range.h                    |   0
 include/qemu/rng-random.h                          |   2 +-
 include/qemu/rng.h                                 |   4 +-
 qemu_socket.h => include/qemu/sockets.h            |   6 +-
 qemu-thread-posix.h => include/qemu/thread-posix.h |   0
 qemu-thread-win32.h => include/qemu/thread-win32.h |   0
 qemu-thread.h => include/qemu/thread.h             |   4 +-
 qemu-timer.h => include/qemu/timer.h               |   4 +-
 qemu-tls.h => include/qemu/tls.h                   |   0
 qemu-types.h => include/qemu/typedefs.h            |   0
 uri.h => include/qemu/uri.h                        |   0
 qemu-xattr.h => include/qemu/xattr.h               |   0
 include/{qemu => qom}/cpu.h                        |   4 +-
 include/{qemu => qom}/object.h                     |   2 +-
 include/{qemu => qom}/qom-qobject.h                |   2 +-
 arch_init.h => include/sysemu/arch_init.h          |   0
 balloon.h => include/sysemu/balloon.h              |   2 +-
 blockdev.h => include/sysemu/blockdev.h            |   6 +-
 cpus.h => include/sysemu/cpus.h                    |   0
 device_tree.h => include/sysemu/device_tree.h      |   0
 dma.h => include/sysemu/dma.h                      |   6 +-
 dump.h => include/sysemu/dump.h                    |   0
 kvm.h => include/sysemu/kvm.h                      |   2 +-
 .../sysemu/memory_mapping.h                        |   2 +-
 qemu-os-posix.h => include/sysemu/os-posix.h       |   0
 qemu-os-win32.h => include/sysemu/os-win32.h       |   0
 qtest.h => include/sysemu/qtest.h                  |   0
 qemu-seccomp.h => include/sysemu/seccomp.h         |   2 +-
 sysemu.h => include/sysemu/sysemu.h                |  12 +-
 xen-mapcache.h => include/sysemu/xen-mapcache.h    |   0
 console.h => include/ui/console.h                  |  11 +-
 {hw => include/ui}/pixel_ops.h                     |   0
 qemu-pixman.h => include/ui/qemu-pixman.h          |   0
 {ui => include/ui}/qemu-spice.h                    |   9 +-
 {ui => include/ui}/spice-display.h                 |   6 +-
 iohandler.c                                        |   7 +-
 ioport.c                                           |   4 +-
 iov.c                                              |   2 +-
 json-lexer.c                                       |  10 +-
 json-parser.c                                      |  18 +-
 json-streamer.c                                    |  10 +-
 kvm-all.c                                          |  24 +-
 kvm-stub.c                                         |   6 +-
 alpha.ld => ldscripts/alpha.ld                     |   0
 arm.ld => ldscripts/arm.ld                         |   0
 hppa.ld => ldscripts/hppa.ld                       |   0
 i386.ld => ldscripts/i386.ld                       |   0
 ia64.ld => ldscripts/ia64.ld                       |   0
 m68k.ld => ldscripts/m68k.ld                       |   0
 mips.ld => ldscripts/mips.ld                       |   0
 ppc.ld => ldscripts/ppc.ld                         |   0
 ppc64.ld => ldscripts/ppc64.ld                     |   0
 s390.ld => ldscripts/s390.ld                       |   0
 sparc.ld => ldscripts/sparc.ld                     |   0
 sparc64.ld => ldscripts/sparc64.ld                 |   0
 x86_64.ld => ldscripts/x86_64.ld                   |   0
 libcacard/event.c                                  |   2 +-
 libcacard/vreader.c                                |   2 +-
 libcacard/vscclient.c                              |   4 +-
 linux-user/arm/nwfpe/double_cpdo.c                 |   2 +-
 linux-user/arm/nwfpe/extended_cpdo.c               |   2 +-
 linux-user/arm/nwfpe/fpa11.h                       |   2 +-
 linux-user/arm/nwfpe/fpa11_cpdt.c                  |   2 +-
 linux-user/arm/nwfpe/fpa11_cprt.c                  |   2 +-
 linux-user/arm/nwfpe/fpopcode.c                    |   2 +-
 linux-user/arm/nwfpe/single_cpdo.c                 |   2 +-
 linux-user/cris/syscall.h                          |   5 +
 linux-user/elfload.c                               |   2 +-
 linux-user/main.c                                  |   6 +-
 linux-user/microblaze/syscall.h                    |   6 +
 linux-user/qemu.h                                  |  10 +-
 linux-user/syscall.c                               |   2 +-
 linux-user/syscall_defs.h                          |   6 +
 main-loop.c                                        |   8 +-
 memory.c                                           |  12 +-
 memory_mapping-stub.c                              |   4 +-
 memory_mapping.c                                   |   4 +-
 migration-exec.c                                   |   7 +-
 migration-fd.c                                     |  11 +-
 migration-tcp.c                                    |   7 +-
 migration-unix.c                                   |   7 +-
 migration.c                                        |  12 +-
 module.c                                           |   4 +-
 monitor.c                                          |  52 +--
 nbd.c                                              |  10 +-
 net/Makefile.objs                                  |   2 +-
 net/clients.h                                      |   2 +-
 net/dump.c                                         |   6 +-
 net/hub.c                                          |   6 +-
 net/hub.h                                          |   2 -
 net.c => net/net.c                                 |  17 +-
 net/queue.c                                        |   4 +-
 net/slirp.c                                        |   7 +-
 net/socket.c                                       |  13 +-
 net/tap-aix.c                                      |   2 +-
 net/tap-bsd.c                                      |   6 +-
 net/tap-haiku.c                                    |   2 +-
 net/tap-linux.c                                    |  15 +-
 net/tap-linux.h                                    |  20 +-
 net/tap-solaris.c                                  |   6 +-
 net/tap-win32.c                                    |   8 +-
 net/tap.c                                          |  13 +-
 net/{tap.h => tap_int.h}                           |  18 +-
 net/util.c                                         |   2 +-
 net/vde.c                                          |   5 +-
 notify.c                                           |   2 +-
 os-posix.c                                         |   2 +-
 os-win32.c                                         |   2 +-
 osdep.c                                            |   4 +-
 oslib-posix.c                                      |   4 +-
 oslib-win32.c                                      |   6 +-
 page_cache.c                                       |   2 +-
 pixman                                             |   2 +-
 qapi/opts-visitor.c                                |  10 +-
 qapi/qapi-dealloc-visitor.c                        |   7 +-
 qapi/qapi-types-core.h                             |  21 -
 qapi/qapi-visit-core.c                             |   6 +-
 qapi/qapi-visit-impl.h                             |  23 --
 qapi/qmp-dispatch.c                                |  10 +-
 qapi/qmp-input-visitor.c                           |  10 +-
 qapi/qmp-output-visitor.c                          |  10 +-
 qapi/qmp-registry.c                                |   2 +-
 qapi/string-input-visitor.c                        |   6 +-
 qapi/string-output-visitor.c                       |   6 +-
 qbool.c                                            |   4 +-
 qdict.c                                            |  14 +-
 qemu-bridge-helper.c                               |   2 +-
 qemu-char.c                                        |  13 +-
 qemu-config.c                                      |   8 +-
 qemu-coroutine-io.c                                |   6 +-
 qemu-coroutine-lock.c                              |   8 +-
 qemu-coroutine-sleep.c                             |   4 +-
 qemu-coroutine.c                                   |   4 +-
 qemu-error.c                                       |   2 +-
 qemu-img.c                                         |  12 +-
 qemu-io.c                                          |   4 +-
 qemu-log.c                                         |   2 +-
 qemu-nbd.c                                         |   4 +-
 qemu-option.c                                      |  10 +-
 qemu-progress.c                                    |   4 +-
 qemu-seccomp.c                                     |   2 +-
 qemu-sockets.c                                     |   6 +-
 qemu-thread-posix.c                                |   2 +-
 qemu-thread-win32.c                                |   2 +-
 qemu-timer-common.c                                |   2 +-
 qemu-timer.c                                       |  11 +-
 qemu-tool.c                                        |  14 +-
 qemu-user.c                                        |   2 +-
 qerror.c                                           |   6 +-
 qfloat.c                                           |   4 +-
 qga/Makefile.objs                                  |   2 +-
 qga/channel-posix.c                                |   4 +-
 qga/commands-posix.c                               |   6 +-
 qga/commands-win32.c                               |   2 +-
 qga/commands.c                                     |   2 +-
 qga/guest-agent-core.h                             |   2 +-
 qemu-ga.c => qga/main.c                            |  14 +-
 qapi-schema-guest.json => qga/qapi-schema.json     |   0
 qint.c                                             |   4 +-
 qjson.c                                            |  18 +-
 qlist.c                                            |   6 +-
 qmp.c                                              |  11 +-
 qom/container.c                                    |   4 +-
 qom/cpu.c                                          |   2 +-
 qom/object.c                                       |  15 +-
 qom/qom-qobject.c                                  |   6 +-
 qstring.c                                          |   4 +-
 qtest.c                                            |  12 +-
 readline.c                                         |   4 +-
 rules.mak                                          |   5 +-
 savevm.c                                           |  23 +-
 scripts/feature_to_c.sh                            |   2 +-
 scripts/get_maintainer.pl                          |  25 +-
 scripts/qapi-commands.py                           |  15 +-
 scripts/qapi-types.py                              |   2 +-
 scripts/qapi-visit.py                              |   3 +-
 slirp/bootp.h                                      |   4 +
 slirp/if.c                                         |   2 +-
 slirp/ip_input.c                                   |   2 +-
 slirp/main.h                                       |   4 +
 slirp/misc.c                                       |   4 +-
 slirp/sbuf.c                                       |   2 +-
 slirp/slirp.c                                      |   4 +-
 slirp/slirp.h                                      |   4 +-
 slirp/tftp.h                                       |   4 +
 spice-qemu-char.c                                  |   3 +-
 stubs/arch-query-cpu-def.c                         |   4 +-
 stubs/fd-register.c                                |   2 +-
 stubs/fdset-add-fd.c                               |   2 +-
 stubs/fdset-find-fd.c                              |   2 +-
 stubs/fdset-get-fd.c                               |   2 +-
 stubs/fdset-remove-fd.c                            |   2 +-
 stubs/get-fd.c                                     |   2 +-
 stubs/set-fd-handler.c                             |   2 +-
 target-alpha/cpu-qom.h                             |   2 +-
 target-alpha/cpu.h                                 |   8 +-
 target-alpha/fpu_helper.c                          |   2 +-
 target-alpha/helper.c                              |   2 +-
 target-alpha/helper.h                              |   4 +-
 target-alpha/int_helper.c                          |   2 +-
 target-alpha/mem_helper.c                          |  10 +-
 target-alpha/sys_helper.c                          |   4 +-
 target-alpha/translate.c                           |   8 +-
 target-arm/arm-semi.c                              |   4 +-
 target-arm/cpu-qom.h                               |   2 +-
 target-arm/cpu.c                                   |   2 +-
 target-arm/cpu.h                                   |   8 +-
 target-arm/helper.c                                |   8 +-
 target-arm/helper.h                                |   4 +-
 target-arm/iwmmxt_helper.c                         |   2 +-
 target-arm/neon_helper.c                           |   2 +-
 target-arm/op_helper.c                             |  10 +-
 target-arm/translate.c                             |   6 +-
 target-cris/cpu-qom.h                              |   2 +-
 target-cris/cpu.h                                  |   6 +-
 target-cris/crisv32-decode.h                       |   4 +
 target-cris/helper.c                               |   2 +-
 target-cris/helper.h                               |   4 +-
 target-cris/op_helper.c                            |  12 +-
 target-cris/translate.c                            |   4 +-
 target-i386/arch_dump.c                            |   4 +-
 target-i386/arch_memory_mapping.c                  |   4 +-
 target-i386/cpu-qom.h                              |   4 +-
 target-i386/cpu.c                                  |  13 +-
 target-i386/cpu.h                                  |   8 +-
 target-i386/excp_helper.c                          |   4 +-
 target-i386/fpu_helper.c                           |   2 +-
 target-i386/helper.c                               |   6 +-
 target-i386/helper.h                               |   4 +-
 target-i386/int_helper.c                           |   2 +-
 target-i386/ioport-user.c                          |   2 +-
 target-i386/kvm.c                                  |  13 +-
 target-i386/kvm_i386.h                             |   2 +-
 target-i386/machine.c                              |   2 +-
 target-i386/mem_helper.c                           |  10 +-
 target-i386/misc_helper.c                          |   4 +-
 target-i386/seg_helper.c                           |   4 +-
 target-i386/svm_helper.c                           |   4 +-
 target-i386/translate.c                            |   4 +-
 target-lm32/cpu-qom.h                              |   2 +-
 target-lm32/cpu.h                                  |   6 +-
 target-lm32/helper.c                               |   2 +-
 target-lm32/helper.h                               |   4 +-
 target-lm32/op_helper.c                            |  10 +-
 target-lm32/translate.c                            |   4 +-
 target-m68k/cpu-qom.h                              |   2 +-
 target-m68k/cpu.h                                  |   8 +-
 target-m68k/helper.c                               |   2 +-
 target-m68k/helpers.h                              |   4 +-
 target-m68k/m68k-semi.c                            |   6 +-
 target-m68k/op_helper.c                            |  10 +-
 target-m68k/translate.c                            |   6 +-
 target-microblaze/cpu-qom.h                        |   2 +-
 target-microblaze/cpu.h                            |   8 +-
 target-microblaze/helper.c                         |   4 +-
 target-microblaze/helper.h                         |   4 +-
 target-microblaze/op_helper.c                      |  12 +-
 target-microblaze/translate.c                      |   4 +-
 target-mips/cpu-qom.h                              |   2 +-
 target-mips/cpu.h                                  |   8 +-
 target-mips/helper.h                               |   4 +-
 target-mips/op_helper.c                            |  12 +-
 target-mips/translate.c                            |   4 +-
 target-openrisc/cpu.h                              |  12 +-
 target-openrisc/helper.h                           |   4 +-
 target-openrisc/int_helper.c                       |   2 +-
 target-openrisc/interrupt.c                        |   4 +-
 target-openrisc/mmu.c                              |   4 +-
 target-openrisc/mmu_helper.c                       |  10 +-
 target-openrisc/translate.c                        |  10 +-
 target-ppc/cpu-qom.h                               |   2 +-
 target-ppc/cpu.h                                   |   8 +-
 target-ppc/helper.c                                |   4 +-
 target-ppc/helper.h                                |   4 +-
 target-ppc/int_helper.c                            |   2 +-
 target-ppc/kvm.c                                   |  10 +-
 target-ppc/kvm_ppc.c                               |   4 +-
 target-ppc/kvm_ppc.h                               |   2 +-
 target-ppc/machine.c                               |   2 +-
 target-ppc/mem_helper.c                            |  12 +-
 target-ppc/mmu_helper.c                            |   2 +-
 target-ppc/translate.c                             |   6 +-
 target-ppc/translate_init.c                        |   8 +-
 target-s390x/cpu-qom.h                             |   2 +-
 target-s390x/cpu.c                                 |   2 +-
 target-s390x/cpu.h                                 |   8 +-
 target-s390x/fpu_helper.c                          |   2 +-
 target-s390x/helper.c                              |   6 +-
 target-s390x/helper.h                              |   4 +-
 target-s390x/int_helper.c                          |   2 +-
 target-s390x/interrupt.c                           |   2 +-
 target-s390x/kvm.c                                 |   8 +-
 target-s390x/mem_helper.c                          |  10 +-
 target-s390x/misc_helper.c                         |  12 +-
 target-s390x/translate.c                           |   6 +-
 target-sh4/cpu-qom.h                               |   2 +-
 target-sh4/cpu.h                                   |  10 +-
 target-sh4/helper.h                                |   4 +-
 target-sh4/op_helper.c                             |  10 +-
 target-sh4/translate.c                             |   4 +-
 target-sparc/cpu-qom.h                             |   2 +-
 target-sparc/cpu.h                                 |  10 +-
 target-sparc/helper.c                              |   4 +-
 target-sparc/helper.h                              |   4 +-
 target-sparc/int32_helper.c                        |   2 +-
 target-sparc/ldst_helper.c                         |  10 +-
 target-sparc/machine.c                             |   2 +-
 target-sparc/mmu_helper.c                          |   2 +-
 target-sparc/translate.c                           |   4 +-
 target-unicore32/cpu-qom.h                         |   2 +-
 target-unicore32/cpu.h                             |   8 +-
 target-unicore32/helper.c                          |   6 +-
 target-unicore32/helper.h                          |   4 +-
 target-unicore32/op_helper.c                       |   8 +-
 target-unicore32/translate.c                       |   6 +-
 target-xtensa/core-dc232b.c                        |   6 +-
 target-xtensa/core-dc233c.c                        |   6 +-
 target-xtensa/core-fsf.c                           |   6 +-
 target-xtensa/cpu-qom.h                            |   2 +-
 target-xtensa/cpu.h                                |   6 +-
 target-xtensa/helper.c                             |   6 +-
 target-xtensa/helper.h                             |   4 +-
 target-xtensa/op_helper.c                          |  10 +-
 target-xtensa/translate.c                          |  10 +-
 target-xtensa/xtensa-semi.c                        |   2 +-
 tcg/arm/tcg-target.c                               |   2 +-
 tcg/arm/tcg-target.h                               |   3 +
 tcg/hppa/tcg-target.c                              |   2 +-
 tcg/hppa/tcg-target.h                              |   3 +
 tcg/i386/tcg-target.c                              |   2 +-
 tcg/i386/tcg-target.h                              |   3 +
 tcg/ia64/tcg-target.c                              |   2 +-
 tcg/ia64/tcg-target.h                              |   3 +
 tcg/mips/tcg-target.c                              |   2 +-
 tcg/mips/tcg-target.h                              |   3 +
 tcg/ppc/tcg-target.c                               |   2 +-
 tcg/ppc/tcg-target.h                               |   3 +
 tcg/ppc64/tcg-target.c                             |   2 +-
 tcg/ppc64/tcg-target.h                             |   3 +
 tcg/s390/tcg-target.c                              |   2 +-
 tcg/s390/tcg-target.h                              |   3 +
 tcg/sparc/tcg-target.c                             |   2 +-
 tcg/sparc/tcg-target.h                             |   3 +
 tcg/tcg.c                                          |   6 +-
 tci.c                                              |   2 +-
 tests/check-qdict.c                                |   6 +-
 tests/check-qfloat.c                               |   2 +-
 tests/check-qint.c                                 |   2 +-
 tests/check-qjson.c                                |  14 +-
 tests/check-qlist.c                                |   4 +-
 tests/check-qstring.c                              |   2 +-
 tests/libqtest.c                                   |   4 +-
 tests/tcg/cris/crisutils.h                         |   5 +
 tests/tcg/test-i386-fprem.c                        |   4 +-
 tests/tcg/test-i386.c                              |   2 +-
 tests/test-aio.c                                   |   2 +-
 tests/test-coroutine.c                             |   2 +-
 tests/test-iov.c                                   |   4 +-
 tests/test-qmp-commands.c                          |   6 +-
 tests/test-qmp-input-strict.c                      |   2 +-
 tests/test-qmp-input-visitor.c                     |   2 +-
 tests/test-qmp-output-visitor.c                    |   2 +-
 tests/test-string-input-visitor.c                  |   2 +-
 tests/test-string-output-visitor.c                 |   2 +-
 tests/test-thread-pool.c                           |   6 +-
 tests/test-visitor-serialization.c                 |   2 +-
 thread-pool.c                                      |  14 +-
 thunk.c                                            |   2 +-
 trace/simple.c                                     |   2 +-
 translate-all.c                                    |  10 +-
 ui/Makefile.objs                                   |   7 +-
 ui/cocoa.m                                         |   4 +-
 console.c => ui/console.c                          |   5 +-
 ui/curses.c                                        |   4 +-
 ui/curses_keys.h                                   |   5 +
 cursor.c => ui/cursor.c                            |   2 +-
 cursor_hidden.xpm => ui/cursor_hidden.xpm          |   0
 cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm      |   0
 ui/d3des.h                                         |   4 +
 input.c => ui/input.c                              |   9 +-
 ui/keymaps.c                                       |   2 +-
 qemu-pixman.c => ui/qemu-pixman.c                  |   2 +-
 qemu-x509.h => ui/qemu-x509.h                      |   0
 ui/sdl.c                                           |   4 +-
 ui/sdl_zoom.c                                      |   2 +-
 ui/spice-core.c                                    |  28 +-
 ui/spice-display.c                                 |  14 +-
 ui/spice-input.c                                   |   4 +-
 vgafont.h => ui/vgafont.h                          |   0
 ui/vnc-auth-sasl.h                                 |   2 +-
 ui/vnc-enc-tight.c                                 |   4 +-
 ui/vnc-jobs.c                                      |   2 +-
 ui/vnc-palette.h                                   |   4 +-
 ui/vnc-tls.c                                       |   2 +-
 ui/vnc-tls.h                                       |   2 +-
 ui/vnc.c                                           |  12 +-
 ui/vnc.h                                           |  10 +-
 uri.c                                              |   2 +-
 user-exec.c                                        |   2 +-
 vl.c                                               |  54 +--
 xen-all.c                                          |   8 +-
 xen-mapcache.c                                     |   6 +-
 xen-stub.c                                         |   2 +-
 1124 files changed, 3142 insertions(+), 3427 deletions(-)
 delete mode 100644 Makefile.dis
 delete mode 100644 Makefile.user
 delete mode 100644 a.out.h
 delete mode 100644 bt-host.h
 create mode 100644 disas/Makefile.objs
 rename alpha-dis.c => disas/alpha.c (99%)
 rename arm-dis.c => disas/arm.c (99%)
 rename cris-dis.c => disas/cris.c (99%)
 rename hppa-dis.c => disas/hppa.c (99%)
 rename i386-dis.c => disas/i386.c (99%)
 rename ia64-dis.c => disas/ia64.c (99%)
 rename lm32-dis.c => disas/lm32.c (99%)
 rename m68k-dis.c => disas/m68k.c (99%)
 rename microblaze-dis.c => disas/microblaze.c (99%)
 rename mips-dis.c => disas/mips.c (99%)
 rename ppc-dis.c => disas/ppc.c (99%)
 rename s390-dis.c => disas/s390.c (99%)
 rename sh4-dis.c => disas/sh4.c (99%)
 rename sparc-dis.c => disas/sparc.c (99%)
 rename tci-dis.c => disas/tci.c (98%)
 create mode 100644 hw/pci/Makefile.objs
 rename hw/{ => pci}/msi.c (99%)
 rename hw/{ => pci}/msi.h (98%)
 rename hw/{ => pci}/msix.c (99%)
 rename hw/{ => pci}/msix.h (98%)
 rename hw/{ => pci}/pci-hotplug.c (96%)
 rename hw/{ => pci}/pci-stub.c (94%)
 rename hw/{ => pci}/pci.c (99%)
 rename hw/{ => pci}/pci.h (99%)
 rename hw/{ => pci}/pci_bridge.c (99%)
 rename hw/{ => pci}/pci_bridge.h (98%)
 rename hw/{pci_internals.h => pci/pci_bus.h} (79%)
 rename hw/{ => pci}/pci_host.c (99%)
 rename hw/{ => pci}/pci_host.h (99%)
 rename hw/{ => pci}/pci_ids.h (98%)
 rename hw/{ => pci}/pci_regs.h (100%)
 rename hw/{ => pci}/pcie.c (99%)
 rename hw/{ => pci}/pcie.h (98%)
 rename hw/{ => pci}/pcie_aer.c (99%)
 rename hw/{ => pci}/pcie_aer.h (99%)
 rename hw/{ => pci}/pcie_host.c (97%)
 rename hw/{ => pci}/pcie_host.h (96%)
 rename hw/{ => pci}/pcie_port.c (99%)
 rename hw/{ => pci}/pcie_port.h (96%)
 rename hw/{ => pci}/pcie_regs.h (100%)
 rename hw/{ => pci}/shpc.c (99%)
 rename hw/{ => pci}/shpc.h (95%)
 rename hw/{ => pci}/slotid_cap.c (95%)
 rename hw/{ => pci}/slotid_cap.h (100%)
 rename uboot_image.h => hw/uboot_image.h (100%)
 rename aes.h => include/block/aes.h (100%)
 rename qemu-aio.h => include/block/aio.h (99%)
 rename block.h => include/block/block.h (99%)
 rename block_int.h => include/block/block_int.h (98%)
 rename blockjob.h => include/block/blockjob.h (99%)
 rename qemu-coroutine.h => include/block/coroutine.h (99%)
 rename qemu-coroutine-int.h => include/block/coroutine_int.h (96%)
 rename nbd.h => include/block/nbd.h (100%)
 rename thread-pool.h => include/block/thread-pool.h (88%)
 create mode 100644 include/bt/bt.h
 rename qemu-char.h => include/char/char.h (97%)
 rename config.h => include/config.h (100%)
 rename dis-asm.h => include/disas/bfd.h (100%)
 rename disas.h => include/disas/disas.h (100%)
 rename elf.h => include/elf.h (100%)
 rename exec-memory.h => include/exec/address-spaces.h (97%)
 rename cpu-all.h => include/exec/cpu-all.h (99%)
 rename cpu-common.h => include/exec/cpu-common.h (97%)
 rename cpu-defs.h => include/exec/cpu-defs.h (99%)
 rename cputlb.h => include/exec/cputlb.h (100%)
 rename def-helper.h => include/exec/def-helper.h (100%)
 rename exec-all.h => include/exec/exec-all.h (98%)
 rename gdbstub.h => include/exec/gdbstub.h (100%)
 rename gen-icount.h => include/exec/gen-icount.h (94%)
 rename hwaddr.h => include/exec/hwaddr.h (100%)
 rename ioport.h => include/exec/ioport.h (99%)
 rename iorange.h => include/exec/iorange.h (100%)
 rename memory-internal.h => include/exec/memory-internal.h (100%)
 rename memory.h => include/exec/memory.h (99%)
 rename poison.h => include/exec/poison.h (100%)
 rename softmmu-semi.h => include/exec/softmmu-semi.h (97%)
 rename softmmu_defs.h => include/exec/softmmu_defs.h (100%)
 rename softmmu_exec.h => include/exec/softmmu_exec.h (72%)
 rename softmmu_header.h => include/exec/softmmu_header.h (100%)
 rename softmmu_template.h => include/exec/softmmu_template.h (99%)
 rename qemu-lock.h => include/exec/spinlock.h (100%)
 rename qemu-user-types.h => include/exec/user/abitypes.h (100%)
 rename thunk.h => include/exec/user/thunk.h (100%)
 rename {fpu => include/fpu}/softfloat.h (99%)
 rename libfdt_env.h => include/libfdt_env.h (97%)
 rename block-migration.h => include/migration/block.h (100%)
 rename migration.h => include/migration/migration.h (97%)
 rename include/{qemu => migration}/page_cache.h (100%)
 rename qemu-file.h => include/migration/qemu-file.h (100%)
 rename vmstate.h => include/migration/vmstate.h (100%)
 rename monitor.h => include/monitor/monitor.h (96%)
 rename readline.h => include/monitor/readline.h (100%)
 rename {net => include/net}/checksum.h (100%)
 rename net.h => include/net/net.h (90%)
 rename {net => include/net}/queue.h (100%)
 rename {net => include/net}/slirp.h (96%)
 create mode 100644 include/net/tap.h
 rename qapi/qapi-dealloc-visitor.h => include/qapi/dealloc-visitor.h (95%)
 rename error.h => include/qapi/error.h (98%)
 rename {qapi => include/qapi}/opts-visitor.h (93%)
 rename {qapi => include/qapi}/qmp-input-visitor.h (91%)
 rename {qapi => include/qapi}/qmp-output-visitor.h (91%)
 rename qapi/qmp-core.h => include/qapi/qmp/dispatch.h (93%)
 rename json-lexer.h => include/qapi/qmp/json-lexer.h (94%)
 rename json-parser.h => include/qapi/qmp/json-parser.h (90%)
 rename json-streamer.h => include/qapi/qmp/json-streamer.h (93%)
 rename qbool.h => include/qapi/qmp/qbool.h (94%)
 rename qdict.h => include/qapi/qmp/qdict.h (96%)
 rename qerror.h => include/qapi/qmp/qerror.h (98%)
 rename qfloat.h => include/qapi/qmp/qfloat.h (94%)
 rename qint.h => include/qapi/qmp/qint.h (94%)
 rename qjson.h => include/qapi/qmp/qjson.h (88%)
 rename qlist.h => include/qapi/qmp/qlist.h (95%)
 rename qobject.h => include/qapi/qmp/qobject.h (100%)
 rename qstring.h => include/qapi/qmp/qstring.h (96%)
 rename qemu-objects.h => include/qapi/qmp/types.h (60%)
 rename {qapi => include/qapi}/string-input-visitor.h (95%)
 rename {qapi => include/qapi}/string-output-visitor.h (95%)
 create mode 100644 include/qapi/visitor-impl.h
 rename qapi/qapi-visit-core.h => include/qapi/visitor.h (52%)
 rename qemu-common.h => include/qemu-common.h (98%)
 rename acl.h => include/qemu/acl.h (98%)
 rename qemu-barrier.h => include/qemu/atomic.h (96%)
 rename bitmap.h => include/qemu/bitmap.h (99%)
 rename bitops.h => include/qemu/bitops.h (100%)
 rename bswap.h => include/qemu/bswap.h (99%)
 rename cache-utils.h => include/qemu/cache-utils.h (100%)
 rename compatfd.h => include/qemu/compatfd.h (100%)
 rename compiler.h => include/qemu/compiler.h (100%)
 rename qemu-config.h => include/qemu/config-file.h (91%)
 rename envlist.h => include/qemu/envlist.h (100%)
 rename qemu-error.h => include/qemu/error-report.h (100%)
 rename event_notifier.h => include/qemu/event_notifier.h (100%)
 rename host-utils.h => include/qemu/host-utils.h (98%)
 rename int128.h => include/qemu/int128.h (100%)
 rename iov.h => include/qemu/iov.h (99%)
 rename qemu-log.h => include/qemu/log.h (99%)
 rename main-loop.h => include/qemu/main-loop.h (99%)
 rename module.h => include/qemu/module.h (100%)
 rename notify.h => include/qemu/notify.h (97%)
 rename qemu-option.h => include/qemu/option.h (98%)
 rename qemu-option-internal.h => include/qemu/option_int.h (96%)
 rename osdep.h => include/qemu/osdep.h (100%)
 rename qemu-queue.h => include/qemu/queue.h (99%)
 rename range.h => include/qemu/range.h (100%)
 rename qemu_socket.h => include/qemu/sockets.h (96%)
 rename qemu-thread-posix.h => include/qemu/thread-posix.h (100%)
 rename qemu-thread-win32.h => include/qemu/thread-win32.h (100%)
 rename qemu-thread.h => include/qemu/thread.h (96%)
 rename qemu-timer.h => include/qemu/timer.h (99%)
 rename qemu-tls.h => include/qemu/tls.h (100%)
 rename qemu-types.h => include/qemu/typedefs.h (100%)
 rename uri.h => include/qemu/uri.h (100%)
 rename qemu-xattr.h => include/qemu/xattr.h (100%)
 rename include/{qemu => qom}/cpu.h (98%)
 rename include/{qemu => qom}/object.h (99%)
 rename include/{qemu => qom}/qom-qobject.h (97%)
 rename arch_init.h => include/sysemu/arch_init.h (100%)
 rename balloon.h => include/sysemu/balloon.h (95%)
 rename blockdev.h => include/sysemu/blockdev.h (96%)
 rename cpus.h => include/sysemu/cpus.h (100%)
 rename device_tree.h => include/sysemu/device_tree.h (100%)
 rename dma.h => include/sysemu/dma.h (99%)
 rename dump.h => include/sysemu/dump.h (100%)
 rename kvm.h => include/sysemu/kvm.h (99%)
 rename memory_mapping.h => include/sysemu/memory_mapping.h (98%)
 rename qemu-os-posix.h => include/sysemu/os-posix.h (100%)
 rename qemu-os-win32.h => include/sysemu/os-win32.h (100%)
 rename qtest.h => include/sysemu/qtest.h (100%)
 rename qemu-seccomp.h => include/sysemu/seccomp.h (95%)
 rename sysemu.h => include/sysemu/sysemu.h (97%)
 rename xen-mapcache.h => include/sysemu/xen-mapcache.h (100%)
 rename console.h => include/ui/console.h (99%)
 rename {hw => include/ui}/pixel_ops.h (100%)
 rename qemu-pixman.h => include/ui/qemu-pixman.h (100%)
 rename {ui => include/ui}/qemu-spice.h (95%)
 rename {ui => include/ui}/spice-display.h (98%)
 rename alpha.ld => ldscripts/alpha.ld (100%)
 rename arm.ld => ldscripts/arm.ld (100%)
 rename hppa.ld => ldscripts/hppa.ld (100%)
 rename i386.ld => ldscripts/i386.ld (100%)
 rename ia64.ld => ldscripts/ia64.ld (100%)
 rename m68k.ld => ldscripts/m68k.ld (100%)
 rename mips.ld => ldscripts/mips.ld (100%)
 rename ppc.ld => ldscripts/ppc.ld (100%)
 rename ppc64.ld => ldscripts/ppc64.ld (100%)
 rename s390.ld => ldscripts/s390.ld (100%)
 rename sparc.ld => ldscripts/sparc.ld (100%)
 rename sparc64.ld => ldscripts/sparc64.ld (100%)
 rename x86_64.ld => ldscripts/x86_64.ld (100%)
 rename net.c => net/net.c (99%)
 rename net/{tap.h => tap_int.h} (77%)
 delete mode 100644 qapi/qapi-types-core.h
 delete mode 100644 qapi/qapi-visit-impl.h
 rename qemu-ga.c => qga/main.c (99%)
 rename qapi-schema-guest.json => qga/qapi-schema.json (100%)
 rename console.c => ui/console.c (99%)
 rename cursor.c => ui/cursor.c (99%)
 rename cursor_hidden.xpm => ui/cursor_hidden.xpm (100%)
 rename cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm (100%)
 rename input.c => ui/input.c (99%)
 rename qemu-pixman.c => ui/qemu-pixman.c (98%)
 rename qemu-x509.h => ui/qemu-x509.h (100%)
 rename vgafont.h => ui/vgafont.h (100%)

---
1.8.0.2

#1 lore raw

PATCH 1/32 libcacard: simplify rules for recursive build

---
 Makefile | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
Makefile +1 -9
index 9ecbcbb..d06fbad 100644
@@ -169,19 +169,11 @@ libqemustub.a: $(stub-obj-y)
 # Support building shared library libcacard
 
 .PHONY: libcacard.la install-libcacard
-ifeq ($(LIBTOOL),)
-libcacard.la:
-	@echo "libtool is missing, please install and rerun configure"; exit 1
-
-install-libcacard:
-	@echo "libtool is missing, please install and rerun configure"; exit 1
-else
-libcacard.la: $(oslib-obj-y) qemu-timer-common.o $(addsuffix .lo, $(basename $(trace-obj-y)))
+libcacard.la: $(oslib-obj-y) qemu-timer-common.o $(trace-obj-y)
 	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libcacard V="$(V)" TARGET_DIR="$*/" libcacard.la,)
 
 install-libcacard: libcacard.la
 	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libcacard V="$(V)" TARGET_DIR="$*/" install-libcacard,)
-endif
 
 ######################################################################
 
Signature · 1 line
1.8.0.2
#2 lore raw

PATCH 2/32 vscclient: use per-target variables

In reply to Paolo Bonzini
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
index d06fbad..7e38112 100644
@@ -189,8 +189,9 @@ qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) libqemustub.a
 
 qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o
 
+vscclient$(EXESUF): LIBS += $(libcacard_libs)
 vscclient$(EXESUF): $(libcacard-y) $(oslib-obj-y) $(trace-obj-y) libcacard/vscclient.o libqemustub.a
-	$(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(libcacard_libs) $(LIBS),"  LINK  $@")
+	$(call LINK, $^)
 
 fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o fsdev/virtio-9p-marshal.o oslib-posix.o $(trace-obj-y)
 fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap
Signature · 1 line
1.8.0.2
#3 lore raw

PATCH 3/32 build: adjust setting of QEMU_INCLUDES

In reply to Paolo Bonzini

Make it correct for nested directories, and move the static part from Makefile to configure.

---
 Makefile  | 2 --
 configure | 3 +--
 rules.mak | 3 +++
 3 files changed, 4 insertions(+), 4 deletions(-)
Makefile +0 -2
index 7e38112..9ebd3cd 100644
@@ -145,8 +145,6 @@ audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
 
 QEMU_CFLAGS+=$(CURL_CFLAGS)
 
-QEMU_CFLAGS += -I$(SRC_PATH)/include
-
 ui/cocoa.o: ui/cocoa.m
 
 ui/sdl.o audio/sdlaudio.o ui/sdl_zoom.o hw/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
configure +1 -2
index ecdb33a..e9ad1b1 100755
@@ -278,7 +278,7 @@ QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
 QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
 QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
 QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
-QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/fpu"
+QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include -I\$(SRC_PATH)/fpu"
 if test "$debug_info" = "yes"; then
     CFLAGS="-g $CFLAGS"
     LDFLAGS="-g $LDFLAGS"
@@ -3343,7 +3343,6 @@ fi
 if test "$slirp" = "yes" ; then
   echo "CONFIG_SLIRP=y" >> $config_host_mak
   echo "CONFIG_SMBD_COMMAND=\"$smbd\"" >> $config_host_mak
-  QEMU_INCLUDES="-I\$(SRC_PATH)/slirp $QEMU_INCLUDES"
 fi
 if test "$vde" = "yes" ; then
   echo "CONFIG_VDE=y" >> $config_host_mak
rules.mak +3 -0
index d0b04e4..77d2360 100644
@@ -14,6 +14,9 @@ MAKEFLAGS += -rR
 # Flags for dependency generation
 QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
 
+# Same as -I$(SRC_PATH) -I., but for the nested source/object directories
+QEMU_CFLAGS += -I$(<D) -I$(@D)
+
 %.o: %.c
 	$(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
 
Signature · 1 line
1.8.0.2
#4 lore raw

PATCH 4/32 build: add $(TARGET_DIR) to "GEN config-target.h" lines

In reply to Paolo Bonzini
---
 rules.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rules.mak +1 -1
index 77d2360..8448b94 100644
@@ -71,7 +71,7 @@ TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py
 	@test -f $@ || cp $< $@
 
 %.h-timestamp: %.mak
-	$(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, "  GEN   $*.h")
+	$(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, "  GEN   $(TARGET_DIR)$*.h")
 	@cmp $@ $*.h >/dev/null 2>&1 || cp $@ $*.h
 
 # will delete the target of a rule if commands exit with a nonzero exit status
Signature · 1 line
1.8.0.2
#5 lore raw

PATCH 5/32 build: move rules from Makefile to */Makefile.objs

In reply to Paolo Bonzini
---
 Makefile            | 10 ----------
 audio/Makefile.objs |  3 +++
 block/Makefile.objs |  2 ++
 hw/Makefile.objs    |  2 ++
 ui/Makefile.objs    |  5 +++++
 5 files changed, 12 insertions(+), 10 deletions(-)
Makefile +0 -10
index 9ebd3cd..5810718 100644
@@ -141,16 +141,6 @@ ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
 
 recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
 
-audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
-
-QEMU_CFLAGS+=$(CURL_CFLAGS)
-
-ui/cocoa.o: ui/cocoa.m
-
-ui/sdl.o audio/sdlaudio.o ui/sdl_zoom.o hw/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
-
-ui/vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
-
 bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
 
 version.o: $(SRC_PATH)/version.rc config-host.h
audio/Makefile.objs +3 -0
index 0f2932d..d71a877 100644
@@ -12,3 +12,6 @@ common-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
 common-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
 common-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
 common-obj-y += wavcapture.o
+
+$(obj)/audio.o $(obj)/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
+$(obj)/sdlaudio.o: QEMU_CFLAGS += $(SDL_CFLAGS)
block/Makefile.objs +2 -0
index 7f01510..c067f38 100644
@@ -18,3 +18,5 @@ endif
 common-obj-y += stream.o
 common-obj-y += commit.o
 common-obj-y += mirror.o
+
+$(obj)/curl.o: QEMU_CFLAGS+=$(CURL_CFLAGS)
hw/Makefile.objs +2 -0
index bcf278d..2778035 100644
@@ -204,3 +204,5 @@ ifeq ($(CONFIG_PCI), y)
 obj-$(CONFIG_KVM) += ivshmem.o
 obj-$(CONFIG_LINUX) += vfio_pci.o
 endif
+
+$(obj)/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS) 
ui/Makefile.objs +5 -0
index adc07be..fd339d2 100644
@@ -12,3 +12,8 @@ common-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
 common-obj-$(CONFIG_COCOA) += cocoa.o
 common-obj-$(CONFIG_CURSES) += curses.o
 common-obj-$(CONFIG_VNC) += $(vnc-obj-y)
+
+$(obj)/sdl.o $(obj)/sdl_zoom.o: QEMU_CFLAGS += $(SDL_CFLAGS) 
+$(obj)/vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
+
+$(obj)/cocoa.o: $(SRC_PATH)/$(obj)/cocoa.m
Signature · 1 line
1.8.0.2
#6 lore raw

PATCH 6/32 build: create ldscripts/

In reply to Paolo Bonzini
---
 configure                          | 2 +-
 alpha.ld => ldscripts/alpha.ld     | 0
 arm.ld => ldscripts/arm.ld         | 0
 hppa.ld => ldscripts/hppa.ld       | 0
 i386.ld => ldscripts/i386.ld       | 0
 ia64.ld => ldscripts/ia64.ld       | 0
 m68k.ld => ldscripts/m68k.ld       | 0
 mips.ld => ldscripts/mips.ld       | 0
 ppc.ld => ldscripts/ppc.ld         | 0
 ppc64.ld => ldscripts/ppc64.ld     | 0
 s390.ld => ldscripts/s390.ld       | 0
 sparc.ld => ldscripts/sparc.ld     | 0
 sparc64.ld => ldscripts/sparc64.ld | 0
 x86_64.ld => ldscripts/x86_64.ld   | 0
 14 files changed, 1 insertion(+), 1 deletion(-)
 rename alpha.ld => ldscripts/alpha.ld (100%)
 rename arm.ld => ldscripts/arm.ld (100%)
 rename hppa.ld => ldscripts/hppa.ld (100%)
 rename i386.ld => ldscripts/i386.ld (100%)
 rename ia64.ld => ldscripts/ia64.ld (100%)
 rename m68k.ld => ldscripts/m68k.ld (100%)
 rename mips.ld => ldscripts/mips.ld (100%)
 rename ppc.ld => ldscripts/ppc.ld (100%)
 rename ppc64.ld => ldscripts/ppc64.ld (100%)
 rename s390.ld => ldscripts/s390.ld (100%)
 rename sparc.ld => ldscripts/sparc.ld (100%)
 rename sparc64.ld => ldscripts/sparc64.ld (100%)
 rename x86_64.ld => ldscripts/x86_64.ld (100%)
configure +1 -1
index e9ad1b1..d2ad181 100755
@@ -4158,7 +4158,7 @@ fi
 if test "$ARCH" = "tci"; then
   linker_script=""
 else
-  linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"
+  linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld"
 fi
 
 if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
ldscripts/alpha.ld renamed from alpha.ld +0 -0
similarity index 100%
rename from alpha.ld
rename to ldscripts/alpha.ld
ldscripts/arm.ld renamed from arm.ld +0 -0
similarity index 100%
rename from arm.ld
rename to ldscripts/arm.ld
ldscripts/hppa.ld renamed from hppa.ld +0 -0
similarity index 100%
rename from hppa.ld
rename to ldscripts/hppa.ld
ldscripts/i386.ld renamed from i386.ld +0 -0
similarity index 100%
rename from i386.ld
rename to ldscripts/i386.ld
ldscripts/ia64.ld renamed from ia64.ld +0 -0
similarity index 100%
rename from ia64.ld
rename to ldscripts/ia64.ld
ldscripts/m68k.ld renamed from m68k.ld +0 -0
similarity index 100%
rename from m68k.ld
rename to ldscripts/m68k.ld
ldscripts/mips.ld renamed from mips.ld +0 -0
similarity index 100%
rename from mips.ld
rename to ldscripts/mips.ld
ldscripts/ppc.ld renamed from ppc.ld +0 -0
similarity index 100%
rename from ppc.ld
rename to ldscripts/ppc.ld
ldscripts/ppc64.ld renamed from ppc64.ld +0 -0
similarity index 100%
rename from ppc64.ld
rename to ldscripts/ppc64.ld
ldscripts/s390.ld renamed from s390.ld +0 -0
similarity index 100%
rename from s390.ld
rename to ldscripts/s390.ld
ldscripts/sparc.ld renamed from sparc.ld +0 -0
similarity index 100%
rename from sparc.ld
rename to ldscripts/sparc.ld
ldscripts/sparc64.ld renamed from sparc64.ld +0 -0
similarity index 100%
rename from sparc64.ld
rename to ldscripts/sparc64.ld
ldscripts/x86_64.ld renamed from x86_64.ld +0 -0
similarity index 100%
rename from x86_64.ld
rename to ldscripts/x86_64.ld
Signature · 1 line
1.8.0.2
#7 lore raw

PATCH 7/32 build: kill libdis, move disassemblers to disas/

In reply to Paolo Bonzini
---
 .gitignore                             |  1 +
 Makefile                               |  9 ++++---
 Makefile.dis                           | 20 ---------------
 Makefile.objs                          | 19 +++-----------
 Makefile.target                        |  5 +---
 bsd-user/elfload.c                     |  2 +-
 configure                              | 45 +++++++++++++---------------------
 cpu-exec.c                             |  2 +-
 disas.c                                |  4 +--
 disas/Makefile.objs                    | 16 ++++++++++++
 alpha-dis.c => disas/alpha.c           |  2 +-
 arm-dis.c => disas/arm.c               |  2 +-
 cris-dis.c => disas/cris.c             |  2 +-
 hppa-dis.c => disas/hppa.c             |  2 +-
 i386-dis.c => disas/i386.c             |  2 +-
 ia64-dis.c => disas/ia64.c             |  2 +-
 lm32-dis.c => disas/lm32.c             |  2 +-
 m68k-dis.c => disas/m68k.c             |  2 +-
 microblaze-dis.c => disas/microblaze.c |  2 +-
 mips-dis.c => disas/mips.c             |  2 +-
 ppc-dis.c => disas/ppc.c               |  2 +-
 s390-dis.c => disas/s390.c             |  2 +-
 sh4-dis.c => disas/sh4.c               |  2 +-
 sparc-dis.c => disas/sparc.c           |  2 +-
 tci-dis.c => disas/tci.c               |  2 +-
 hw/loader.c                            |  2 +-
 dis-asm.h => include/disas/bfd.h       |  0
 disas.h => include/disas/disas.h       |  0
 linux-user/elfload.c                   |  2 +-
 monitor.c                              |  2 +-
 qemu-log.h                             |  2 +-
 target-alpha/translate.c               |  2 +-
 target-arm/translate.c                 |  2 +-
 target-cris/translate.c                |  2 +-
 target-i386/translate.c                |  2 +-
 target-lm32/translate.c                |  2 +-
 target-m68k/translate.c                |  2 +-
 target-microblaze/helper.c             |  2 +-
 target-microblaze/translate.c          |  2 +-
 target-mips/translate.c                |  2 +-
 target-openrisc/translate.c            |  2 +-
 target-ppc/translate.c                 |  2 +-
 target-ppc/translate_init.c            |  2 +-
 target-s390x/translate.c               |  2 +-
 target-sh4/translate.c                 |  2 +-
 target-sparc/translate.c               |  2 +-
 target-unicore32/translate.c           |  2 +-
 target-xtensa/translate.c              |  2 +-
 translate-all.c                        |  2 +-
 user-exec.c                            |  2 +-
 vl.c                                   |  2 +-
 51 files changed, 86 insertions(+), 115 deletions(-)
 delete mode 100644 Makefile.dis
 create mode 100644 disas/Makefile.objs
 rename alpha-dis.c => disas/alpha.c (99%)
 rename arm-dis.c => disas/arm.c (99%)
 rename cris-dis.c => disas/cris.c (99%)
 rename hppa-dis.c => disas/hppa.c (99%)
 rename i386-dis.c => disas/i386.c (99%)
 rename ia64-dis.c => disas/ia64.c (99%)
 rename lm32-dis.c => disas/lm32.c (99%)
 rename m68k-dis.c => disas/m68k.c (99%)
 rename microblaze-dis.c => disas/microblaze.c (99%)
 rename mips-dis.c => disas/mips.c (99%)
 rename ppc-dis.c => disas/ppc.c (99%)
 rename s390-dis.c => disas/s390.c (99%)
 rename sh4-dis.c => disas/sh4.c (99%)
 rename sparc-dis.c => disas/sparc.c (99%)
 rename tci-dis.c => disas/tci.c (98%)
 rename dis-asm.h => include/disas/bfd.h (100%)
 rename disas.h => include/disas/disas.h (100%)
.gitignore +1 -0
index bd6ba1c..ca52f01 100644
@@ -1,5 +1,6 @@
 config-devices.*
 config-all-devices.*
+config-all-disas.*
 config-host.*
 config-target.*
 trace.h
Makefile +5 -4
index 5810718..da47cb8 100644
@@ -99,6 +99,7 @@ defconfig:
 	rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
 
 -include config-all-devices.mak
+-include config-all-disas.mak
 
 all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all
 
@@ -129,9 +130,9 @@ $(SRC_PATH)/pixman/configure:
 
 $(SUBDIR_RULES): libqemustub.a
 
-$(filter %-softmmu,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(common-obj-y) $(extra-obj-y) subdir-libdis
+$(filter %-softmmu,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(common-obj-y) $(extra-obj-y)
 
-$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) subdir-libdis-user subdir-libuser
+$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) subdir-libuser
 
 ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
 romsubdir-%:
@@ -223,7 +224,7 @@ $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
 
 qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a
 
-QEMULIBS=libuser libdis libdis-user
+QEMULIBS=libuser
 
 clean:
 # avoid old build problems by removing potentially incorrect old files
@@ -255,7 +256,7 @@ qemu-%.tar.bz2:
 
 distclean: clean
 	rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi
-	rm -f config-all-devices.mak
+	rm -f config-all-devices.mak config-all-disas.mak
 	rm -f roms/seabios/config.mak roms/vgabios/config.mak
 	rm -f qemu-doc.info qemu-doc.aux qemu-doc.cp qemu-doc.cps qemu-doc.dvi
 	rm -f qemu-doc.fn qemu-doc.fns qemu-doc.info qemu-doc.ky qemu-doc.kys
Makefile.dis deleted +0 -20
deleted file mode 100644
index 2cfec6a..0000000
@@ -1,20 +0,0 @@
-# Makefile for disassemblers.
-
-include ../config-host.mak
-include config.mak
-include $(SRC_PATH)/rules.mak
-
-.PHONY: all
-
-$(call set-vpath, $(SRC_PATH))
-
-QEMU_CFLAGS+=-I..
-
-include $(SRC_PATH)/Makefile.objs
-
-all: $(libdis-y)
-# Dummy command so that make thinks it has done something
-	@true
-
-clean:
-	rm -f *.o *.d *.a *~
Makefile.objs +3 -16
index 20fb2c5..3248eaf 100644
@@ -127,24 +127,10 @@ user-obj-y += $(trace-obj-y)
 user-obj-y += qom/
 
 ######################################################################
-# libdis
+# disassemblers
 # NOTE: the disassembler code is only needed for debugging
 
-libdis-y =
-libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o
-libdis-$(CONFIG_ARM_DIS) += arm-dis.o
-libdis-$(CONFIG_CRIS_DIS) += cris-dis.o
-libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o
-libdis-$(CONFIG_I386_DIS) += i386-dis.o
-libdis-$(CONFIG_IA64_DIS) += ia64-dis.o
-libdis-$(CONFIG_M68K_DIS) += m68k-dis.o
-libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o
-libdis-$(CONFIG_MIPS_DIS) += mips-dis.o
-libdis-$(CONFIG_PPC_DIS) += ppc-dis.o
-libdis-$(CONFIG_S390_DIS) += s390-dis.o
-libdis-$(CONFIG_SH4_DIS) += sh4-dis.o
-libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
-libdis-$(CONFIG_LM32_DIS) += lm32-dis.o
+universal-obj-y += disas/
 
 ######################################################################
 # trace
@@ -252,5 +238,6 @@ nested-vars += \
 	block-obj-y \
 	user-obj-y \
 	common-obj-y \
+	universal-obj-y \
 	extra-obj-y
 dummy := $(call unnest-vars)
Makefile.target +1 -4
index 927347b..f353651 100644
@@ -70,9 +70,8 @@ obj-y = exec.o translate-all.o cpu-exec.o
 obj-y += tcg/tcg.o tcg/optimize.o
 obj-$(CONFIG_TCG_INTERPRETER) += tci.o
 obj-y += fpu/softfloat.o
-obj-y += disas.o
-obj-$(CONFIG_TCI_DIS) += tci-dis.o
 obj-y += target-$(TARGET_BASE_ARCH)/
+obj-y += disas.o
 obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
 
 tci-dis.o: QEMU_CFLAGS += -I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/tci
@@ -156,11 +155,9 @@ all-obj-y += $(addprefix ../, $(universal-obj-y))
 
 ifdef CONFIG_SOFTMMU
 all-obj-y += $(addprefix ../, $(common-obj-y))
-all-obj-y += $(addprefix ../libdis/, $(libdis-y))
 all-obj-y += $(addprefix ../, $(trace-obj-y))
 else
 all-obj-y += $(addprefix ../libuser/, $(user-obj-y))
-all-obj-y += $(addprefix ../libdis-user/, $(libdis-y))
 endif #CONFIG_LINUX_USER
 
 ifdef QEMU_PROGW
bsd-user/elfload.c +1 -1
index 55b2136..a6cd3ab 100644
@@ -10,7 +10,7 @@
 #include <string.h>
 
 #include "qemu.h"
-#include "disas.h"
+#include "disas/disas.h"
 
 #ifdef _ARCH_PPC64
 #undef ARCH_DLINFO
configure +17 -28

111 lines not on this page · raw message

cpu-exec.c +1 -1
index 904ee73..b5a32b8 100644
@@ -18,7 +18,7 @@
  */
 #include "config.h"
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg.h"
 #include "qemu-barrier.h"
 #include "qtest.h"
disas.c +2 -2
index 6da1dd0..8157b96 100644
@@ -1,11 +1,11 @@
 /* General "disassemble this chunk" code.  Used for debugging. */
 #include "config.h"
-#include "dis-asm.h"
+#include "disas/bfd.h"
 #include "elf.h"
 #include <errno.h>
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 
 typedef struct CPUDebug {
     struct disassemble_info info;
disas/Makefile.objs new file +16 -0
new file mode 100644
index 0000000..9134429
@@ -0,0 +1,16 @@
+universal-obj-$(CONFIG_ALPHA_DIS) += alpha.o
+universal-obj-$(CONFIG_ARM_DIS) += arm.o
+universal-obj-$(CONFIG_CRIS_DIS) += cris.o
+universal-obj-$(CONFIG_HPPA_DIS) += hppa.o
+universal-obj-$(CONFIG_I386_DIS) += i386.o
+universal-obj-$(CONFIG_IA64_DIS) += ia64.o
+universal-obj-$(CONFIG_M68K_DIS) += m68k.o
+universal-obj-$(CONFIG_MICROBLAZE_DIS) += microblaze.o
+universal-obj-$(CONFIG_MIPS_DIS) += mips.o
+universal-obj-$(CONFIG_PPC_DIS) += ppc.o
+universal-obj-$(CONFIG_S390_DIS) += s390.o
+universal-obj-$(CONFIG_SH4_DIS) += sh4.o
+universal-obj-$(CONFIG_SPARC_DIS) += sparc.o
+universal-obj-$(CONFIG_LM32_DIS) += lm32.o
+
+universal-obj-$(CONFIG_TCI_DIS) += tci.o
disas/alpha.c renamed from alpha-dis.c +1 -1
similarity index 99%
rename from alpha-dis.c
rename to disas/alpha.c
index ae331b3..a950b9c 100644
@@ -20,7 +20,7 @@ along with this file; see the file COPYING.  If not, see
 <http://www.gnu.org/licenses/>. */
 
 #include <stdio.h>
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 /* MAX is redefined below, so remove any previous definition. */
 #undef MAX
disas/arm.c renamed from arm-dis.c +1 -1
similarity index 99%
rename from arm-dis.c
rename to disas/arm.c
index 6bc4d71..4927d8a 100644
@@ -22,7 +22,7 @@
 /* Start of qemu specific additions.  Mostly this is stub definitions
    for things we don't care about.  */
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 #define ATTRIBUTE_UNUSED __attribute__((unused))
 #define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n')
 
disas/cris.c renamed from cris-dis.c +1 -1
similarity index 99%
rename from cris-dis.c
rename to disas/cris.c
index 1d174ba..9dfb4e3 100644
@@ -19,7 +19,7 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>. */
 
 #include "qemu-common.h"
-#include "dis-asm.h"
+#include "disas/bfd.h"
 //#include "sysdep.h"
 #include "target-cris/opcode-cris.h"
 //#include "libiberty.h"
disas/hppa.c renamed from hppa-dis.c +1 -1
similarity index 99%
rename from hppa-dis.c
rename to disas/hppa.c
index 420a7d2..c7c8be6 100644
@@ -18,7 +18,7 @@
    You should have received a copy of the GNU General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>. */
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 /* HP PA-RISC SOM object file format:  definitions internal to BFD.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
disas/i386.c renamed from i386-dis.c +1 -1
similarity index 99%
rename from i386-dis.c
rename to disas/i386.c
index c4a81c9..3b006b1 100644
@@ -32,7 +32,7 @@
    the Intel manual for details.  */
 
 #include <stdlib.h>
-#include "dis-asm.h"
+#include "disas/bfd.h"
 /* include/opcode/i386.h r1.78 */
 
 /* opcode/i386.h -- Intel 80386 opcode macros
disas/ia64.c renamed from ia64-dis.c +1 -1
similarity index 99%
rename from ia64-dis.c
rename to disas/ia64.c
index 2a103e6..a8fe26c 100644
@@ -21,7 +21,7 @@
 #include <assert.h>
 #include <string.h>
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 /* ia64.h -- Header file for ia64 opcode table
    Copyright (C) 1998, 1999, 2000, 2002, 2005, 2006
disas/lm32.c renamed from lm32-dis.c +1 -1
similarity index 99%
rename from lm32-dis.c
rename to disas/lm32.c
index 709ed32..a8eefe0 100644
@@ -19,7 +19,7 @@
  */
 
 #include <stdio.h>
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 typedef enum {
     LM32_OP_SRUI = 0, LM32_OP_NORI, LM32_OP_MULI, LM32_OP_SH, LM32_OP_LB,
disas/m68k.c renamed from m68k-dis.c +1 -1
similarity index 99%
rename from m68k-dis.c
rename to disas/m68k.c
index 2b155de..c950241 100644
@@ -5,7 +5,7 @@
 #include <math.h>
 #include <stdio.h>
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 /* **** floatformat.h from sourceware.org CVS 2005-08-14.  */
 /* IEEE floating point support declarations, for GDB, the GNU Debugger.
disas/microblaze.c renamed from microblaze-dis.c +1 -1
similarity index 99%
rename from microblaze-dis.c
rename to disas/microblaze.c
index 16c312f..ec91af3 100644
@@ -582,7 +582,7 @@ char pvr_register_prefix[] = "rpvr";
 
 #endif /* MICROBLAZE_OPC */
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 #include <strings.h>
 
 #define get_field_rd(instr) get_field(instr, RD_MASK, RD_LOW)
disas/mips.c renamed from mips-dis.c +1 -1
similarity index 99%
rename from mips-dis.c
rename to disas/mips.c
index e3a6e0b..2106b57 100644
@@ -19,7 +19,7 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program; if not, see <http://www.gnu.org/licenses/>.  */
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 /* mips.h.  Mips opcode list for GDB, the GNU debugger.
    Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
disas/ppc.c renamed from ppc-dis.c +1 -1
similarity index 99%
rename from ppc-dis.c
rename to disas/ppc.c
index bc98cbe..c149506 100644
@@ -18,7 +18,7 @@ the GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this file; see the file COPYING.  If not,
 see <http://www.gnu.org/licenses/>.  */
-#include "dis-asm.h"
+#include "disas/bfd.h"
 #define BFD_DEFAULT_TARGET_SIZE 64
 
 /* ppc.h -- Header file for PowerPC opcode table
disas/s390.c renamed from s390-dis.c +1 -1
similarity index 99%
rename from s390-dis.c
rename to disas/s390.c
index 8abcdf0..0859dfa 100644
@@ -21,7 +21,7 @@
    02110-1301, USA.  */
 
 #include "qemu-common.h"
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 /* include/opcode/s390.h revision 1.9 */
 /* s390.h -- Header file for S390 opcode table
disas/sh4.c renamed from sh4-dis.c +1 -1
similarity index 99%
rename from sh4-dis.c
rename to disas/sh4.c
index 673bc78..f6cadd5 100644
@@ -16,7 +16,7 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.  */
 
 #include <stdio.h>
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 #define DEFINE_TABLE
 
disas/sparc.c renamed from sparc-dis.c +1 -1
similarity index 99%
rename from sparc-dis.c
rename to disas/sparc.c
index 1d017fa..8eb22e6 100644
@@ -27,7 +27,7 @@
    see <http://www.gnu.org/licenses/>.  */
 
 #include <stdlib.h>
-#include "dis-asm.h"
+#include "disas/bfd.h"
 
 /* The SPARC opcode table (and other related data) is defined in
    the opcodes library in sparc-opc.c.  If you change anything here, make
disas/tci.c renamed from tci-dis.c +1 -1
similarity index 98%
rename from tci-dis.c
rename to disas/tci.c
index 10c411b..a606b63 100644
@@ -17,7 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 #include "tcg/tcg.h"
 
 /* Disassemble TCI bytecode. */
hw/loader.c +1 -1
index ba01ca6..52f0940 100644
@@ -43,7 +43,7 @@
  */
 
 #include "hw.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "monitor.h"
 #include "sysemu.h"
 #include "uboot_image.h"
include/disas/bfd.h renamed from dis-asm.h +0 -0
similarity index 100%
rename from dis-asm.h
rename to include/disas/bfd.h
include/disas/disas.h renamed from disas.h +0 -0
similarity index 100%
rename from disas.h
rename to include/disas/disas.h
linux-user/elfload.c +1 -1
index 1d8bcb4..89db49c 100644
@@ -14,7 +14,7 @@
 #include <time.h>
 
 #include "qemu.h"
-#include "disas.h"
+#include "disas/disas.h"
 
 #ifdef _ARCH_PPC64
 #undef ARCH_DLINFO
monitor.c +1 -1
index a92ab44..bd63768 100644
@@ -41,7 +41,7 @@
 #include "console.h"
 #include "blockdev.h"
 #include "audio/audio.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "balloon.h"
 #include "qemu-timer.h"
 #include "migration.h"
qemu-log.h +1 -1
index 344eca3..58f69cb 100644
@@ -3,7 +3,7 @@
 
 #include <stdarg.h>
 #ifdef NEED_CPU_H
-#include "disas.h"
+#include "disas/disas.h"
 #endif
 
 /* Private global variables, don't use */
target-alpha/translate.c +1 -1
index 71fe1a1..f57c8fd 100644
@@ -18,7 +18,7 @@
  */
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "host-utils.h"
 #include "tcg-op.h"
 
target-arm/translate.c +1 -1
index 3cf3604..10c548d 100644
@@ -25,7 +25,7 @@
 #include <inttypes.h>
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "qemu-log.h"
 
target-cris/translate.c +1 -1
index 60bdc24..2a92727 100644
@@ -24,7 +24,7 @@
  */
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "helper.h"
 #include "mmu.h"
target-i386/translate.c +1 -1
index f394ea6..026201e 100644
@@ -24,7 +24,7 @@
 #include <signal.h>
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 
 #include "helper.h"
target-lm32/translate.c +1 -1
index e131ad1..9683b9a 100644
@@ -18,7 +18,7 @@
  */
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "helper.h"
 #include "tcg-op.h"
 
target-m68k/translate.c +1 -1
index 11defc6..d955c7a 100644
@@ -19,7 +19,7 @@
  */
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "qemu-log.h"
 
target-microblaze/helper.c +1 -1
index efaa123..530e0b5 100644
@@ -198,7 +198,7 @@ void do_interrupt(CPUMBState *env)
             t = (env->sregs[SR_MSR] & (MSR_VM | MSR_UM)) << 1;
 
 #if 0
-#include "disas.h"
+#include "disas/disas.h"
 
 /* Useful instrumentation when debugging interrupt issues in either
    the models or in sw.  */
target-microblaze/translate.c +1 -1
index 6ceff02..5946a5b 100644
@@ -19,7 +19,7 @@
  */
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "helper.h"
 #include "microblaze-decode.h"
target-mips/translate.c +1 -1
index 65e6725..44e7617 100644
@@ -22,7 +22,7 @@
  */
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 
 #include "helper.h"
target-openrisc/translate.c +1 -1
index 9ac999a..2cb9d69 100644
@@ -20,7 +20,7 @@
 
 #include "cpu.h"
 #include "exec-all.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "qemu-common.h"
 #include "qemu-log.h"
target-ppc/translate.c +1 -1
index 653c2fd..8a53105 100644
@@ -19,7 +19,7 @@
  */
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "host-utils.h"
 
target-ppc/translate_init.c +1 -1
index e63627c..984ca9f 100644
@@ -23,7 +23,7 @@
  * inside "#if defined(TODO) ... #endif" statements to make tests easier.
  */
 
-#include "dis-asm.h"
+#include "disas/bfd.h"
 #include "gdbstub.h"
 #include <kvm.h>
 #include "kvm_ppc.h"
target-s390x/translate.c +1 -1
index 787e3c6..6e144a6 100644
@@ -30,7 +30,7 @@
 #endif
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "qemu-log.h"
 
target-sh4/translate.c +1 -1
index 86493e1..41d53e5 100644
@@ -21,7 +21,7 @@
 //#define SH4_SINGLE_STEP
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 
 #include "helper.h"
target-sparc/translate.c +1 -1
index 5859f2e..88802b8 100644
@@ -25,7 +25,7 @@
 #include <inttypes.h>
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "helper.h"
 #include "tcg-op.h"
 
target-unicore32/translate.c +1 -1
index 3951758..8c49f4d 100644
@@ -15,7 +15,7 @@
 #include <inttypes.h>
 
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "qemu-log.h"
 
target-xtensa/translate.c +1 -1
index 5d8762c..4e81cbd 100644
@@ -32,7 +32,7 @@
 
 #include "cpu.h"
 #include "exec-all.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg-op.h"
 #include "qemu-log.h"
 #include "sysemu.h"
translate-all.c +1 -1
index 164870a..bbe06db 100644
@@ -33,7 +33,7 @@
 #include "qemu-common.h"
 #define NO_CPU_IO_DEFS
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg.h"
 #include "qemu-timer.h"
 #include "memory.h"
user-exec.c +1 -1
index 1185cb0..63fb053 100644
@@ -18,7 +18,7 @@
  */
 #include "config.h"
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg.h"
 
 #undef EAX
vl.c +1 -1
index 3ebf01f..571a49b 100644
@@ -154,7 +154,7 @@ int main(int argc, char **argv)
 #endif
 #include "qtest.h"
 
-#include "disas.h"
+#include "disas/disas.h"
 
 #include "qemu_socket.h"
 
Signature · 1 line
1.8.0.2
#8 lore raw

PATCH 8/32 build: kill libuser

In reply to Paolo Bonzini
---
 Makefile        |  8 +++-----
 Makefile.objs   |  3 ++-
 Makefile.target |  3 +--
 Makefile.user   | 24 ------------------------
 configure       |  3 ---
 5 files changed, 6 insertions(+), 35 deletions(-)
 delete mode 100644 Makefile.user
Makefile +3 -5
index da47cb8..0c6ad1e 100644
@@ -132,7 +132,7 @@ $(SUBDIR_RULES): libqemustub.a
 
 $(filter %-softmmu,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(common-obj-y) $(extra-obj-y)
 
-$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) subdir-libuser
+$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(user-obj-y)
 
 ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
 romsubdir-%:
@@ -224,8 +224,6 @@ $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
 
 qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a
 
-QEMULIBS=libuser
-
 clean:
 # avoid old build problems by removing potentially incorrect old files
 	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
@@ -242,7 +240,7 @@ clean:
 	rm -rf qapi-generated
 	rm -rf qga/qapi-generated
 	$(MAKE) -C tests/tcg clean
-	for d in $(ALL_SUBDIRS) $(QEMULIBS) libcacard; do \
+	for d in $(ALL_SUBDIRS) libcacard; do \
 	if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
 	rm -f $$d/qemu-options.def; \
         done
@@ -265,7 +263,7 @@ distclean: clean
 	rm -f config.log
 	rm -f linux-headers/asm
 	rm -f qemu-tech.info qemu-tech.aux qemu-tech.cp qemu-tech.dvi qemu-tech.fn qemu-tech.info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg qemu-tech.toc qemu-tech.tp qemu-tech.vr
-	for d in $(TARGET_DIRS) $(QEMULIBS); do \
+	for d in $(TARGET_DIRS); do \
 	rm -rf $$d || exit 1 ; \
         done
 	if test -f pixman/config.log; then make -C pixman distclean; fi
Makefile.objs +2 -1
index 3248eaf..986f085 100644
@@ -123,7 +123,6 @@ user-obj-y += tcg-runtime.o host-utils.o
 user-obj-y += cache-utils.o
 user-obj-y += module.o
 user-obj-y += qemu-user.o
-user-obj-y += $(trace-obj-y)
 user-obj-y += qom/
 
 ######################################################################
@@ -196,6 +195,8 @@ trace-obj-y += trace/control.o
 
 $(trace-obj-y): $(GENERATED_HEADERS)
 
+universal-obj-y += $(trace-obj-y)
+
 ######################################################################
 # smartcard
 
Makefile.target +1 -2
index f353651..8bbad38 100644
@@ -155,9 +155,8 @@ all-obj-y += $(addprefix ../, $(universal-obj-y))
 
 ifdef CONFIG_SOFTMMU
 all-obj-y += $(addprefix ../, $(common-obj-y))
-all-obj-y += $(addprefix ../, $(trace-obj-y))
 else
-all-obj-y += $(addprefix ../libuser/, $(user-obj-y))
+all-obj-y += $(addprefix ../, $(user-obj-y))
 endif #CONFIG_LINUX_USER
 
 ifdef QEMU_PROGW
Makefile.user deleted +0 -24
deleted file mode 100644
index 9302d33..0000000
@@ -1,24 +0,0 @@
-# Makefile for qemu target independent user files.
-
-include ../config-host.mak
-include $(SRC_PATH)/rules.mak
--include config.mak
-
-.PHONY: all
-
-$(call set-vpath, $(SRC_PATH))
-
-QEMU_CFLAGS+=-I..
-QEMU_CFLAGS += -I$(SRC_PATH)/include
-QEMU_CFLAGS += -DCONFIG_USER_ONLY
-
-include $(SRC_PATH)/Makefile.objs
-
-all: $(user-obj-y)
-# Dummy command so that make thinks it has done something
-	@true
-
-clean:
-	for d in . trace; do \
-	rm -f $$d/*.o $$d/*.d $$d/*.a $$d/*~; \
-	done
configure +0 -3
index f180e17..4d0e116 100755
@@ -4212,9 +4212,6 @@ for rom in seabios vgabios ; do
     echo "LD=$ld" >> $config_mak
 done
 
-d=libuser
-symlink "$source_path/Makefile.user" "$d/Makefile"
-
 if test "$docs" = "yes" ; then
   mkdir -p QMP
 fi
Signature · 1 line
1.8.0.2
#9 lore raw

PATCH 9/32 janitor: do not rely on indirect inclusions of or from qemu-char.h

In reply to Paolo Bonzini

Various header files rely on qemu-char.h including qemu-config.h or main-loop.h, but they really do not need qemu-char.h at all (particularly interesting is the case of the block layer!). Clean this up, and also add missing inclusions of qemu-char.h itself.

---
 arch_init.c            | 1 +
 audio/alsaaudio.c      | 1 +
 audio/ossaudio.c       | 1 +
 block/blkdebug.c       | 1 +
 block/iscsi.c          | 1 +
 bt-host.c              | 1 +
 bt-vhci.c              | 1 +
 event_notifier-posix.c | 1 +
 exec.c                 | 1 +
 hw/arm_boot.c          | 1 +
 hw/dma.c               | 1 +
 hw/fw_cfg.c            | 1 +
 hw/jazz_led.c          | 1 +
 hw/mac_dbdma.c         | 1 +
 hw/puv3.c              | 2 ++
 hw/qdev-monitor.c      | 1 +
 hw/qdev-properties.c   | 1 +
 hw/s390x/sclpconsole.c | 1 +
 hw/tcx.c               | 1 +
 hw/usb/dev-network.c   | 1 +
 net.c                  | 1 +
 qemu-config.h          | 1 +
 spice-qemu-char.c      | 1 +
 target-i386/kvm.c      | 1 +
 24 files changed, 25 insertions(+)
arch_init.c +1 -0
index 1645f30..ef866cd 100644
@@ -46,6 +46,7 @@
 #include "exec-memory.h"
 #include "hw/pcspk.h"
 #include "qemu/page_cache.h"
+#include "qemu-config.h"
 #include "qmp-commands.h"
 #include "trace.h"
 
audio/alsaaudio.c +1 -0
index cb45b49..564d632 100644
@@ -23,6 +23,7 @@
  */
 #include <alsa/asoundlib.h>
 #include "qemu-common.h"
+#include "main-loop.h"
 #include "qemu-char.h"
 #include "audio.h"
 
audio/ossaudio.c +1 -0
index df51b7c..45abe39 100644
@@ -31,6 +31,7 @@
 #include <sys/soundcard.h>
 #endif
 #include "qemu-common.h"
+#include "main-loop.h"
 #include "host-utils.h"
 #include "qemu-char.h"
 #include "audio.h"
block/blkdebug.c +1 -0
index 294e983..65556e7 100644
@@ -23,6 +23,7 @@
  */
 
 #include "qemu-common.h"
+#include "qemu-config.h"
 #include "block_int.h"
 #include "module.h"
 
block/iscsi.c +1 -0
index c0b70b3..33b93d8 100644
@@ -27,6 +27,7 @@
 #include <poll.h>
 #include <arpa/inet.h>
 #include "qemu-common.h"
+#include "qemu-config.h"
 #include "qemu-error.h"
 #include "block_int.h"
 #include "trace.h"
bt-host.c +1 -0
index 0d3ad28..8b47370 100644
@@ -21,6 +21,7 @@
 #include "qemu-char.h"
 #include "net.h"
 #include "bt-host.h"
+#include "main-loop.h"
 
 #ifndef _WIN32
 # include <errno.h>
bt-vhci.c +1 -0
index bbc1029..878460a 100644
@@ -21,6 +21,7 @@
 #include "qemu-char.h"
 #include "net.h"
 #include "hw/bt.h"
+#include "main-loop.h"
 
 #define VHCI_DEV	"/dev/vhci"
 #define VHCI_UDEV	"/dev/hci_vhci"
event_notifier-posix.c +1 -0
index 6f3239a..f0bd839 100644
@@ -13,6 +13,7 @@
 #include "qemu-common.h"
 #include "event_notifier.h"
 #include "qemu-char.h"
+#include "main-loop.h"
 
 #ifdef CONFIG_EVENTFD
 #include <sys/eventfd.h>
exec.c +1 -0
index 4c1246a..9860841 100644
@@ -33,6 +33,7 @@
 #include "kvm.h"
 #include "hw/xen.h"
 #include "qemu-timer.h"
+#include "qemu-config.h"
 #include "memory.h"
 #include "dma.h"
 #include "exec-memory.h"
hw/arm_boot.c +1 -0
index ec3b8d5..63ff559 100644
@@ -15,6 +15,7 @@
 #include "loader.h"
 #include "elf.h"
 #include "device_tree.h"
+#include "qemu-config.h"
 
 #define KERNEL_ARGS_ADDR 0x100
 #define KERNEL_LOAD_ADDR 0x00010000
hw/dma.c +1 -0
index c2d7b21..364f54d 100644
@@ -23,6 +23,7 @@
  */
 #include "hw.h"
 #include "isa.h"
+#include "main-loop.h"
 
 /* #define DEBUG_DMA */
 
hw/fw_cfg.c +1 -0
index 2b92cda..7b0e50f 100644
@@ -27,6 +27,7 @@
 #include "fw_cfg.h"
 #include "sysbus.h"
 #include "qemu-error.h"
+#include "qemu-config.h"
 
 /* debug firmware config */
 //#define DEBUG_FW_CFG
hw/jazz_led.c +1 -0
index 640e75e..09c7742 100644
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu-common.h"
 #include "console.h"
 #include "pixel_ops.h"
 #include "trace.h"
hw/mac_dbdma.c +1 -0
index e551156..41eee50 100644
@@ -39,6 +39,7 @@
 #include "hw.h"
 #include "isa.h"
 #include "mac_dbdma.h"
+#include "main-loop.h"
 
 /* debug DBDMA */
 //#define DEBUG_DBDMA
hw/puv3.c +2 -0
index 3d77349..6f89c44 100644
@@ -8,6 +8,8 @@
  * published by the Free Software Foundation, or any later version.
  * See the COPYING file in the top-level directory.
  */
+
+#include "qemu-common.h"
 #include "console.h"
 #include "elf.h"
 #include "exec-memory.h"
hw/qdev-monitor.c +1 -0
index a1b4d6a..5aaf74b 100644
@@ -21,6 +21,7 @@
 #include "monitor.h"
 #include "qmp-commands.h"
 #include "arch_init.h"
+#include "qemu-config.h"
 
 /*
  * Aliases were a bad idea from the start.  Let's keep them
hw/qdev-properties.c +1 -0
index 81d901c..b9cd3c0 100644
@@ -5,6 +5,7 @@
 #include "hw/block-common.h"
 #include "net/hub.h"
 #include "qapi/qapi-visit-core.h"
+#include "qemu-char.h"
 
 void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)
 {
hw/s390x/sclpconsole.c +1 -0
index fece878..9ad297c 100644
@@ -17,6 +17,7 @@
 
 #include "sclp.h"
 #include "event-facility.h"
+#include "qemu-char.h"
 
 typedef struct ASCIIConsoleData {
     EventBufferHeader ebh;
hw/tcx.c +1 -0
index 7aee2a9..a66fbee 100644
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu-common.h"
 #include "console.h"
 #include "pixel_ops.h"
 #include "sysbus.h"
hw/usb/dev-network.c +1 -0
index 30cb033..0552e6f 100644
@@ -28,6 +28,7 @@
 #include "hw/usb/desc.h"
 #include "net.h"
 #include "qemu-queue.h"
+#include "qemu-config.h"
 #include "sysemu.h"
 #include "iov.h"
 
net.c +1 -0
index e8ae13e..4f3d642 100644
@@ -32,6 +32,7 @@
 #include "monitor.h"
 #include "qemu-common.h"
 #include "qemu_socket.h"
+#include "qemu-config.h"
 #include "qmp-commands.h"
 #include "hw/qdev.h"
 #include "iov.h"
qemu-config.h +1 -0
index 812c4c5..eb50eca 100644
@@ -4,6 +4,7 @@
 #include <stdio.h>
 #include "qemu-option.h"
 #include "error.h"
+#include "qemu-option.h"
 
 extern QemuOptsList qemu_fsdev_opts;
 extern QemuOptsList qemu_virtfs_opts;
spice-qemu-char.c +1 -0
index 09aa22d..5f95c93 100644
@@ -1,6 +1,7 @@
 #include "config-host.h"
 #include "trace.h"
 #include "ui/qemu-spice.h"
+#include "qemu-char.h"
 #include <spice.h>
 #include <spice-experimental.h>
 
target-i386/kvm.c +1 -0
index 0901589..824930c 100644
@@ -27,6 +27,7 @@
 #include "cpu.h"
 #include "gdbstub.h"
 #include "host-utils.h"
+#include "qemu-config.h"
 #include "hw/pc.h"
 #include "hw/apic.h"
 #include "ioport.h"
Signature · 1 line
1.8.0.2
#10 lore raw

PATCH 10/32 janitor: do not include qemu-char everywhere

In reply to Paolo Bonzini

Touching char/char.h basically causes the whole of QEMU to be rebuilt. Avoid this, it is usually unnecessary.

---
 audio/alsaaudio.c        | 1 -
 audio/ossaudio.c         | 1 -
 block/raw-posix.c        | 1 -
 bt-host.c                | 1 -
 bt-vhci.c                | 1 -
 buffered_file.c          | 1 -
 console.c                | 1 +
 console.h                | 1 -
 hmp.c                    | 1 +
 hw/9pfs/virtio-9p-coth.c | 1 -
 hw/ivshmem.c             | 1 +
 hw/spapr_hcall.c         | 2 --
 hw/strongarm.c           | 1 +
 hw/xen_disk.c            | 1 -
 hw/xen_nic.c             | 1 -
 hw/xilinx_axidma.c       | 1 -
 hw/xilinx_axienet.c      | 1 -
 hw/xtensa_lx60.c         | 1 +
 iohandler.c              | 1 -
 migration-exec.c         | 1 -
 migration-fd.c           | 1 -
 migration-tcp.c          | 1 -
 migration-unix.c         | 1 -
 monitor.h                | 1 -
 net/slirp.c              | 1 +
 net/socket.c             | 1 -
 net/tap.c                | 1 -
 net/vde.c                | 1 -
 qmp.c                    | 1 +
 savevm.c                 | 1 -
 ui/qemu-spice.h          | 1 -
 31 files changed, 7 insertions(+), 25 deletions(-)
audio/alsaaudio.c +0 -1
index 564d632..cd553c2 100644
@@ -24,7 +24,6 @@
 #include <alsa/asoundlib.h>
 #include "qemu-common.h"
 #include "main-loop.h"
-#include "qemu-char.h"
 #include "audio.h"
 
 #if QEMU_GNUC_PREREQ(4, 3)
audio/ossaudio.c +0 -1
index 45abe39..8249a00 100644
@@ -33,7 +33,6 @@
 #include "qemu-common.h"
 #include "main-loop.h"
 #include "host-utils.h"
-#include "qemu-char.h"
 #include "audio.h"
 
 #define AUDIO_CAP "oss"
block/raw-posix.c +0 -1
index abfedbe..48eff2f 100644
@@ -23,7 +23,6 @@
  */
 #include "qemu-common.h"
 #include "qemu-timer.h"
-#include "qemu-char.h"
 #include "qemu-log.h"
 #include "block_int.h"
 #include "module.h"
bt-host.c +0 -1
index 8b47370..3118645 100644
@@ -18,7 +18,6 @@
  */
 
 #include "qemu-common.h"
-#include "qemu-char.h"
 #include "net.h"
 #include "bt-host.h"
 #include "main-loop.h"
bt-vhci.c +0 -1
index 878460a..6fecb66 100644
@@ -18,7 +18,6 @@
  */
 
 #include "qemu-common.h"
-#include "qemu-char.h"
 #include "net.h"
 #include "hw/bt.h"
 #include "main-loop.h"
buffered_file.c +0 -1
index bd0f61d..f13443e 100644
@@ -16,7 +16,6 @@
 #include "qemu-common.h"
 #include "hw/hw.h"
 #include "qemu-timer.h"
-#include "qemu-char.h"
 #include "buffered_file.h"
 
 //#define DEBUG_BUFFERED_FILE
console.c +1 -0
index 048b48e..9ac7b28 100644
@@ -25,6 +25,7 @@
 #include "console.h"
 #include "qemu-timer.h"
 #include "qmp-commands.h"
+#include "qemu-char.h"
 
 //#define DEBUG_CONSOLE
 #define DEFAULT_BACKSCROLL 512
console.h +0 -1
index edb1950..33354e4 100644
@@ -1,7 +1,6 @@
 #ifndef CONSOLE_H
 #define CONSOLE_H
 
-#include "qemu-char.h"
 #include "qemu-pixman.h"
 #include "qdict.h"
 #include "notify.h"
hmp.c +1 -0
index 180ba2b..873962f 100644
@@ -15,6 +15,7 @@
 
 #include "hmp.h"
 #include "net.h"
+#include "qemu-char.h"
 #include "qemu-option.h"
 #include "qemu-timer.h"
 #include "qmp-commands.h"
hw/9pfs/virtio-9p-coth.c +0 -1
index 25556cc..9368df7 100644
@@ -12,7 +12,6 @@
  *
  */
 
-#include "qemu-char.h"
 #include "fsdev/qemu-fsdev.h"
 #include "qemu-thread.h"
 #include "qemu-coroutine.h"
hw/ivshmem.c +1 -0
index cf64f32..5c648d9 100644
@@ -24,6 +24,7 @@
 #include "migration.h"
 #include "qerror.h"
 #include "event_notifier.h"
+#include "qemu-char.h"
 
 #include <sys/mman.h>
 #include <sys/types.h>
hw/spapr_hcall.c +0 -2
index 63cadb8..1fac362 100644
@@ -1,8 +1,6 @@
 #include "sysemu.h"
 #include "cpu.h"
-#include "qemu-char.h"
 #include "sysemu.h"
-#include "qemu-char.h"
 #include "helper_regs.h"
 #include "hw/spapr.h"
 
hw/strongarm.c +1 -0
index 4385515..44bec34 100644
@@ -30,6 +30,7 @@
 #include "strongarm.h"
 #include "qemu-error.h"
 #include "arm-misc.h"
+#include "qemu-char.h"
 #include "sysemu.h"
 #include "ssi.h"
 
hw/xen_disk.c +0 -1
index e6bb2f2..423b580 100644
@@ -36,7 +36,6 @@
 #include <sys/uio.h>
 
 #include "hw.h"
-#include "qemu-char.h"
 #include "xen_backend.h"
 #include "xen_blkif.h"
 #include "blockdev.h"
hw/xen_nic.c +0 -1
index cf7d559..dadacb1 100644
@@ -39,7 +39,6 @@
 #include "net.h"
 #include "net/checksum.h"
 #include "net/util.h"
-#include "qemu-char.h"
 #include "xen_backend.h"
 
 #include <xen/io/netif.h>
hw/xilinx_axidma.c +0 -1
index 4575da1..2fd6068 100644
@@ -23,7 +23,6 @@
  */
 
 #include "sysbus.h"
-#include "qemu-char.h"
 #include "qemu-timer.h"
 #include "ptimer.h"
 #include "qemu-log.h"
hw/xilinx_axienet.c +0 -1
index f2e3bf1..c859fde 100644
@@ -23,7 +23,6 @@
  */
 
 #include "sysbus.h"
-#include "qemu-char.h"
 #include "qemu-log.h"
 #include "net.h"
 #include "net/checksum.h"
hw/xtensa_lx60.c +1 -0
index 4c42edc..bc10d31 100644
@@ -36,6 +36,7 @@
 #include "sysbus.h"
 #include "flash.h"
 #include "blockdev.h"
+#include "qemu-char.h"
 #include "xtensa_bootparam.h"
 
 typedef struct LxBoardDesc {
iohandler.c +0 -1
index 60460a6..258f42d 100644
@@ -24,7 +24,6 @@
 
 #include "config-host.h"
 #include "qemu-common.h"
-#include "qemu-char.h"
 #include "qemu-queue.h"
 #include "qemu-aio.h"
 #include "main-loop.h"
migration-exec.c +0 -1
index 2b6fcb4..b4a3ca3 100644
@@ -18,7 +18,6 @@
 #include "qemu-common.h"
 #include "qemu_socket.h"
 #include "migration.h"
-#include "qemu-char.h"
 #include "buffered_file.h"
 #include "block.h"
 #include <sys/types.h>
migration-fd.c +0 -1
index 5fe28e0..6d42287 100644
@@ -17,7 +17,6 @@
 #include "qemu_socket.h"
 #include "migration.h"
 #include "monitor.h"
-#include "qemu-char.h"
 #include "buffered_file.h"
 #include "block.h"
 #include "qemu_socket.h"
migration-tcp.c +0 -1
index 5e855fe..a9bb817 100644
@@ -16,7 +16,6 @@
 #include "qemu-common.h"
 #include "qemu_socket.h"
 #include "migration.h"
-#include "qemu-char.h"
 #include "buffered_file.h"
 #include "block.h"
 
migration-unix.c +0 -1
index dba72b4..e58e8bc 100644
@@ -16,7 +16,6 @@
 #include "qemu-common.h"
 #include "qemu_socket.h"
 #include "migration.h"
-#include "qemu-char.h"
 #include "buffered_file.h"
 #include "block.h"
 
monitor.h +0 -1
index b4ef955..4595c21 100644
@@ -2,7 +2,6 @@
 #define MONITOR_H
 
 #include "qemu-common.h"
-#include "qemu-char.h"
 #include "qerror.h"
 #include "qdict.h"
 #include "block.h"
net/slirp.c +1 -0
index afb52c3..f117412 100644
@@ -35,6 +35,7 @@
 #include "monitor.h"
 #include "qemu_socket.h"
 #include "slirp/libslirp.h"
+#include "qemu-char.h"
 
 static int get_str_sep(char *buf, int buf_size, const char **pp, int sep)
 {
net/socket.c +0 -1
index c01323d..cf309cd 100644
@@ -26,7 +26,6 @@
 #include "net.h"
 #include "clients.h"
 #include "monitor.h"
-#include "qemu-char.h"
 #include "qemu-common.h"
 #include "qemu-error.h"
 #include "qemu-option.h"
net/tap.c +0 -1
index 1abfd44..5ff7893 100644
@@ -37,7 +37,6 @@
 #include "clients.h"
 #include "monitor.h"
 #include "sysemu.h"
-#include "qemu-char.h"
 #include "qemu-common.h"
 #include "qemu-error.h"
 
net/vde.c +0 -1
index 275bda9..cc5a07d 100644
@@ -27,7 +27,6 @@
 
 #include "net.h"
 #include "clients.h"
-#include "qemu-char.h"
 #include "qemu-common.h"
 #include "qemu-option.h"
 
qmp.c +1 -0
index e3a7f0b..e873f0a 100644
@@ -16,6 +16,7 @@
 #include "qemu-common.h"
 #include "sysemu.h"
 #include "qmp-commands.h"
+#include "qemu-char.h"
 #include "ui/qemu-spice.h"
 #include "ui/vnc.h"
 #include "kvm.h"
savevm.c +0 -1
index 5d04d59..f5886ce 100644
@@ -76,7 +76,6 @@
 #include "monitor.h"
 #include "sysemu.h"
 #include "qemu-timer.h"
-#include "qemu-char.h"
 #include "audio/audio.h"
 #include "migration.h"
 #include "qemu_socket.h"
ui/qemu-spice.h +0 -1
index 3299da8..5857b8a 100644
@@ -24,7 +24,6 @@
 
 #include "qemu-option.h"
 #include "qemu-config.h"
-#include "qemu-char.h"
 #include "monitor.h"
 
 extern int using_spice;
Signature · 1 line
1.8.0.2
#11 lore raw

PATCH 11/32 net: move Bluetooth stuff out of net.h

In reply to Paolo Bonzini
---
 bt-host.c              |  1 -
 bt-host.h              | 13 ++++++++++++-
 bt-vhci.c              |  2 +-
 hw/bt-hci-csr.c        |  2 +-
 hw/bt-hci.c            |  2 +-
 hw/bt.c                |  2 +-
 hw/usb/dev-bluetooth.c |  2 +-
 net.h                  | 14 --------------
 8 files changed, 17 insertions(+), 21 deletions(-)
bt-host.c +0 -1
index 3118645..65aaca3 100644
@@ -18,7 +18,6 @@
  */
 
 #include "qemu-common.h"
-#include "net.h"
 #include "bt-host.h"
 #include "main-loop.h"
 
bt-host.h +12 -1
index f1eff65..2bc6d53 100644
@@ -1,9 +1,20 @@
 #ifndef BT_HOST_H
 #define BT_HOST_H
 
-struct HCIInfo;
+/* BT HCI info */
+
+struct HCIInfo {
+    int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr);
+    void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len);
+    void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len);
+    void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len);
+    void *opaque;
+    void (*evt_recv)(void *opaque, const uint8_t *data, int len);
+    void (*acl_recv)(void *opaque, const uint8_t *data, int len);
+};
 
 /* bt-host.c */
 struct HCIInfo *bt_host_hci(const char *id);
+struct HCIInfo *qemu_next_hci(void);
 
 #endif
bt-vhci.c +1 -1
index 6fecb66..13c0e53 100644
@@ -18,7 +18,7 @@
  */
 
 #include "qemu-common.h"
-#include "net.h"
+#include "bt-host.h"
 #include "hw/bt.h"
 #include "main-loop.h"
 
hw/bt-hci-csr.c +1 -1
index 772b677..0faabbb 100644
@@ -22,7 +22,7 @@
 #include "qemu-char.h"
 #include "qemu-timer.h"
 #include "irq.h"
-#include "net.h"
+#include "bt-host.h"
 #include "bt.h"
 
 struct csrhci_s {
hw/bt-hci.c +1 -1
index e54cfd7..d2ad57f 100644
@@ -21,7 +21,7 @@
 #include "qemu-common.h"
 #include "qemu-timer.h"
 #include "usb.h"
-#include "net.h"
+#include "bt-host.h"
 #include "bt.h"
 
 struct bt_hci_s {
hw/bt.c +1 -1
index dc99fc2..3fea098 100644
@@ -18,7 +18,7 @@
  */
 
 #include "qemu-common.h"
-#include "net.h"
+#include "bt-host.h"
 #include "bt.h"
 
 /* Slave implementations can ignore this */
hw/usb/dev-bluetooth.c +1 -1
index 39984f5..4a37442 100644
@@ -21,7 +21,7 @@
 #include "qemu-common.h"
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
-#include "net.h"
+#include "bt-host.h"
 #include "hw/bt.h"
 
 struct USBBtState {
net.h +0 -14
index 04fda1d..1d0816b 100644
@@ -133,20 +133,6 @@ extern int nb_nics;
 extern NICInfo nd_table[MAX_NICS];
 extern int default_net;
 
-/* BT HCI info */
-
-struct HCIInfo {
-    int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr);
-    void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len);
-    void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len);
-    void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len);
-    void *opaque;
-    void (*evt_recv)(void *opaque, const uint8_t *data, int len);
-    void (*acl_recv)(void *opaque, const uint8_t *data, int len);
-};
-
-struct HCIInfo *qemu_next_hci(void);
-
 /* from net.c */
 extern const char *legacy_tftp_prefix;
 extern const char *legacy_bootp_filename;
Signature · 1 line
1.8.0.2
#12 lore raw

PATCH 12/32 net: do not include net.h everywhere

In reply to Paolo Bonzini
---
 arch_init.c          | 1 -
 hw/alpha_sys.h       | 1 -
 hw/device-hotplug.c  | 1 -
 hw/lm32_boards.c     | 1 -
 hw/milkymist-hw.h    | 1 +
 hw/milkymist.c       | 1 -
 hw/s390-virtio-bus.c | 1 -
 hw/spapr_vscsi.c     | 1 -
 hw/virtex_ml507.c    | 1 -
 hw/virtio-net.h      | 1 -
 hw/virtio-pci.c      | 1 -
 hw/virtio-scsi.h     | 1 -
 hw/xen_backend.h     | 1 -
 hw/xen_platform.c    | 1 -
 input.c              | 1 -
 qemu-char.c          | 1 -
 qemu-timer.c         | 1 -
 17 files changed, 1 insertion(+), 16 deletions(-)
arch_init.c +0 -1
index ef866cd..e479a25 100644
@@ -40,7 +40,6 @@
 #include "hw/audiodev.h"
 #include "kvm.h"
 #include "migration.h"
-#include "net.h"
 #include "gdbstub.h"
 #include "hw/smbios.h"
 #include "exec-memory.h"
hw/alpha_sys.h +0 -1
index b1e5258..348f55c 100644
@@ -6,7 +6,6 @@
 #include "pci/pci.h"
 #include "pci/pci_host.h"
 #include "ide.h"
-#include "net.h"
 #include "pc.h"
 #include "irq.h"
 
hw/device-hotplug.c +0 -1
index 839b9ea..336ffc2 100644
@@ -24,7 +24,6 @@
 
 #include "hw.h"
 #include "boards.h"
-#include "net.h"
 #include "blockdev.h"
 #include "qemu-config.h"
 #include "sysemu.h"
hw/lm32_boards.c +0 -1
index 772cb8b..f59d3bf 100644
@@ -19,7 +19,6 @@
 
 #include "sysbus.h"
 #include "hw.h"
-#include "net.h"
 #include "flash.h"
 #include "devices.h"
 #include "boards.h"
hw/milkymist-hw.h +1 -0
index 96b2a7f..0253b7a 100644
@@ -3,6 +3,7 @@
 
 #include "qdev.h"
 #include "qdev-addr.h"
+#include "net.h"
 
 static inline DeviceState *milkymist_uart_create(hwaddr base,
         qemu_irq irq)
hw/milkymist.c +0 -1
index 4c8111a..c26ea4a 100644
@@ -19,7 +19,6 @@
 
 #include "sysbus.h"
 #include "hw.h"
-#include "net.h"
 #include "flash.h"
 #include "sysemu.h"
 #include "devices.h"
hw/s390-virtio-bus.c +0 -1
index e0ac2d1..169dd46 100644
@@ -20,7 +20,6 @@
 #include "hw.h"
 #include "block.h"
 #include "sysemu.h"
-#include "net.h"
 #include "boards.h"
 #include "monitor.h"
 #include "loader.h"
hw/spapr_vscsi.c +0 -1
index e3d4b23..2d81132 100644
@@ -34,7 +34,6 @@
 #include "hw.h"
 #include "scsi.h"
 #include "scsi-defs.h"
-#include "net.h" /* Remove that when we can */
 #include "srp.h"
 #include "hw/qdev.h"
 #include "hw/spapr.h"
hw/virtex_ml507.c +0 -1
index 6ab8fee..1fdbc49 100644
@@ -25,7 +25,6 @@
 #include "sysbus.h"
 #include "hw.h"
 #include "serial.h"
-#include "net.h"
 #include "flash.h"
 #include "sysemu.h"
 #include "devices.h"
hw/virtio-net.h +0 -1
index b13be7c..2566ea1 100644
@@ -15,7 +15,6 @@
 #define _QEMU_VIRTIO_NET_H
 
 #include "virtio.h"
-#include "net.h"
 #include "pci/pci.h"
 
 #define ETH_ALEN    6
hw/virtio-pci.c +0 -1
index d0d6a5e..a2355dc 100644
@@ -26,7 +26,6 @@
 #include "qemu-error.h"
 #include "pci/msi.h"
 #include "pci/msix.h"
-#include "net.h"
 #include "loader.h"
 #include "kvm.h"
 #include "blockdev.h"
hw/virtio-scsi.h +0 -1
index 7d7cba7..8d9d15f 100644
@@ -15,7 +15,6 @@
 #define _QEMU_VIRTIO_SCSI_H
 
 #include "virtio.h"
-#include "net.h"
 #include "pci/pci.h"
 
 /* The ID for virtio_scsi */
hw/xen_backend.h +0 -1
index fea86dd..3305630 100644
@@ -4,7 +4,6 @@
 #include "xen_common.h"
 #include "sysemu.h"
 #include "net.h"
-#include "net/hub.h"
 
 /* ------------------------------------------------------------- */
 
hw/xen_platform.c +0 -1
index 10bb560..023499e 100644
@@ -30,7 +30,6 @@
 #include "pci/pci.h"
 #include "irq.h"
 #include "xen_common.h"
-#include "net.h"
 #include "xen_backend.h"
 #include "trace.h"
 #include "exec-memory.h"
input.c +0 -1
index 25d3973..123bb23 100644
@@ -23,7 +23,6 @@
  */
 
 #include "sysemu.h"
-#include "net.h"
 #include "monitor.h"
 #include "console.h"
 #include "error.h"
qemu-char.c +0 -1
index 242b799..f066ad0 100644
@@ -22,7 +22,6 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "net.h"
 #include "monitor.h"
 #include "console.h"
 #include "sysemu.h"
qemu-timer.c +0 -1
index 0d2bb94..9b9585b 100644
@@ -23,7 +23,6 @@
  */
 
 #include "sysemu.h"
-#include "net.h"
 #include "monitor.h"
 #include "console.h"
 
Signature · 1 line
1.8.0.2
#13 lore raw

PATCH 13/32 net: move net.c to net/

In reply to Paolo Bonzini
---
 Makefile.objs      | 2 +-
 net/Makefile.objs  | 2 +-
 net.c => net/net.c | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
 rename net.c => net/net.c (99%)
Makefile.objs +1 -1
index 986f085..83092dc 100644
@@ -66,7 +66,7 @@ endif
 # single QEMU executable should support all CPUs and machines.
 
 common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/
-common-obj-y += net.o net/
+common-obj-y += net/
 common-obj-y += qom/
 common-obj-y += readline.o console.o cursor.o
 common-obj-y += qemu-pixman.o
net/Makefile.objs +1 -1
index cf04187..a08cd14 100644
@@ -1,4 +1,4 @@
-common-obj-y = queue.o checksum.o util.o hub.o
+common-obj-y = net.o queue.o checksum.o util.o hub.o
 common-obj-y += socket.o
 common-obj-y += dump.o
 common-obj-$(CONFIG_POSIX) += tap.o
net/net.c renamed from net.c +4 -4
similarity index 99%
rename from net.c
rename to net/net.c
index 4f3d642..7b1600f 100644
@@ -24,10 +24,10 @@
 #include "config-host.h"
 
 #include "net.h"
-#include "net/clients.h"
-#include "net/hub.h"
-#include "net/slirp.h"
-#include "net/util.h"
+#include "clients.h"
+#include "hub.h"
+#include "slirp.h"
+#include "util.h"
 
 #include "monitor.h"
 #include "qemu-common.h"
Signature · 1 line
1.8.0.2
#14 lore raw

PATCH 14/32 net: reorganize headers

In reply to Paolo Bonzini

Move public headers to include/net, and leave private headers in net/. Put the virtio headers in include/net/tap.h, removing the multiple copies that existed. Leave include/net/tap.h as the interface for NICs, and net/tap_int.h as the interface for OS-specific parts of the tap backend.

---
 hmp.c                           |  2 +-
 hw/axis_dev88.c                 |  2 +-
 hw/cadence_gem.c                |  2 +-
 hw/dp8393x.c                    |  2 +-
 hw/e1000.c                      |  2 +-
 hw/eepro100.c                   |  2 +-
 hw/etraxfs.h                    |  2 +-
 hw/etraxfs_eth.c                |  2 +-
 hw/exynos4_boards.c             |  2 +-
 hw/gumstix.c                    |  2 +-
 hw/highbank.c                   |  2 +-
 hw/integratorcp.c               |  2 +-
 hw/kzm.c                        |  2 +-
 hw/lan9118.c                    |  2 +-
 hw/lance.c                      |  2 +-
 hw/mainstone.c                  |  2 +-
 hw/mcf5208.c                    |  2 +-
 hw/mcf_fec.c                    |  2 +-
 hw/milkymist-hw.h               |  2 +-
 hw/milkymist-minimac2.c         |  2 +-
 hw/mips_fulong2e.c              |  2 +-
 hw/mips_jazz.c                  |  2 +-
 hw/mips_malta.c                 |  2 +-
 hw/mips_mipssim.c               |  2 +-
 hw/mips_r4k.c                   |  2 +-
 hw/mipsnet.c                    |  2 +-
 hw/musicpal.c                   |  2 +-
 hw/ne2000-isa.c                 |  2 +-
 hw/ne2000.c                     |  2 +-
 hw/opencores_eth.c              |  2 +-
 hw/openrisc_sim.c               |  2 +-
 hw/pc.h                         |  2 +-
 hw/pc_piix.c                    |  2 +-
 hw/pci/pci-hotplug.c            |  2 +-
 hw/pci/pci.c                    |  2 +-
 hw/pcnet-pci.c                  |  2 +-
 hw/pcnet.c                      |  2 +-
 hw/petalogix_ml605_mmu.c        |  2 +-
 hw/petalogix_s3adsp1800_mmu.c   |  2 +-
 hw/ppc440_bamboo.c              |  2 +-
 hw/ppc_newworld.c               |  2 +-
 hw/ppc_oldworld.c               |  2 +-
 hw/ppc_prep.c                   |  2 +-
 hw/qdev-properties.c            |  2 +-
 hw/qdev.c                       |  2 +-
 hw/r2d.c                        |  2 +-
 hw/realview.c                   |  2 +-
 hw/rtl8139.c                    |  2 +-
 hw/s390-virtio.c                |  2 +-
 hw/smc91c111.c                  |  2 +-
 hw/spapr.c                      |  2 +-
 hw/spapr_llan.c                 |  2 +-
 hw/stellaris.c                  |  2 +-
 hw/stellaris_enet.c             |  2 +-
 hw/sun4m.c                      |  2 +-
 hw/sun4u.c                      |  2 +-
 hw/usb/dev-network.c            |  2 +-
 hw/versatilepb.c                |  2 +-
 hw/vexpress.c                   |  2 +-
 hw/vhost_net.c                  |  2 +-
 hw/vhost_net.h                  |  2 +-
 hw/virtio-net.c                 |  2 +-
 hw/virtio-net.h                 | 27 -----------------
 hw/virtio.h                     |  2 +-
 hw/xen_backend.h                |  2 +-
 hw/xen_nic.c                    |  2 +-
 hw/xgmac.c                      |  2 +-
 hw/xilinx.h                     |  2 +-
 hw/xilinx_axienet.c             |  2 +-
 hw/xilinx_ethlite.c             |  2 +-
 hw/xilinx_zynq.c                |  2 +-
 hw/xtensa_lx60.c                |  2 +-
 {net => include/net}/checksum.h |  0
 net.h => include/net/net.h      |  3 ++
 {net => include/net}/queue.h    |  0
 {net => include/net}/slirp.h    |  0
 include/net/tap.h               | 67 +++++++++++++++++++++++++++++++++++++++++
 monitor.c                       |  2 +-
 net/clients.h                   |  2 +-
 net/hub.c                       |  2 +-
 net/hub.h                       |  2 --
 net/net.c                       |  4 +--
 net/queue.c                     |  2 +-
 net/slirp.c                     |  2 +-
 net/socket.c                    |  2 +-
 net/tap-aix.c                   |  2 +-
 net/tap-bsd.c                   |  2 +-
 net/tap-haiku.c                 |  2 +-
 net/tap-linux.c                 |  3 +-
 net/tap-linux.h                 | 20 ++----------
 net/tap-solaris.c               |  2 +-
 net/tap-win32.c                 |  4 +--
 net/tap.c                       |  6 ++--
 net/{tap.h => tap_int.h}        | 18 ++---------
 net/util.c                      |  2 +-
 net/vde.c                       |  2 +-
 savevm.c                        |  2 +-
 vl.c                            |  2 +-
 98 files changed, 169 insertions(+), 155 deletions(-)
 rename {net => include/net}/checksum.h (100%)
 rename net.h => include/net/net.h (98%)
 rename {net => include/net}/queue.h (100%)
 rename {net => include/net}/slirp.h (100%)
 create mode 100644 include/net/tap.h
 rename net/{tap.h => tap_int.h} (77%)
hmp.c +1 -1
index 873962f..9b31e9f 100644
@@ -14,7 +14,7 @@
  */
 
 #include "hmp.h"
-#include "net.h"
+#include "net/net.h"
 #include "qemu-char.h"
 #include "qemu-option.h"
 #include "qemu-timer.h"
hw/axis_dev88.c +1 -1
index aa1ac9e..50ddbc9 100644
@@ -23,7 +23,7 @@
  */
 
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "flash.h"
 #include "boards.h"
 #include "etraxfs.h"
hw/cadence_gem.c +1 -1
index 0c037a2..40a2399 100644
@@ -25,7 +25,7 @@
 #include <zlib.h> /* For crc32 */
 
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/checksum.h"
 
 #ifdef CADENCE_GEM_ERR_DEBUG
hw/dp8393x.c +1 -1
index 3f6386e..d59b611 100644
@@ -19,7 +19,7 @@
 
 #include "hw.h"
 #include "qemu-timer.h"
-#include "net.h"
+#include "net/net.h"
 #include "mips.h"
 
 //#define DEBUG_SONIC
hw/e1000.c +1 -1
index c89c8d2..aeee3e6 100644
@@ -27,7 +27,7 @@
 
 #include "hw.h"
 #include "pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/checksum.h"
 #include "loader.h"
 #include "sysemu.h"
hw/eepro100.c +1 -1
index 992f03a..9e2be4e 100644
@@ -43,7 +43,7 @@
 #include <stddef.h>             /* offsetof */
 #include "hw.h"
 #include "pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "eeprom93xx.h"
 #include "sysemu.h"
 #include "dma.h"
hw/etraxfs.h +1 -1
index 725bb9e..bc60713 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "net.h"
+#include "net/net.h"
 #include "etraxfs_dma.h"
 
 qemu_irq *cris_pic_init_cpu(CPUCRISState *env);
hw/etraxfs_eth.c +1 -1
index 3d42426..289a810 100644
@@ -24,7 +24,7 @@
 
 #include <stdio.h>
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "etraxfs.h"
 
 #define D(x)
hw/exynos4_boards.c +1 -1
index bc815bb..c375f16 100644
@@ -23,7 +23,7 @@
 
 #include "sysemu.h"
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "arm-misc.h"
 #include "exec-memory.h"
 #include "exynos4210.h"
hw/gumstix.c +1 -1
index 4103a88..545b92f 100644
@@ -36,7 +36,7 @@
 
 #include "hw.h"
 #include "pxa.h"
-#include "net.h"
+#include "net/net.h"
 #include "flash.h"
 #include "devices.h"
 #include "boards.h"
hw/highbank.c +1 -1
index 8e35127..90f7cb5 100644
@@ -21,7 +21,7 @@
 #include "arm-misc.h"
 #include "devices.h"
 #include "loader.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "sysbus.h"
hw/integratorcp.c +1 -1
index 77807c3..2b59fea 100644
@@ -11,7 +11,7 @@
 #include "devices.h"
 #include "boards.h"
 #include "arm-misc.h"
-#include "net.h"
+#include "net/net.h"
 #include "exec-memory.h"
 #include "sysemu.h"
 
hw/kzm.c +1 -1
index 687daf3..a27ecbb 100644
@@ -18,7 +18,7 @@
 #include "hw.h"
 #include "arm-misc.h"
 #include "devices.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "serial.h"
hw/lan9118.c +1 -1
index f724e1c..4c72d0d 100644
@@ -11,7 +11,7 @@
  */
 
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "devices.h"
 #include "sysemu.h"
 #include "ptimer.h"
hw/lance.c +1 -1
index a3e6dd9..a384676 100644
@@ -36,7 +36,7 @@
  */
 
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "qemu-timer.h"
 #include "qemu_socket.h"
 #include "sun4m.h"
hw/mainstone.c +1 -1
index 5bbecb7..58c8b07 100644
@@ -14,7 +14,7 @@
 #include "hw.h"
 #include "pxa.h"
 #include "arm-misc.h"
-#include "net.h"
+#include "net/net.h"
 #include "devices.h"
 #include "boards.h"
 #include "flash.h"
hw/mcf5208.c +1 -1
index b1db549..6326624 100644
@@ -10,7 +10,7 @@
 #include "qemu-timer.h"
 #include "ptimer.h"
 #include "sysemu.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "loader.h"
 #include "elf.h"
hw/mcf_fec.c +1 -1
index 1ed193c..b5fb18f 100644
@@ -6,7 +6,7 @@
  * This code is licensed under the GPL
  */
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "mcf.h"
 /* For crc32 */
 #include <zlib.h>
hw/milkymist-hw.h +1 -1
index 0253b7a..812ddd2 100644
@@ -3,7 +3,7 @@
 
 #include "qdev.h"
 #include "qdev-addr.h"
-#include "net.h"
+#include "net/net.h"
 
 static inline DeviceState *milkymist_uart_create(hwaddr base,
         qemu_irq irq)
hw/milkymist-minimac2.c +1 -1
index b204e5f..926f7f9 100644
@@ -25,7 +25,7 @@
 #include "hw.h"
 #include "sysbus.h"
 #include "trace.h"
-#include "net.h"
+#include "net/net.h"
 #include "qemu-error.h"
 #include "qdev-addr.h"
 
hw/mips_fulong2e.c +1 -1
index d5cf33b..bab96b2 100644
@@ -22,7 +22,7 @@
 #include "pc.h"
 #include "serial.h"
 #include "fdc.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "smbus.h"
 #include "block.h"
hw/mips_jazz.c +1 -1
index ea1416a..8e5e8ef 100644
@@ -32,7 +32,7 @@
 #include "sysemu.h"
 #include "arch_init.h"
 #include "boards.h"
-#include "net.h"
+#include "net/net.h"
 #include "esp.h"
 #include "mips-bios.h"
 #include "loader.h"
hw/mips_malta.c +1 -1
index 571903d..3f9f171 100644
@@ -26,7 +26,7 @@
 #include "pc.h"
 #include "serial.h"
 #include "fdc.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "smbus.h"
 #include "block.h"
hw/mips_mipssim.c +1 -1
index 20b5f1a..7831742 100644
@@ -29,7 +29,7 @@
 #include "mips_cpudevs.h"
 #include "serial.h"
 #include "isa.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "mips-bios.h"
hw/mips_r4k.c +1 -1
index 325098a..ec99d7d 100644
@@ -13,7 +13,7 @@
 #include "pc.h"
 #include "serial.h"
 #include "isa.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "flash.h"
hw/mipsnet.c +1 -1
index bece332..bb752d3 100644
@@ -1,5 +1,5 @@
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "trace.h"
 #include "sysbus.h"
 
hw/musicpal.c +1 -1
index e0c57c8..4e8399a 100644
@@ -12,7 +12,7 @@
 #include "sysbus.h"
 #include "arm-misc.h"
 #include "devices.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "serial.h"
hw/ne2000-isa.c +1 -1
index 69982a9..99477a4 100644
@@ -25,7 +25,7 @@
 #include "pc.h"
 #include "isa.h"
 #include "qdev.h"
-#include "net.h"
+#include "net/net.h"
 #include "ne2000.h"
 #include "exec-memory.h"
 
hw/ne2000.c +1 -1
index fb78e5b..2001264 100644
@@ -23,7 +23,7 @@
  */
 #include "hw.h"
 #include "pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "ne2000.h"
 #include "loader.h"
 #include "sysemu.h"
hw/opencores_eth.c +1 -1
index b2780b9..fd2f0f6 100644
@@ -33,7 +33,7 @@
 
 #include "hw.h"
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "trace.h"
 
hw/openrisc_sim.c +1 -1
index 23c66df..a879fb0 100644
@@ -22,7 +22,7 @@
 #include "boards.h"
 #include "elf.h"
 #include "serial.h"
-#include "net.h"
+#include "net/net.h"
 #include "loader.h"
 #include "exec-memory.h"
 #include "sysemu.h"
hw/pc.h +1 -1
index 2237e86..5e4d103 100644
@@ -6,7 +6,7 @@
 #include "ioport.h"
 #include "isa.h"
 #include "fdc.h"
-#include "net.h"
+#include "net/net.h"
 #include "memory.h"
 #include "ioapic.h"
 
hw/pc_piix.c +1 -1
index c2b4cb0..7268dcd 100644
@@ -30,7 +30,7 @@
 #include "pci/pci.h"
 #include "pci/pci_ids.h"
 #include "usb.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "ide.h"
 #include "kvm.h"
hw/pci/pci-hotplug.c +1 -1
index 4b4c931..b850400 100644
@@ -25,7 +25,7 @@
 #include "hw/hw.h"
 #include "hw/boards.h"
 #include "hw/pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "hw/pc.h"
 #include "monitor.h"
 #include "hw/scsi.h"
hw/pci/pci.c +1 -1
index 2e455e2..105fe95 100644
@@ -26,7 +26,7 @@
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pci_bus.h"
 #include "monitor.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "hw/loader.h"
 #include "range.h"
hw/pcnet-pci.c +1 -1
index c1abbf8..c6768bc 100644
@@ -28,7 +28,7 @@
  */
 
 #include "pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "loader.h"
 #include "qemu-timer.h"
 #include "dma.h"
hw/pcnet.c +1 -1
index 54eecd0..5b03ede 100644
@@ -36,7 +36,7 @@
  */
 
 #include "qdev.h"
-#include "net.h"
+#include "net/net.h"
 #include "qemu-timer.h"
 #include "qemu_socket.h"
 #include "sysemu.h"
hw/petalogix_ml605_mmu.c +1 -1
index 3589a4b..df51a74 100644
@@ -27,7 +27,7 @@
 
 #include "sysbus.h"
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "flash.h"
 #include "sysemu.h"
 #include "devices.h"
hw/petalogix_s3adsp1800_mmu.c +1 -1
index c5fd5e7..37b0d55 100644
@@ -25,7 +25,7 @@
 
 #include "sysbus.h"
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "flash.h"
 #include "sysemu.h"
 #include "devices.h"
hw/ppc440_bamboo.c +1 -1
index 0b39a81..5193a0c 100644
@@ -13,7 +13,7 @@
 
 #include "config.h"
 #include "qemu-common.h"
-#include "net.h"
+#include "net/net.h"
 #include "hw.h"
 #include "pci/pci.h"
 #include "boards.h"
hw/ppc_newworld.c +1 -1
index 2bf3094..657f405 100644
@@ -53,7 +53,7 @@
 #include "mac_dbdma.h"
 #include "nvram.h"
 #include "pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "fw_cfg.h"
hw/ppc_oldworld.c +1 -1
index 3bc29c6..a149306 100644
@@ -30,7 +30,7 @@
 #include "mac_dbdma.h"
 #include "nvram.h"
 #include "sysemu.h"
-#include "net.h"
+#include "net/net.h"
 #include "isa.h"
 #include "pci/pci.h"
 #include "boards.h"
hw/ppc_prep.c +1 -1
index f6ffb59..25cc049 100644
@@ -26,7 +26,7 @@
 #include "pc.h"
 #include "serial.h"
 #include "fdc.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "isa.h"
 #include "pci/pci.h"
hw/qdev-properties.c +1 -1
index b9cd3c0..7ab55ef 100644
@@ -1,4 +1,4 @@
-#include "net.h"
+#include "net/net.h"
 #include "qdev.h"
 #include "qerror.h"
 #include "blockdev.h"
hw/qdev.c +1 -1
index 599382c..6b91fb9 100644
@@ -25,7 +25,7 @@
    inherit from a particular bus (e.g. PCI or I2C) rather than
    this API directly.  */
 
-#include "net.h"
+#include "net/net.h"
 #include "qdev.h"
 #include "sysemu.h"
 #include "error.h"
hw/r2d.c +1 -1
index e18c23b..b1c278f 100644
@@ -30,7 +30,7 @@
 #include "sysemu.h"
 #include "boards.h"
 #include "pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "sh7750_regs.h"
 #include "ide.h"
 #include "loader.h"
hw/realview.c +1 -1
index 5fbdcbf..17d1ba2 100644
@@ -12,7 +12,7 @@
 #include "primecell.h"
 #include "devices.h"
 #include "pci/pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "i2c.h"
hw/rtl8139.c +1 -1
index e294a2a..e024520 100644
@@ -55,7 +55,7 @@
 #include "pci/pci.h"
 #include "dma.h"
 #include "qemu-timer.h"
-#include "net.h"
+#include "net/net.h"
 #include "loader.h"
 #include "sysemu.h"
 #include "iov.h"
hw/s390-virtio.c +1 -1
index 7aca0c4..8c724b9 100644
@@ -21,7 +21,7 @@
 #include "block.h"
 #include "blockdev.h"
 #include "sysemu.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "monitor.h"
 #include "loader.h"
hw/smc91c111.c +1 -1
index 4ceed01..2161b4a 100644
@@ -8,7 +8,7 @@
  */
 
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include "devices.h"
 /* For crc32 */
 #include <zlib.h>
hw/spapr.c +1 -1
index 9bd2fd5..767d065 100644
@@ -27,7 +27,7 @@
 #include "sysemu.h"
 #include "hw.h"
 #include "elf.h"
-#include "net.h"
+#include "net/net.h"
 #include "blockdev.h"
 #include "cpus.h"
 #include "kvm.h"
hw/spapr_llan.c +1 -1
index 09ad69f..8077eb9 100644
@@ -25,7 +25,7 @@
  *
  */
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "hw/qdev.h"
 #include "hw/spapr.h"
 #include "hw/spapr_vio.h"
hw/stellaris.c +1 -1
index b038f10..f3eb4bb 100644
@@ -13,7 +13,7 @@
 #include "devices.h"
 #include "qemu-timer.h"
 #include "i2c.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "exec-memory.h"
 
hw/stellaris_enet.c +1 -1
index a530b10..d7e1e21 100644
@@ -7,7 +7,7 @@
  * This code is licensed under the GPL.
  */
 #include "sysbus.h"
-#include "net.h"
+#include "net/net.h"
 #include <zlib.h>
 
 //#define DEBUG_STELLARIS_ENET 1
hw/sun4m.c +1 -1
index 52cf82b..9a784df 100644
@@ -28,7 +28,7 @@
 #include "sparc32_dma.h"
 #include "fdc.h"
 #include "sysemu.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "firmware_abi.h"
 #include "esp.h"
hw/sun4u.c +1 -1
index 47bcf93..d9e752f 100644
@@ -28,7 +28,7 @@
 #include "serial.h"
 #include "nvram.h"
 #include "fdc.h"
-#include "net.h"
+#include "net/net.h"
 #include "qemu-timer.h"
 #include "sysemu.h"
 #include "boards.h"
hw/usb/dev-network.c +1 -1
index 0552e6f..bf289ff 100644
@@ -26,7 +26,7 @@
 #include "qemu-common.h"
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
-#include "net.h"
+#include "net/net.h"
 #include "qemu-queue.h"
 #include "qemu-config.h"
 #include "sysemu.h"
hw/versatilepb.c +1 -1
index f5a742b..af398d9 100644
@@ -10,7 +10,7 @@
 #include "sysbus.h"
 #include "arm-misc.h"
 #include "devices.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "pci/pci.h"
 #include "i2c.h"
hw/vexpress.c +1 -1
index e89694c..5c9c08b 100644
@@ -25,7 +25,7 @@
 #include "arm-misc.h"
 #include "primecell.h"
 #include "devices.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "exec-memory.h"
hw/vhost_net.c +1 -1
index 8241601..93ad89a 100644
@@ -13,7 +13,7 @@
  * GNU GPL, version 2 or (at your option) any later version.
  */
 
-#include "net.h"
+#include "net/net.h"
 #include "net/tap.h"
 
 #include "virtio-net.h"
hw/vhost_net.h +1 -1
index a9db234..012aba4 100644
@@ -1,7 +1,7 @@
 #ifndef VHOST_NET_H
 #define VHOST_NET_H
 
-#include "net.h"
+#include "net/net.h"
 
 struct vhost_net;
 typedef struct vhost_net VHostNetState;
hw/virtio-net.c +1 -1
index 108ce07..dc7c6d6 100644
@@ -13,7 +13,7 @@
 
 #include "iov.h"
 #include "virtio.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/checksum.h"
 #include "net/tap.h"
 #include "qemu-error.h"
hw/virtio-net.h +0 -27
index 2566ea1..d46fb98 100644
@@ -73,33 +73,6 @@ struct virtio_net_config
     uint16_t status;
 } QEMU_PACKED;
 
-/* This is the first element of the scatter-gather list.  If you don't
- * specify GSO or CSUM features, you can simply ignore the header. */
-struct virtio_net_hdr
-{
-#define VIRTIO_NET_HDR_F_NEEDS_CSUM     1       // Use csum_start, csum_offset
-#define VIRTIO_NET_HDR_F_DATA_VALID	2	// Csum is valid
-    uint8_t flags;
-#define VIRTIO_NET_HDR_GSO_NONE         0       // Not a GSO frame
-#define VIRTIO_NET_HDR_GSO_TCPV4        1       // GSO frame, IPv4 TCP (TSO)
-#define VIRTIO_NET_HDR_GSO_UDP          3       // GSO frame, IPv4 UDP (UFO)
-#define VIRTIO_NET_HDR_GSO_TCPV6        4       // GSO frame, IPv6 TCP
-#define VIRTIO_NET_HDR_GSO_ECN          0x80    // TCP has ECN set
-    uint8_t gso_type;
-    uint16_t hdr_len;
-    uint16_t gso_size;
-    uint16_t csum_start;
-    uint16_t csum_offset;
-};
-
-/* This is the version of the header to use when the MRG_RXBUF
- * feature has been negotiated. */
-struct virtio_net_hdr_mrg_rxbuf
-{
-    struct virtio_net_hdr hdr;
-    uint16_t num_buffers;   /* Number of merged rx buffers */
-};
-
 /*
  * Control virtqueue data structures
  *
hw/virtio.h +1 -1
index 7c17f7b..cdcb490 100644
@@ -15,7 +15,7 @@
 #define _QEMU_VIRTIO_H
 
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "qdev.h"
 #include "sysemu.h"
 #include "event_notifier.h"
hw/xen_backend.h +1 -1
index 3305630..92ab501 100644
@@ -3,7 +3,7 @@
 
 #include "xen_common.h"
 #include "sysemu.h"
-#include "net.h"
+#include "net/net.h"
 
 /* ------------------------------------------------------------- */
 
hw/xen_nic.c +1 -1
index dadacb1..dc12110 100644
@@ -36,7 +36,7 @@
 #include <sys/wait.h>
 
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/checksum.h"
 #include "net/util.h"
 #include "xen_backend.h"
hw/xgmac.c +1 -1
index ec50c74..d0d510e 100644
@@ -27,7 +27,7 @@
 #include "sysbus.h"
 #include "qemu-char.h"
 #include "qemu-log.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/checksum.h"
 
 #ifdef DEBUG_XGMAC
hw/xilinx.h +1 -1
index 9323fd0..735f8e2 100644
@@ -1,6 +1,6 @@
 #include "stream.h"
 #include "qemu-common.h"
-#include "net.h"
+#include "net/net.h"
 
 static inline DeviceState *
 xilinx_intc_create(hwaddr base, qemu_irq irq, int kind_of_intr)
hw/xilinx_axienet.c +1 -1
index c859fde..35979e6 100644
@@ -24,7 +24,7 @@
 
 #include "sysbus.h"
 #include "qemu-log.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/checksum.h"
 
 #include "stream.h"
hw/xilinx_ethlite.c +1 -1
index 13bd456..4de4a53 100644
@@ -24,7 +24,7 @@
 
 #include "sysbus.h"
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 
 #define D(x)
 #define R_TX_BUF0     0
hw/xilinx_zynq.c +1 -1
index 9ca22a4..67adc52 100644
@@ -17,7 +17,7 @@
 
 #include "sysbus.h"
 #include "arm-misc.h"
-#include "net.h"
+#include "net/net.h"
 #include "exec-memory.h"
 #include "sysemu.h"
 #include "boards.h"
hw/xtensa_lx60.c +1 -1
index bc10d31..0399de7 100644
@@ -32,7 +32,7 @@
 #include "memory.h"
 #include "exec-memory.h"
 #include "serial.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysbus.h"
 #include "flash.h"
 #include "blockdev.h"
include/net/checksum.h renamed from net/checksum.h +0 -0
similarity index 100%
rename from net/checksum.h
rename to include/net/checksum.h
include/net/net.h renamed from net.h +3 -0
similarity index 98%
rename from net.h
rename to include/net/net.h
index 1d0816b..9ff9305 100644
@@ -147,6 +147,9 @@ void net_host_device_remove(Monitor *mon, const QDict *qdict);
 void netdev_add(QemuOpts *opts, Error **errp);
 int qmp_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret);
 
+int net_hub_id_for_client(NetClientState *nc, int *id);
+NetClientState *net_hub_port_find(int hub_id);
+
 #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
 #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
 #define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR "/qemu-bridge-helper"
include/net/queue.h renamed from net/queue.h +0 -0
similarity index 100%
rename from net/queue.h
rename to include/net/queue.h
include/net/slirp.h renamed from net/slirp.h +0 -0
similarity index 100%
rename from net/slirp.h
rename to include/net/slirp.h
include/net/tap.h new file +67 -0

67 lines not on this page · raw message

monitor.c +1 -1
index bd63768..37b9d20 100644
@@ -31,7 +31,7 @@
 #include "hw/watchdog.h"
 #include "hw/loader.h"
 #include "gdbstub.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/slirp.h"
 #include "qemu-char.h"
 #include "ui/qemu-spice.h"
net/clients.h +1 -1
index c58cc60..7793294 100644
@@ -24,7 +24,7 @@
 #ifndef QEMU_NET_CLIENTS_H
 #define QEMU_NET_CLIENTS_H
 
-#include "net.h"
+#include "net/net.h"
 #include "qapi-types.h"
 
 int net_init_dump(const NetClientOptions *opts, const char *name,
net/hub.c +1 -1
index be41301..8508ecf 100644
@@ -13,7 +13,7 @@
  */
 
 #include "monitor.h"
-#include "net.h"
+#include "net/net.h"
 #include "clients.h"
 #include "hub.h"
 #include "iov.h"
net/hub.h +0 -2
index 4cbfdb1..583ada8 100644
@@ -20,8 +20,6 @@
 NetClientState *net_hub_add_port(int hub_id, const char *name);
 NetClientState *net_hub_find_client_by_name(int hub_id, const char *name);
 void net_hub_info(Monitor *mon);
-int net_hub_id_for_client(NetClientState *nc, int *id);
 void net_hub_check_clients(void);
-NetClientState *net_hub_port_find(int hub_id);
 
 #endif /* NET_HUB_H */
net/net.c +2 -2
index 7b1600f..a4395be 100644
@@ -23,10 +23,10 @@
  */
 #include "config-host.h"
 
-#include "net.h"
+#include "net/net.h"
 #include "clients.h"
 #include "hub.h"
-#include "slirp.h"
+#include "net/slirp.h"
 #include "util.h"
 
 #include "monitor.h"
net/queue.c +1 -1
index 254f280..542c549 100644
@@ -23,7 +23,7 @@
 
 #include "net/queue.h"
 #include "qemu-queue.h"
-#include "net.h"
+#include "net/net.h"
 
 /* The delivery handler may only return zero if it will call
  * qemu_net_queue_flush() when it determines that it is once again able
net/slirp.c +1 -1
index f117412..5a11ac5 100644
@@ -29,7 +29,7 @@
 #include <pwd.h>
 #include <sys/wait.h>
 #endif
-#include "net.h"
+#include "net/net.h"
 #include "clients.h"
 #include "hub.h"
 #include "monitor.h"
net/socket.c +1 -1
index cf309cd..8430f1a 100644
@@ -23,7 +23,7 @@
  */
 #include "config-host.h"
 
-#include "net.h"
+#include "net/net.h"
 #include "clients.h"
 #include "monitor.h"
 #include "qemu-common.h"
net/tap-aix.c +1 -1
index f27c177..aff6c52 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "net/tap.h"
+#include "tap_int.h"
 #include <stdio.h>
 
 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required)
net/tap-bsd.c +1 -1
index a3b717d..a1c55ad 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "net/tap.h"
+#include "tap_int.h"
 #include "qemu-common.h"
 #include "sysemu.h"
 #include "qemu-error.h"
net/tap-haiku.c +1 -1
index 34739d1..08cc034 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "net/tap.h"
+#include "tap_int.h"
 #include <stdio.h>
 
 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required)
net/tap-linux.c +2 -1
index 3eaedc4..3de7b3b 100644
@@ -23,8 +23,9 @@
  * THE SOFTWARE.
  */
 
+#include "tap_int.h"
+#include "tap-linux.h"
 #include "net/tap.h"
-#include "net/tap-linux.h"
 
 #include <net/if.h>
 #include <sys/ioctl.h>
net/tap-linux.h +2 -18
index 659e981..cb2a6d4 100644
@@ -13,8 +13,8 @@
  *  GNU General Public License for more details.
  */
 
-#ifndef QEMU_TAP_H
-#define QEMU_TAP_H
+#ifndef QEMU_TAP_LINUX_H
+#define QEMU_TAP_LINUX_H
 
 #include <stdint.h>
 #ifdef __linux__
@@ -44,20 +44,4 @@
 #define TUN_F_TSO_ECN	0x08	/* I can handle TSO with ECN bits. */
 #define TUN_F_UFO	0x10	/* I can handle UFO packets */
 
-struct virtio_net_hdr
-{
-    uint8_t flags;
-    uint8_t gso_type;
-    uint16_t hdr_len;
-    uint16_t gso_size;
-    uint16_t csum_start;
-    uint16_t csum_offset;
-};
-
-struct virtio_net_hdr_mrg_rxbuf
-{
-    struct virtio_net_hdr hdr;
-    uint16_t num_buffers;   /* Number of merged rx buffers */
-};
-
 #endif /* QEMU_TAP_H */
net/tap-solaris.c +1 -1
index 5d6ac42..f228fff 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "net/tap.h"
+#include "tap_int.h"
 #include "sysemu.h"
 
 #include <sys/stat.h>
net/tap-win32.c +2 -2
index f9bd741..e37d8ee 100644
@@ -26,11 +26,11 @@
  *  distribution); if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "tap.h"
+#include "tap_int.h"
 
 #include "qemu-common.h"
 #include "clients.h"            /* net_init_tap */
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "qemu-error.h"
 #include <stdio.h>
net/tap.c +3 -3
index 5ff7893..f8cabc4 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 
-#include "tap.h"
+#include "tap_int.h"
 
 #include "config-host.h"
 
@@ -33,14 +33,14 @@
 #include <sys/socket.h>
 #include <net/if.h>
 
-#include "net.h"
+#include "net/net.h"
 #include "clients.h"
 #include "monitor.h"
 #include "sysemu.h"
 #include "qemu-common.h"
 #include "qemu-error.h"
 
-#include "net/tap-linux.h"
+#include "net/tap.h"
 
 #include "hw/vhost_net.h"
 
net/tap_int.h renamed from net/tap.h +3 -15
similarity index 77%
rename from net/tap.h
rename to net/tap_int.h
index d44d83a..1dffe12 100644
@@ -23,8 +23,8 @@
  * THE SOFTWARE.
  */
 
-#ifndef QEMU_NET_TAP_H
-#define QEMU_NET_TAP_H
+#ifndef QEMU_TAP_H
+#define QEMU_TAP_H
 
 #include "qemu-common.h"
 #include "qapi-types.h"
@@ -36,13 +36,6 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required
 
 ssize_t tap_read_packet(int tapfd, uint8_t *buf, int maxlen);
 
-int tap_has_ufo(NetClientState *nc);
-int tap_has_vnet_hdr(NetClientState *nc);
-int tap_has_vnet_hdr_len(NetClientState *nc, int len);
-void tap_using_vnet_hdr(NetClientState *nc, int using_vnet_hdr);
-void tap_set_offload(NetClientState *nc, int csum, int tso4, int tso6, int ecn, int ufo);
-void tap_set_vnet_hdr_len(NetClientState *nc, int len);
-
 int tap_set_sndbuf(int fd, const NetdevTapOptions *tap);
 int tap_probe_vnet_hdr(int fd);
 int tap_probe_vnet_hdr_len(int fd, int len);
@@ -50,9 +43,4 @@ int tap_probe_has_ufo(int fd);
 void tap_fd_set_offload(int fd, int csum, int tso4, int tso6, int ecn, int ufo);
 void tap_fd_set_vnet_hdr_len(int fd, int len);
 
-int tap_get_fd(NetClientState *nc);
-
-struct vhost_net;
-struct vhost_net *tap_get_vhost_net(NetClientState *nc);
-
-#endif /* QEMU_NET_TAP_H */
+#endif /* QEMU_TAP_H */
net/util.c +1 -1
index 1e9afbc..7e95076 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "net/util.h"
+#include "util.h"
 #include <errno.h>
 #include <stdlib.h>
 
net/vde.c +1 -1
index cc5a07d..52d4f19 100644
@@ -25,7 +25,7 @@
 
 #include <libvdeplug.h>
 
-#include "net.h"
+#include "net/net.h"
 #include "clients.h"
 #include "qemu-common.h"
 #include "qemu-option.h"
savevm.c +1 -1
index f5886ce..ae87878 100644
@@ -72,7 +72,7 @@
 #include "qemu-common.h"
 #include "hw/hw.h"
 #include "hw/qdev.h"
-#include "net.h"
+#include "net/net.h"
 #include "monitor.h"
 #include "sysemu.h"
 #include "qemu-timer.h"
vl.c +1 -1
index 571a49b..a7eeafc 100644
@@ -127,7 +127,7 @@ int main(int argc, char **argv)
 #include "hw/qdev.h"
 #include "hw/loader.h"
 #include "bt-host.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/slirp.h"
 #include "monitor.h"
 #include "console.h"
Signature · 1 line
1.8.0.2
#15 lore raw

PATCH 15/32 qemu-ga: move qemu-ga files to qga/

In reply to Paolo Bonzini
---
 Makefile                                       | 9 +++++----
 Makefile.objs                                  | 2 +-
 qga/Makefile.objs                              | 2 +-
 qemu-ga.c => qga/main.c                        | 0
 qapi-schema-guest.json => qga/qapi-schema.json | 0
 5 files changed, 7 insertions(+), 6 deletions(-)
 rename qemu-ga.c => qga/main.c (100%)
 rename qapi-schema-guest.json => qga/qapi-schema.json (100%)
Makefile +5 -4
index 0c6ad1e..a0321dd 100644
@@ -200,13 +200,13 @@ endif
 qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py
 
 qga/qapi-generated/qga-qapi-types.c qga/qapi-generated/qga-qapi-types.h :\
-$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
+$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
 	$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o qga/qapi-generated -p "qga-" < $<, "  GEN   $@")
 qga/qapi-generated/qga-qapi-visit.c qga/qapi-generated/qga-qapi-visit.h :\
-$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py)
+$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py)
 	$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o qga/qapi-generated -p "qga-" < $<, "  GEN   $@")
 qga/qapi-generated/qga-qmp-commands.h qga/qapi-generated/qga-qmp-marshal.c :\
-$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
+$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
 	$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -o qga/qapi-generated -p "qga-" < $<, "  GEN   $@")
 
 qapi-types.c qapi-types.h :\
@@ -222,7 +222,8 @@ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
 QGALIB_GEN=$(addprefix qga/qapi-generated/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h)
 $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
 
-qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a
+qemu-ga$(EXESUF): $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a
+	$(call LINK, $^)
 
 clean:
 # avoid old build problems by removing potentially incorrect old files
Makefile.objs +1 -1
index 83092dc..fe78836 100644
@@ -222,7 +222,7 @@ universal-obj-y += $(qapi-obj-y)
 ######################################################################
 # guest agent
 
-qga-obj-y = qga/ qemu-ga.o module.o qemu-tool.o
+qga-obj-y = qga/ module.o qemu-tool.o
 qga-obj-$(CONFIG_POSIX) += qemu-sockets.o qemu-option.o
 
 vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
qga/Makefile.objs +1 -1
index cd3e135..b8d7cd0 100644
@@ -1,4 +1,4 @@
-qga-obj-y = commands.o guest-agent-command-state.o
+qga-obj-y = commands.o guest-agent-command-state.o main.o
 qga-obj-$(CONFIG_POSIX) += commands-posix.o channel-posix.o
 qga-obj-$(CONFIG_WIN32) += commands-win32.o channel-win32.o service-win32.o
 qga-obj-y += qapi-generated/qga-qapi-types.o qapi-generated/qga-qapi-visit.o
qga/main.c renamed from qemu-ga.c +0 -0
similarity index 100%
rename from qemu-ga.c
rename to qga/main.c
qga/qapi-schema.json renamed from qapi-schema-guest.json +0 -0
similarity index 100%
rename from qapi-schema-guest.json
rename to qga/qapi-schema.json
Signature · 1 line
1.8.0.2
#16 lore raw

PATCH 16/32 ui: move files to ui/ and include/ui/

In reply to Paolo Bonzini
---
 Makefile.objs                                 | 4 +---
 hmp.c                                         | 2 +-
 hw/adb.c                                      | 2 +-
 hw/ads7846.c                                  | 2 +-
 hw/applesmc.c                                 | 2 +-
 hw/blizzard.c                                 | 4 ++--
 hw/bt-hid.c                                   | 2 +-
 hw/cirrus_vga.c                               | 2 +-
 hw/escc.c                                     | 2 +-
 hw/exynos4210_fimd.c                          | 4 ++--
 hw/framebuffer.c                              | 2 +-
 hw/g364fb.c                                   | 4 ++--
 hw/hid.c                                      | 2 +-
 hw/hpet.c                                     | 2 +-
 hw/jazz_led.c                                 | 4 ++--
 hw/kvm/pci-assign.c                           | 2 +-
 hw/lm832x.c                                   | 2 +-
 hw/milkymist-softusb.c                        | 2 +-
 hw/milkymist-vgafb.c                          | 4 ++--
 hw/msmouse.c                                  | 6 +++---
 hw/musicpal.c                                 | 5 ++---
 hw/nseries.c                                  | 2 +-
 hw/omap_dss.c                                 | 2 +-
 hw/omap_lcdc.c                                | 5 ++---
 hw/omap_sx1.c                                 | 2 +-
 hw/palm.c                                     | 2 +-
 hw/pl110.c                                    | 5 ++---
 hw/ps2.c                                      | 2 +-
 hw/puv3.c                                     | 2 +-
 hw/pxa2xx_keypad.c                            | 2 +-
 hw/pxa2xx_lcd.c                               | 4 ++--
 hw/qxl.h                                      | 2 +-
 hw/sm501.c                                    | 5 ++---
 hw/spitz.c                                    | 2 +-
 hw/ssd0303.c                                  | 2 +-
 hw/ssd0323.c                                  | 2 +-
 hw/stellaris_input.c                          | 2 +-
 hw/tc6393xb.c                                 | 4 ++--
 hw/tcx.c                                      | 4 ++--
 hw/tsc2005.c                                  | 2 +-
 hw/tsc210x.c                                  | 2 +-
 hw/twl92230.c                                 | 2 +-
 hw/usb/dev-hid.c                              | 2 +-
 hw/usb/dev-storage.c                          | 2 +-
 hw/usb/dev-wacom.c                            | 2 +-
 hw/usb/host-stub.c                            | 2 +-
 hw/vga-isa-mm.c                               | 4 ++--
 hw/vga-isa.c                                  | 4 ++--
 hw/vga-pci.c                                  | 4 ++--
 hw/vga.c                                      | 4 ++--
 hw/vmmouse.c                                  | 2 +-
 hw/vmware_vga.c                               | 2 +-
 hw/xenfb.c                                    | 2 +-
 hw/z2.c                                       | 2 +-
 console.h => include/ui/console.h             | 2 +-
 {hw => include/ui}/pixel_ops.h                | 0
 qemu-pixman.h => include/ui/qemu-pixman.h     | 0
 {ui => include/ui}/qemu-spice.h               | 0
 {ui => include/ui}/spice-display.h            | 2 +-
 monitor.c                                     | 2 +-
 qemu-char.c                                   | 2 +-
 qemu-timer.c                                  | 2 +-
 target-unicore32/helper.c                     | 2 +-
 ui/Makefile.objs                              | 2 +-
 ui/cocoa.m                                    | 2 +-
 console.c => ui/console.c                     | 2 +-
 ui/curses.c                                   | 2 +-
 cursor.c => ui/cursor.c                       | 2 +-
 cursor_hidden.xpm => ui/cursor_hidden.xpm     | 0
 cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm | 0
 input.c => ui/input.c                         | 2 +-
 qemu-pixman.c => ui/qemu-pixman.c             | 2 +-
 qemu-x509.h => ui/qemu-x509.h                 | 0
 ui/sdl.c                                      | 2 +-
 ui/spice-core.c                               | 4 ++--
 ui/spice-display.c                            | 6 +++---
 ui/spice-input.c                              | 4 ++--
 vgafont.h => ui/vgafont.h                     | 0
 ui/vnc.h                                      | 2 +-
 vl.c                                          | 2 +-
 80 files changed, 95 insertions(+), 101 deletions(-)
 rename console.h => include/ui/console.h (99%)
 rename {hw => include/ui}/pixel_ops.h (100%)
 rename qemu-pixman.h => include/ui/qemu-pixman.h (100%)
 rename {ui => include/ui}/qemu-spice.h (100%)
 rename {ui => include/ui}/spice-display.h (99%)
 rename console.c => ui/console.c (99%)
 rename cursor.c => ui/cursor.c (99%)
 rename cursor_hidden.xpm => ui/cursor_hidden.xpm (100%)
 rename cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm (100%)
 rename input.c => ui/input.c (99%)
 rename qemu-pixman.c => ui/qemu-pixman.c (98%)
 rename qemu-x509.h => ui/qemu-x509.h (100%)
 rename vgafont.h => ui/vgafont.h (100%)
Makefile.objs +1 -3
index fe78836..a637a4a 100644
@@ -68,8 +68,7 @@ endif
 common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/
 common-obj-y += net/
 common-obj-y += qom/
-common-obj-y += readline.o console.o cursor.o
-common-obj-y += qemu-pixman.o
+common-obj-y += readline.o
 common-obj-y += $(oslib-obj-y)
 common-obj-$(CONFIG_WIN32) += os-win32.o
 common-obj-$(CONFIG_POSIX) += os-posix.o
@@ -78,7 +77,6 @@ common-obj-$(CONFIG_LINUX) += fsdev/
 extra-obj-$(CONFIG_LINUX) += fsdev/
 
 common-obj-y += tcg-runtime.o host-utils.o main-loop.o
-common-obj-y += input.o
 common-obj-y += buffered_file.o migration.o migration-tcp.o
 common-obj-y += qemu-char.o #aio.o
 common-obj-y += block-migration.o iohandler.o
hmp.c +1 -1
index 9b31e9f..f235134 100644
@@ -21,7 +21,7 @@
 #include "qmp-commands.h"
 #include "qemu_socket.h"
 #include "monitor.h"
-#include "console.h"
+#include "ui/console.h"
 
 static void hmp_handle_error(Monitor *mon, Error **errp)
 {
hw/adb.c +1 -1
index 3b547f0..cc8ad8e 100644
@@ -23,7 +23,7 @@
  */
 #include "hw.h"
 #include "adb.h"
-#include "console.h"
+#include "ui/console.h"
 
 /* debug ADB */
 //#define DEBUG_ADB
hw/ads7846.c +1 -1
index 2ea9e55..fa137e6 100644
@@ -11,7 +11,7 @@
  */
 
 #include "ssi.h"
-#include "console.h"
+#include "ui/console.h"
 
 typedef struct {
     SSISlave ssidev;
hw/applesmc.c +1 -1
index 8bedaad..91e7cb3 100644
@@ -32,7 +32,7 @@
 
 #include "hw.h"
 #include "isa.h"
-#include "console.h"
+#include "ui/console.h"
 #include "qemu-timer.h"
 
 /* #define DEBUG_SMC */
hw/blizzard.c +2 -2
index 1b57eb5..24bde32 100644
@@ -19,10 +19,10 @@
  */
 
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "devices.h"
 #include "vga_int.h"
-#include "pixel_ops.h"
+#include "ui/pixel_ops.h"
 
 typedef void (*blizzard_fn_t)(uint8_t *, const uint8_t *, unsigned int);
 
hw/bt-hid.c +1 -1
index 8d7a3da..0ec0c01 100644
@@ -20,7 +20,7 @@
 
 #include "qemu-common.h"
 #include "qemu-timer.h"
-#include "console.h"
+#include "ui/console.h"
 #include "hid.h"
 #include "bt.h"
 
hw/cirrus_vga.c +1 -1
index 7d021f2..80510bc 100644
@@ -28,7 +28,7 @@
  */
 #include "hw.h"
 #include "pci/pci.h"
-#include "console.h"
+#include "ui/console.h"
 #include "vga_int.h"
 #include "loader.h"
 
hw/escc.c +1 -1
index a356613..38e8164 100644
@@ -26,7 +26,7 @@
 #include "sysbus.h"
 #include "escc.h"
 #include "qemu-char.h"
-#include "console.h"
+#include "ui/console.h"
 #include "trace.h"
 
 /*
hw/exynos4210_fimd.c +2 -2
index f2443ca..3ef0847 100644
@@ -25,8 +25,8 @@
 #include "qemu-common.h"
 #include "cpu-all.h"
 #include "sysbus.h"
-#include "console.h"
-#include "pixel_ops.h"
+#include "ui/console.h"
+#include "ui/pixel_ops.h"
 #include "bswap.h"
 
 /* Debug messages configuration */
hw/framebuffer.c +1 -1
index fa0f786..2a87096 100644
@@ -18,7 +18,7 @@
  */
 
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "framebuffer.h"
 
 /* Render an image from a shared memory framebuffer.  */
hw/g364fb.c +2 -2
index 8192baf..b46a044 100644
@@ -18,8 +18,8 @@
  */
 
 #include "hw.h"
-#include "console.h"
-#include "pixel_ops.h"
+#include "ui/console.h"
+#include "ui/pixel_ops.h"
 #include "trace.h"
 #include "sysbus.h"
 
hw/hid.c +1 -1
index 03761ab..7935998 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "qemu-timer.h"
 #include "hid.h"
 
hw/hpet.c +1 -1
index 50ac067..49e1b63 100644
@@ -26,7 +26,7 @@
 
 #include "hw.h"
 #include "pc.h"
-#include "console.h"
+#include "ui/console.h"
 #include "qemu-timer.h"
 #include "hpet_emul.h"
 #include "sysbus.h"
hw/jazz_led.c +2 -2
index 09c7742..f4a0406 100644
@@ -23,8 +23,8 @@
  */
 
 #include "qemu-common.h"
-#include "console.h"
-#include "pixel_ops.h"
+#include "ui/console.h"
+#include "ui/pixel_ops.h"
 #include "trace.h"
 #include "sysbus.h"
 
hw/kvm/pci-assign.c +1 -1
index 4229159..2629775 100644
@@ -29,7 +29,7 @@
 #include "hw/hw.h"
 #include "hw/pc.h"
 #include "qemu-error.h"
-#include "console.h"
+#include "ui/console.h"
 #include "hw/loader.h"
 #include "monitor.h"
 #include "range.h"
hw/lm832x.c +1 -1
index 8e09f9b..b14a089 100644
@@ -21,7 +21,7 @@
 #include "hw.h"
 #include "i2c.h"
 #include "qemu-timer.h"
-#include "console.h"
+#include "ui/console.h"
 
 typedef struct {
     I2CSlave i2c;
hw/milkymist-softusb.c +1 -1
index b162b88..0743668 100644
@@ -24,7 +24,7 @@
 #include "hw.h"
 #include "sysbus.h"
 #include "trace.h"
-#include "console.h"
+#include "ui/console.h"
 #include "hid.h"
 #include "qemu-error.h"
 
hw/milkymist-vgafb.c +2 -2
index 833881c..c347131 100644
@@ -25,9 +25,9 @@
 #include "hw.h"
 #include "sysbus.h"
 #include "trace.h"
-#include "console.h"
+#include "ui/console.h"
 #include "framebuffer.h"
-#include "pixel_ops.h"
+#include "ui/pixel_ops.h"
 #include "qemu-error.h"
 
 #define BITS 8
hw/msmouse.c +3 -3
index 9c492a4..decb1a3 100644
@@ -22,9 +22,9 @@
  * THE SOFTWARE.
  */
 #include <stdlib.h>
-#include "../qemu-common.h"
-#include "../qemu-char.h"
-#include "../console.h"
+#include "qemu-common.h"
+#include "qemu-char.h"
+#include "ui/console.h"
 #include "msmouse.h"
 
 #define MSMOUSE_LO6(n) ((n) & 0x3f)
hw/musicpal.c +2 -3
index 4e8399a..d16cd14 100644
@@ -20,10 +20,11 @@
 #include "ptimer.h"
 #include "block.h"
 #include "flash.h"
-#include "console.h"
+#include "ui/console.h"
 #include "i2c.h"
 #include "blockdev.h"
 #include "exec-memory.h"
+#include "ui/pixel_ops.h"
 
 #define MP_MISC_BASE            0x80002000
 #define MP_MISC_SIZE            0x00001000
@@ -492,8 +493,6 @@ SET_LCD_PIXEL(8, uint8_t)
 SET_LCD_PIXEL(16, uint16_t)
 SET_LCD_PIXEL(32, uint32_t)
 
-#include "pixel_ops.h"
-
 static void lcd_refresh(void *opaque)
 {
     musicpal_lcd_state *s = opaque;
hw/nseries.c +1 -1
index 2de8d21..dcd3dc9 100644
@@ -23,7 +23,7 @@
 #include "omap.h"
 #include "arm-misc.h"
 #include "irq.h"
-#include "console.h"
+#include "ui/console.h"
 #include "boards.h"
 #include "i2c.h"
 #include "devices.h"
hw/omap_dss.c +1 -1
index 1e83726..ae51bdf 100644
@@ -18,7 +18,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "omap.h"
 
 struct omap_dss_s {
hw/omap_lcdc.c +2 -3
index d7ae303..936850a 100644
@@ -17,9 +17,10 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "omap.h"
 #include "framebuffer.h"
+#include "ui/pixel_ops.h"
 
 struct omap_lcd_panel_s {
     MemoryRegion *sysmem;
@@ -66,8 +67,6 @@ static void omap_lcd_interrupts(struct omap_lcd_panel_s *s)
     qemu_irq_lower(s->irq);
 }
 
-#include "pixel_ops.h"
-
 #define draw_line_func drawfn
 
 #define DEPTH 8
hw/omap_sx1.c +1 -1
index 21a5bbb..918a6f6 100644
@@ -26,7 +26,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "omap.h"
 #include "boards.h"
 #include "arm-misc.h"
hw/palm.c +1 -1
index 6f6f414..5aaeb07 100644
@@ -19,7 +19,7 @@
 #include "hw.h"
 #include "audio/audio.h"
 #include "sysemu.h"
-#include "console.h"
+#include "ui/console.h"
 #include "omap.h"
 #include "boards.h"
 #include "arm-misc.h"
hw/pl110.c +2 -3
index f869ba6..098e335 100644
@@ -8,8 +8,9 @@
  */
 
 #include "sysbus.h"
-#include "console.h"
+#include "ui/console.h"
 #include "framebuffer.h"
+#include "ui/pixel_ops.h"
 
 #define PL110_CR_EN   0x001
 #define PL110_CR_BGR  0x100
@@ -109,8 +110,6 @@ static const unsigned char *idregs[] = {
     pl111_id
 };
 
-#include "pixel_ops.h"
-
 #define BITS 8
 #include "pl110_template.h"
 #define BITS 15
hw/ps2.c +1 -1
index f93cd24..ba80089 100644
@@ -23,7 +23,7 @@
  */
 #include "hw.h"
 #include "ps2.h"
-#include "console.h"
+#include "ui/console.h"
 #include "sysemu.h"
 
 /* debug PC keyboard */
hw/puv3.c +1 -1
index 6f89c44..9f8e294 100644
@@ -10,7 +10,7 @@
  */
 
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "elf.h"
 #include "exec-memory.h"
 #include "sysbus.h"
hw/pxa2xx_keypad.c +1 -1
index 257984c..4ff04ad 100644
@@ -13,7 +13,7 @@
 
 #include "hw.h"
 #include "pxa.h"
-#include "console.h"
+#include "ui/console.h"
 
 /*
  * Keypad
hw/pxa2xx_lcd.c +2 -2
index b53dfaf..b5efd4d 100644
@@ -11,9 +11,9 @@
  */
 
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pxa.h"
-#include "pixel_ops.h"
+#include "ui/pixel_ops.h"
 /* FIXME: For graphic_rotate. Should probably be done in common code.  */
 #include "sysemu.h"
 #include "framebuffer.h"
hw/qxl.h +1 -1
index 41246c7..8433d1a 100644
@@ -1,6 +1,6 @@
 #include "qemu-common.h"
 
-#include "console.h"
+#include "ui/console.h"
 #include "hw.h"
 #include "pci/pci.h"
 #include "vga_int.h"
hw/sm501.c +2 -3
index 50324cd..714aca0 100644
@@ -25,11 +25,12 @@
 #include <stdio.h>
 #include "hw.h"
 #include "serial.h"
-#include "console.h"
+#include "ui/console.h"
 #include "devices.h"
 #include "sysbus.h"
 #include "qdev-addr.h"
 #include "range.h"
+#include "ui/pixel_ops.h"
 
 /*
  * Status: 2010/05/07
@@ -1163,8 +1164,6 @@ static const MemoryRegionOps sm501_2d_engine_ops = {
 
 /* draw line functions for all console modes */
 
-#include "pixel_ops.h"
-
 typedef void draw_line_func(uint8_t *d, const uint8_t *s,
 			    int width, const uint32_t *pal);
 
hw/spitz.c +1 -1
index 12e2815..d4575d2 100644
@@ -21,7 +21,7 @@
 #include "qemu-timer.h"
 #include "devices.h"
 #include "sharpsl.h"
-#include "console.h"
+#include "ui/console.h"
 #include "block.h"
 #include "audio/audio.h"
 #include "boards.h"
hw/ssd0303.c +1 -1
index d7fd828..cbdf49a 100644
@@ -11,7 +11,7 @@
    implement one.  Most of the commends relating to brightness and geometry
    setup are ignored. */
 #include "i2c.h"
-#include "console.h"
+#include "ui/console.h"
 
 //#define DEBUG_SSD0303 1
 
hw/ssd0323.c +1 -1
index 4098830..fe6f801 100644
@@ -11,7 +11,7 @@
    implement one.  Most of the commends relating to brightness and geometry
    setup are ignored. */
 #include "ssi.h"
-#include "console.h"
+#include "ui/console.h"
 
 //#define DEBUG_SSD0323 1
 
hw/stellaris_input.c +1 -1
index 68c600c..7a95c3f 100644
@@ -8,7 +8,7 @@
  */
 #include "hw.h"
 #include "devices.h"
-#include "console.h"
+#include "ui/console.h"
 
 typedef struct {
     qemu_irq irq;
hw/tc6393xb.c +2 -2
index f032027..edf7681 100644
@@ -13,8 +13,8 @@
 #include "hw.h"
 #include "devices.h"
 #include "flash.h"
-#include "console.h"
-#include "pixel_ops.h"
+#include "ui/console.h"
+#include "ui/pixel_ops.h"
 #include "blockdev.h"
 
 #define IRQ_TC6393_NAND		0
hw/tcx.c +2 -2
index a66fbee..185588b 100644
@@ -23,8 +23,8 @@
  */
 
 #include "qemu-common.h"
-#include "console.h"
-#include "pixel_ops.h"
+#include "ui/console.h"
+#include "ui/pixel_ops.h"
 #include "sysbus.h"
 #include "qdev-addr.h"
 
hw/tsc2005.c +1 -1
index 9a500eb..e232628 100644
@@ -20,7 +20,7 @@
 
 #include "hw.h"
 #include "qemu-timer.h"
-#include "console.h"
+#include "ui/console.h"
 #include "devices.h"
 
 #define TSC_CUT_RESOLUTION(value, p)	((value) >> (16 - (p ? 12 : 10)))
hw/tsc210x.c +1 -1
index 3c448a6..2b3535d 100644
@@ -22,7 +22,7 @@
 #include "hw.h"
 #include "audio/audio.h"
 #include "qemu-timer.h"
-#include "console.h"
+#include "ui/console.h"
 #include "omap.h"	/* For I2SCodec and uWireSlave */
 #include "devices.h"
 
hw/twl92230.c +1 -1
index 0d70d84..ce699bd 100644
@@ -23,7 +23,7 @@
 #include "qemu-timer.h"
 #include "i2c.h"
 #include "sysemu.h"
-#include "console.h"
+#include "ui/console.h"
 
 #define VERBOSE 1
 
hw/usb/dev-hid.c +1 -1
index 8749128..6953f2e 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 #include "hw/hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
 #include "qemu-timer.h"
hw/usb/dev-storage.c +1 -1
index 50af971..de56fea 100644
@@ -13,7 +13,7 @@
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
 #include "hw/scsi.h"
-#include "console.h"
+#include "ui/console.h"
 #include "monitor.h"
 #include "sysemu.h"
 #include "blockdev.h"
hw/usb/dev-wacom.c +1 -1
index f7342b0..9ab368a 100644
@@ -26,7 +26,7 @@
  * THE SOFTWARE.
  */
 #include "hw/hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
 
hw/usb/host-stub.c +1 -1
index b4e10c1..e8da322 100644
@@ -31,7 +31,7 @@
  */
 
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "hw/usb.h"
 #include "monitor.h"
 
hw/vga-isa-mm.c +2 -2
index 8ef4320..008703f 100644
@@ -22,10 +22,10 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pc.h"
 #include "vga_int.h"
-#include "pixel_ops.h"
+#include "ui/pixel_ops.h"
 #include "qemu-timer.h"
 
 #define VGA_RAM_SIZE (8192 * 1024)
hw/vga-isa.c +2 -2
index 046602b..d1d5b11 100644
@@ -24,10 +24,10 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pc.h"
 #include "vga_int.h"
-#include "pixel_ops.h"
+#include "ui/pixel_ops.h"
 #include "qemu-timer.h"
 #include "loader.h"
 
hw/vga-pci.c +2 -2
index 0cb318e..fe3a3d4 100644
@@ -24,10 +24,10 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pci/pci.h"
 #include "vga_int.h"
-#include "pixel_ops.h"
+#include "ui/pixel_ops.h"
 #include "qemu-timer.h"
 #include "loader.h"
 
hw/vga.c +2 -2
index ab40d73..4007116 100644
@@ -23,11 +23,11 @@
  */
 #include "hw.h"
 #include "vga.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pc.h"
 #include "pci/pci.h"
 #include "vga_int.h"
-#include "pixel_ops.h"
+#include "ui/pixel_ops.h"
 #include "qemu-timer.h"
 #include "xen.h"
 #include "trace.h"
hw/vmmouse.c +1 -1
index 6338efa..d052f33 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "ps2.h"
 #include "pc.h"
 #include "qdev.h"
hw/vmware_vga.c +1 -1
index 333ec8c..b0e772f 100644
@@ -23,7 +23,7 @@
  */
 #include "hw.h"
 #include "loader.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pci/pci.h"
 
 #undef VERBOSE
hw/xenfb.c +1 -1
index 442a63a..b1122bd 100644
@@ -36,7 +36,7 @@
 #include <time.h>
 
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "qemu-char.h"
 #include "xen_backend.h"
 
hw/z2.c +1 -1
index f62b806..d461864 100644
@@ -21,7 +21,7 @@
 #include "sysemu.h"
 #include "flash.h"
 #include "blockdev.h"
-#include "console.h"
+#include "ui/console.h"
 #include "audio/audio.h"
 #include "exec-memory.h"
 
include/ui/console.h renamed from console.h +1 -1
similarity index 99%
rename from console.h
rename to include/ui/console.h
index 33354e4..777881d 100644
@@ -1,7 +1,7 @@
 #ifndef CONSOLE_H
 #define CONSOLE_H
 
-#include "qemu-pixman.h"
+#include "ui/qemu-pixman.h"
 #include "qdict.h"
 #include "notify.h"
 #include "monitor.h"
include/ui/pixel_ops.h renamed from hw/pixel_ops.h +0 -0
similarity index 100%
rename from hw/pixel_ops.h
rename to include/ui/pixel_ops.h
include/ui/qemu-pixman.h renamed from qemu-pixman.h +0 -0
similarity index 100%
rename from qemu-pixman.h
rename to include/ui/qemu-pixman.h
include/ui/qemu-spice.h renamed from ui/qemu-spice.h +0 -0
similarity index 100%
rename from ui/qemu-spice.h
rename to include/ui/qemu-spice.h
include/ui/spice-display.h renamed from ui/spice-display.h +1 -1
similarity index 99%
rename from ui/spice-display.h
rename to include/ui/spice-display.h
index 38b6ea9..928e0a1 100644
@@ -20,7 +20,7 @@
 #include <spice/qxl_dev.h>
 
 #include "qemu-thread.h"
-#include "qemu-pixman.h"
+#include "ui/qemu-pixman.h"
 #include "sysemu.h"
 
 #define NUM_MEMSLOTS 8
monitor.c +1 -1
index 37b9d20..6546f8c 100644
@@ -38,7 +38,7 @@
 #include "sysemu.h"
 #include "monitor.h"
 #include "readline.h"
-#include "console.h"
+#include "ui/console.h"
 #include "blockdev.h"
 #include "audio/audio.h"
 #include "disas/disas.h"
qemu-char.c +1 -1
index f066ad0..bc53d09 100644
@@ -23,7 +23,7 @@
  */
 #include "qemu-common.h"
 #include "monitor.h"
-#include "console.h"
+#include "ui/console.h"
 #include "sysemu.h"
 #include "qemu-timer.h"
 #include "qemu-char.h"
qemu-timer.c +1 -1
index 9b9585b..5a99403 100644
@@ -24,7 +24,7 @@
 
 #include "sysemu.h"
 #include "monitor.h"
-#include "console.h"
+#include "ui/console.h"
 
 #include "hw/hw.h"
 
target-unicore32/helper.c +1 -1
index a9e226b..4b68561 100644
@@ -13,7 +13,7 @@
 #include "gdbstub.h"
 #include "helper.h"
 #include "host-utils.h"
-#include "console.h"
+#include "ui/console.h"
 
 #undef DEBUG_UC32
 
ui/Makefile.objs +1 -1
index fd339d2..dc8f0e4 100644
@@ -6,7 +6,7 @@ vnc-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
 vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
 vnc-obj-y += vnc-jobs.o
 
-common-obj-y += keymaps.o
+common-obj-y += keymaps.o console.o cursor.o input.o qemu-pixman.o
 common-obj-$(CONFIG_SPICE) += spice-core.o spice-input.o spice-display.o
 common-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
 common-obj-$(CONFIG_COCOA) += cocoa.o
ui/cocoa.m +1 -1
index 87d2e44..0afa6f8 100644
@@ -26,7 +26,7 @@
 #include <crt_externs.h>
 
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "sysemu.h"
 
 #ifndef MAC_OS_X_VERSION_10_4
ui/console.c renamed from console.c +1 -1
similarity index 99%
rename from console.c
rename to ui/console.c
index 9ac7b28..60bfb72 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "qemu-timer.h"
 #include "qmp-commands.h"
 #include "qemu-char.h"
ui/curses.c +1 -1
index 5dc0b2c..5d15e9e 100644
@@ -29,7 +29,7 @@
 #endif
 
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "sysemu.h"
 
 #define FONT_HEIGHT 16
ui/cursor.c renamed from cursor.c +1 -1
similarity index 99%
rename from cursor.c
rename to ui/cursor.c
index 76e262c..2b8dd3f 100644
@@ -1,5 +1,5 @@
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 
 #include "cursor_hidden.xpm"
 #include "cursor_left_ptr.xpm"
ui/cursor_hidden.xpm renamed from cursor_hidden.xpm +0 -0
similarity index 100%
rename from cursor_hidden.xpm
rename to ui/cursor_hidden.xpm
ui/cursor_left_ptr.xpm renamed from cursor_left_ptr.xpm +0 -0
similarity index 100%
rename from cursor_left_ptr.xpm
rename to ui/cursor_left_ptr.xpm
ui/input.c renamed from input.c +1 -1
similarity index 99%
rename from input.c
rename to ui/input.c
index 123bb23..58d3b47 100644
@@ -24,7 +24,7 @@
 
 #include "sysemu.h"
 #include "monitor.h"
-#include "console.h"
+#include "ui/console.h"
 #include "error.h"
 #include "qmp-commands.h"
 #include "qapi-types.h"
ui/qemu-pixman.c renamed from qemu-pixman.c +1 -1
similarity index 98%
rename from qemu-pixman.c
rename to ui/qemu-pixman.c
index e7263fb..609335a 100644
@@ -3,7 +3,7 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include "qemu-pixman.h"
+#include "ui/qemu-pixman.h"
 
 int qemu_pixman_get_type(int rshift, int gshift, int bshift)
 {
ui/qemu-x509.h renamed from qemu-x509.h +0 -0
similarity index 100%
rename from qemu-x509.h
rename to ui/qemu-x509.h
ui/sdl.c +1 -1
index 37f01b2..bcbf89d 100644
@@ -29,7 +29,7 @@
 #include <SDL_syswm.h>
 
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "sysemu.h"
 #include "x_keymap.h"
 #include "sdl_zoom.h"
ui/spice-core.c +2 -2
index 261c6f2..ec925ec 100644
@@ -22,7 +22,7 @@
 #include "sysemu.h"
 
 #include "qemu-common.h"
-#include "qemu-spice.h"
+#include "ui/qemu-spice.h"
 #include "qemu-thread.h"
 #include "qemu-timer.h"
 #include "qemu-queue.h"
@@ -37,7 +37,7 @@
 #include "migration.h"
 #include "monitor.h"
 #include "hw/hw.h"
-#include "spice-display.h"
+#include "ui/spice-display.h"
 
 /* core bits */
 
ui/spice-display.c +3 -3
index 6aff336..681fe32 100644
@@ -16,15 +16,15 @@
  */
 
 #include "qemu-common.h"
-#include "qemu-spice.h"
+#include "ui/qemu-spice.h"
 #include "qemu-timer.h"
 #include "qemu-queue.h"
 #include "monitor.h"
-#include "console.h"
+#include "ui/console.h"
 #include "sysemu.h"
 #include "trace.h"
 
-#include "spice-display.h"
+#include "ui/spice-display.h"
 
 static int debug = 0;
 
ui/spice-input.c +2 -2
index af4223d..3beb8de 100644
@@ -24,8 +24,8 @@
 #include <spice/enums.h>
 
 #include "qemu-common.h"
-#include "qemu-spice.h"
-#include "console.h"
+#include "ui/qemu-spice.h"
+#include "ui/console.h"
 
 /* keyboard bits */
 
ui/vgafont.h renamed from vgafont.h +0 -0
similarity index 100%
rename from vgafont.h
rename to ui/vgafont.h
ui/vnc.h +1 -1
index 6141e88..7ec1833 100644
@@ -30,7 +30,7 @@
 #include "qemu-common.h"
 #include "qemu-queue.h"
 #include "qemu-thread.h"
-#include "console.h"
+#include "ui/console.h"
 #include "monitor.h"
 #include "audio/audio.h"
 #include "bitmap.h"
vl.c +1 -1
index a7eeafc..6713220 100644
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
 #include "net/net.h"
 #include "net/slirp.h"
 #include "monitor.h"
-#include "console.h"
+#include "ui/console.h"
 #include "sysemu.h"
 #include "gdbstub.h"
 #include "qemu-timer.h"
Signature · 1 line
1.8.0.2
#17 lore raw

PATCH 17/32 qapi: move inclusions of qemu-common.h from headers to .c files

In reply to Paolo Bonzini
---
 qapi/opts-visitor.c      | 1 +
 qapi/qapi-types-core.h   | 1 -
 qapi/qapi-visit-core.c   | 1 +
 scripts/qapi-commands.py | 1 +
 scripts/qapi-visit.py    | 1 +
 5 files changed, 4 insertions(+), 1 deletion(-)
qapi/opts-visitor.c +1 -0
index e048b6c..e3fd254 100644
@@ -10,6 +10,7 @@
  *
  */
 
+#include "qemu-common.h"
 #include "opts-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-option-internal.h"
qapi/qapi-types-core.h +0 -1
index f781fc3..831df21 100644
@@ -14,7 +14,6 @@
 #ifndef QAPI_TYPES_CORE_H
 #define QAPI_TYPES_CORE_H
 
-#include "qemu-common.h"
 #include "error.h"
 #include "qerror.h"
 
qapi/qapi-visit-core.c +1 -0
index 7a82b63..3002939 100644
@@ -11,6 +11,7 @@
  *
  */
 
+#include "qemu-common.h"
 #include "qapi/qapi-visit-core.h"
 #include "qapi/qapi-visit-impl.h"
 
scripts/qapi-commands.py +1 -0
index 3c4678d..2db0bf1 100644
@@ -366,6 +366,7 @@ def gen_command_def_prologue(prefix="", proxy=False):
  *
  */
 
+#include "qemu-common.h"
 #include "qemu-objects.h"
 #include "qapi/qmp-core.h"
 #include "qapi/qapi-visit-core.h"
scripts/qapi-visit.py +1 -0
index a360de7..f1aabb3 100644
@@ -298,6 +298,7 @@ fdef.write(mcgen('''
  *
  */
 
+#include "qemu-common.h"
 #include "%(header)s"
 ''',
                  header=basename(h_file)))
Signature · 1 line
1.8.0.2
#18 lore raw

PATCH 18/32 qapi: remove qapi/qapi-types-core.h

In reply to Paolo Bonzini

The file is only including error.h and qerror.h. Prefer explicit inclusion of whatever files are needed.

---
 qapi/opts-visitor.c         |  1 +
 qapi/qapi-dealloc-visitor.c |  1 +
 qapi/qapi-types-core.h      | 20 --------------------
 qapi/qapi-visit-core.c      |  1 +
 qapi/qapi-visit-core.h      |  2 +-
 qapi/qapi-visit-impl.h      |  2 +-
 qemu-option-internal.h      |  1 +
 qom/object.c                |  1 +
 scripts/qapi-commands.py    |  2 ++
 target-i386/cpu.c           |  1 +
 10 files changed, 10 insertions(+), 22 deletions(-)
 delete mode 100644 qapi/qapi-types-core.h
qapi/opts-visitor.c +1 -0
index e3fd254..6ccb8a1 100644
@@ -11,6 +11,7 @@
  */
 
 #include "qemu-common.h"
+#include "qerror.h"
 #include "opts-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-option-internal.h"
qapi/qapi-dealloc-visitor.c +1 -0
index 75214e7..7c44042 100644
@@ -15,6 +15,7 @@
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-objects.h"
+#include "qapi-visit-impl.h"
 
 typedef struct StackEntry
 {
qapi/qapi-types-core.h deleted +0 -20
deleted file mode 100644
index 831df21..0000000
@@ -1,20 +0,0 @@
-/*
- * Core Definitions for QAPI-generated Types
- *
- * Copyright IBM, Corp. 2011
- *
- * Authors:
- *  Anthony Liguori   <[email protected]>
- *
- * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
- * See the COPYING.LIB file in the top-level directory.
- *
- */
-
-#ifndef QAPI_TYPES_CORE_H
-#define QAPI_TYPES_CORE_H
-
-#include "error.h"
-#include "qerror.h"
-
-#endif
qapi/qapi-visit-core.c +1 -0
index 3002939..4649fb7 100644
@@ -12,6 +12,7 @@
  */
 
 #include "qemu-common.h"
+#include "qerror.h"
 #include "qapi/qapi-visit-core.h"
 #include "qapi/qapi-visit-impl.h"
 
qapi/qapi-visit-core.h +1 -1
index 60aceda..00ce678 100644
@@ -13,7 +13,7 @@
 #ifndef QAPI_VISITOR_CORE_H
 #define QAPI_VISITOR_CORE_H
 
-#include "qapi/qapi-types-core.h"
+#include "error.h"
 #include <stdlib.h>
 
 typedef struct GenericList
qapi/qapi-visit-impl.h +1 -1
index 0f3a189..efd4271 100644
@@ -12,7 +12,7 @@
 #ifndef QAPI_VISITOR_IMPL_H
 #define QAPI_VISITOR_IMPL_H
 
-#include "qapi/qapi-types-core.h"
+#include "error.h"
 #include "qapi/qapi-visit-core.h"
 
 void input_type_enum(Visitor *v, int *obj, const char *strings[],
qemu-option-internal.h +1 -0
index 19fdc1c..77899b0 100644
@@ -27,6 +27,7 @@
 #define QEMU_OPTIONS_INTERNAL_H
 
 #include "qemu-option.h"
+#include "qemu-error.h"
 
 struct QemuOpt {
     const char   *name;
qom/object.c +1 -0
index 0739aa2..8d3036d 100644
@@ -15,6 +15,7 @@
 #include "qapi/qapi-visit-core.h"
 #include "qapi/string-input-visitor.h"
 #include "qapi/string-output-visitor.h"
+#include "qerror.h"
 
 /* TODO: replace QObject with a simpler visitor to avoid a dependency
  * of the QOM core on QObject?  */
scripts/qapi-commands.py +2 -0
index 2db0bf1..5d034c2 100644
@@ -367,6 +367,8 @@ def gen_command_def_prologue(prefix="", proxy=False):
  */
 
 #include "qemu-common.h"
+#include "module.h"
+#include "qerror.h"
 #include "qemu-objects.h"
 #include "qapi/qmp-core.h"
 #include "qapi/qapi-visit-core.h"
target-i386/cpu.c +1 -0
index 7be3ad8..e968006 100644
@@ -26,6 +26,7 @@
 
 #include "qemu-option.h"
 #include "qemu-config.h"
+#include "qerror.h"
 
 #include "qapi/qapi-visit-core.h"
 #include "arch_init.h"
Signature · 1 line
1.8.0.2
#19 lore raw

PATCH 19/32 qapi: make struct Visitor opaque

In reply to Paolo Bonzini

Move its definition from qapi-visit-core.h to qapi-visit-impl.h.

---
 qapi/qapi-visit-core.h | 40 ----------------------------------------
 qapi/qapi-visit-impl.h | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 40 deletions(-)
qapi/qapi-visit-core.h +0 -40
index 00ce678..602debe 100644
@@ -24,46 +24,6 @@ typedef struct GenericList
 
 typedef struct Visitor Visitor;
 
-struct Visitor
-{
-    /* Must be set */
-    void (*start_struct)(Visitor *v, void **obj, const char *kind,
-                         const char *name, size_t size, Error **errp);
-    void (*end_struct)(Visitor *v, Error **errp);
-
-    void (*start_list)(Visitor *v, const char *name, Error **errp);
-    GenericList *(*next_list)(Visitor *v, GenericList **list, Error **errp);
-    void (*end_list)(Visitor *v, Error **errp);
-
-    void (*type_enum)(Visitor *v, int *obj, const char *strings[],
-                      const char *kind, const char *name, Error **errp);
-
-    void (*type_int)(Visitor *v, int64_t *obj, const char *name, Error **errp);
-    void (*type_bool)(Visitor *v, bool *obj, const char *name, Error **errp);
-    void (*type_str)(Visitor *v, char **obj, const char *name, Error **errp);
-    void (*type_number)(Visitor *v, double *obj, const char *name,
-                        Error **errp);
-
-    /* May be NULL */
-    void (*start_optional)(Visitor *v, bool *present, const char *name,
-                           Error **errp);
-    void (*end_optional)(Visitor *v, Error **errp);
-
-    void (*start_handle)(Visitor *v, void **obj, const char *kind,
-                         const char *name, Error **errp);
-    void (*end_handle)(Visitor *v, Error **errp);
-    void (*type_uint8)(Visitor *v, uint8_t *obj, const char *name, Error **errp);
-    void (*type_uint16)(Visitor *v, uint16_t *obj, const char *name, Error **errp);
-    void (*type_uint32)(Visitor *v, uint32_t *obj, const char *name, Error **errp);
-    void (*type_uint64)(Visitor *v, uint64_t *obj, const char *name, Error **errp);
-    void (*type_int8)(Visitor *v, int8_t *obj, const char *name, Error **errp);
-    void (*type_int16)(Visitor *v, int16_t *obj, const char *name, Error **errp);
-    void (*type_int32)(Visitor *v, int32_t *obj, const char *name, Error **errp);
-    void (*type_int64)(Visitor *v, int64_t *obj, const char *name, Error **errp);
-    /* visit_type_size() falls back to (*type_uint64)() if type_size is unset */
-    void (*type_size)(Visitor *v, uint64_t *obj, const char *name, Error **errp);
-};
-
 void visit_start_handle(Visitor *v, void **obj, const char *kind,
                         const char *name, Error **errp);
 void visit_end_handle(Visitor *v, Error **errp);
qapi/qapi-visit-impl.h +40 -0
index efd4271..9337d62 100644
@@ -15,6 +15,46 @@
 #include "error.h"
 #include "qapi/qapi-visit-core.h"
 
+struct Visitor
+{
+    /* Must be set */
+    void (*start_struct)(Visitor *v, void **obj, const char *kind,
+                         const char *name, size_t size, Error **errp);
+    void (*end_struct)(Visitor *v, Error **errp);
+
+    void (*start_list)(Visitor *v, const char *name, Error **errp);
+    GenericList *(*next_list)(Visitor *v, GenericList **list, Error **errp);
+    void (*end_list)(Visitor *v, Error **errp);
+
+    void (*type_enum)(Visitor *v, int *obj, const char *strings[],
+                      const char *kind, const char *name, Error **errp);
+
+    void (*type_int)(Visitor *v, int64_t *obj, const char *name, Error **errp);
+    void (*type_bool)(Visitor *v, bool *obj, const char *name, Error **errp);
+    void (*type_str)(Visitor *v, char **obj, const char *name, Error **errp);
+    void (*type_number)(Visitor *v, double *obj, const char *name,
+                        Error **errp);
+
+    /* May be NULL */
+    void (*start_optional)(Visitor *v, bool *present, const char *name,
+                           Error **errp);
+    void (*end_optional)(Visitor *v, Error **errp);
+
+    void (*start_handle)(Visitor *v, void **obj, const char *kind,
+                         const char *name, Error **errp);
+    void (*end_handle)(Visitor *v, Error **errp);
+    void (*type_uint8)(Visitor *v, uint8_t *obj, const char *name, Error **errp);
+    void (*type_uint16)(Visitor *v, uint16_t *obj, const char *name, Error **errp);
+    void (*type_uint32)(Visitor *v, uint32_t *obj, const char *name, Error **errp);
+    void (*type_uint64)(Visitor *v, uint64_t *obj, const char *name, Error **errp);
+    void (*type_int8)(Visitor *v, int8_t *obj, const char *name, Error **errp);
+    void (*type_int16)(Visitor *v, int16_t *obj, const char *name, Error **errp);
+    void (*type_int32)(Visitor *v, int32_t *obj, const char *name, Error **errp);
+    void (*type_int64)(Visitor *v, int64_t *obj, const char *name, Error **errp);
+    /* visit_type_size() falls back to (*type_uint64)() if type_size is unset */
+    void (*type_size)(Visitor *v, uint64_t *obj, const char *name, Error **errp);
+};
+
 void input_type_enum(Visitor *v, int *obj, const char *strings[],
                      const char *kind, const char *name, Error **errp);
 void output_type_enum(Visitor *v, int *obj, const char *strings[],
Signature · 1 line
1.8.0.2
#20 lore raw

PATCH 20/32 janitor: add guards to headers

In reply to Paolo Bonzini
---
 gen-icount.h                    | 5 +++++
 host-utils.h                    | 4 ++++
 hw/9pfs/virtio-9p-synth.h       | 4 ++++
 hw/audiodev.h                   | 5 +++++
 hw/baum.h                       | 4 ++++
 hw/bt.h                         | 5 +++++
 hw/cris-boot.h                  | 4 ++++
 hw/empty_slot.h                 | 5 +++++
 hw/escc.h                       | 5 +++++
 hw/etraxfs.h                    | 5 +++++
 hw/etraxfs_dma.h                | 5 +++++
 hw/flash.h                      | 5 +++++
 hw/lm32.h                       | 5 +++++
 hw/mac_dbdma.h                  | 4 ++++
 hw/msmouse.h                    | 5 +++++
 hw/ne2000.h                     | 5 +++++
 hw/pci/pci_ids.h                | 4 ++++
 hw/pcmcia.h                     | 5 +++++
 hw/pcnet.h                      | 5 +++++
 hw/ppc.h                        | 5 +++++
 hw/qdev-addr.h                  | 5 +++++
 hw/qxl.h                        | 5 +++++
 hw/s390-virtio-bus.h            | 4 ++++
 hw/scsi-defs.h                  | 4 ++++
 hw/serial.h                     | 4 ++++
 hw/soc_dma.h                    | 6 ++++++
 hw/usb/hcd-ehci.h               | 4 ++++
 hw/vga_int.h                    | 4 ++++
 hw/xilinx.h                     | 6 ++++++
 iov.h                           | 5 +++++
 linux-user/cris/syscall.h       | 5 +++++
 linux-user/microblaze/syscall.h | 6 ++++++
 linux-user/syscall_defs.h       | 6 ++++++
 slirp/bootp.h                   | 4 ++++
 slirp/main.h                    | 4 ++++
 slirp/tftp.h                    | 4 ++++
 softmmu-semi.h                  | 4 ++++
 target-cris/crisv32-decode.h    | 4 ++++
 tcg/arm/tcg-target.h            | 3 +++
 tcg/hppa/tcg-target.h           | 3 +++
 tcg/i386/tcg-target.h           | 3 +++
 tcg/ia64/tcg-target.h           | 3 +++
 tcg/mips/tcg-target.h           | 3 +++
 tcg/ppc/tcg-target.h            | 3 +++
 tcg/ppc64/tcg-target.h          | 3 +++
 tcg/s390/tcg-target.h           | 3 +++
 tcg/sparc/tcg-target.h          | 3 +++
 tests/tcg/cris/crisutils.h      | 5 +++++
 ui/curses_keys.h                | 5 +++++
 ui/d3des.h                      | 4 ++++
 50 files changed, 219 insertions(+)
gen-icount.h +5 -0
index 248cf5b..1541f0b 100644
@@ -1,3 +1,6 @@
+#ifndef GEN_ICOUNT_H
+#define GEN_ICOUNT_H 1
+
 #include "qemu-timer.h"
 
 /* Helpers for instruction counting code generation.  */
@@ -46,3 +49,5 @@ static inline void gen_io_end(void)
     tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUArchState, can_do_io));
     tcg_temp_free_i32(tmp);
 }
+
+#endif
host-utils.h +4 -0
index 821db93..a5f8464 100644
@@ -22,6 +22,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef HOST_UTILS_H
+#define HOST_UTILS_H 1
 
 #include "compiler.h"   /* QEMU_GNUC_PREREQ */
 
@@ -234,3 +236,5 @@ static inline int ctpop64(uint64_t val)
     return val;
 #endif
 }
+
+#endif
hw/9pfs/virtio-9p-synth.h +4 -0
index e03f434..ab05a8e 100644
@@ -10,6 +10,8 @@
  * the COPYING file in the top-level directory.
  *
  */
+#ifndef HW_9PFS_VIRTIO9P_SYNTH_H
+#define HW_9PFS_VIRTIO9P_SYNTH_H 1
 
 #include <unistd.h>
 #include <sys/types.h>
@@ -48,3 +50,5 @@ extern int qemu_v9fs_synth_mkdir(V9fsSynthNode *parent, int mode,
 extern int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
                                     const char *name, v9fs_synth_read read,
                                     v9fs_synth_write write, void *arg);
+
+#endif
hw/audiodev.h +5 -0
index ed2790f..428274f 100644
@@ -1,3 +1,6 @@
+#ifndef HW_AUDIODEV_H
+#define HW_AUDIODEV_H 1
+
 /* es1370.c */
 int es1370_init(PCIBus *bus);
 
@@ -18,3 +21,5 @@ int cs4231a_init(ISABus *bus);
 
 /* intel-hda.c + hda-audio.c */
 int intel_hda_and_codec_init(PCIBus *bus);
+
+#endif
hw/baum.h +4 -0
index 8af710f..7635884 100644
@@ -21,6 +21,10 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef HW_BAUM_H
+#define HW_BAUM_H 1
 
 /* char device */
 CharDriverState *chr_baum_init(QemuOpts *opts);
+
+#endif
hw/bt.h +5 -0
index ebf6a37..830af94 100644
@@ -23,6 +23,9 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef HW_BT_H
+#define HW_BT_H 1
+
 #include "hw/irq.h"
 
 /* BD Address */
@@ -2183,3 +2186,5 @@ enum bt_sdp_attribute_id {
     SDP_ATTR_NORMALLY_CONNECTABLE		= 0x020d,
     SDP_ATTR_BOOT_DEVICE			= 0x020e,
 };
+
+#endif
hw/cris-boot.h +4 -0
index 5b17d83..c4d3fa6 100644
@@ -1,3 +1,5 @@
+#ifndef _CRIS_BOOT_H
+#define HW_CRIS_BOOT_H 1
 
 struct cris_load_info
 {
@@ -9,3 +11,5 @@ struct cris_load_info
 };
 
 void cris_load_image(CRISCPU *cpu, struct cris_load_info *li);
+
+#endif
hw/empty_slot.h +5 -0
index 4e9e460..6079602 100644
@@ -1,2 +1,7 @@
+#ifndef HW_EMPTY_SLOT_H
+#define HW_EMPTY_SLOT_H 1
+
 /* empty_slot.c */
 void empty_slot_init(hwaddr addr, uint64_t slot_size);
+
+#endif
hw/escc.h +5 -0
index def2894..bda3213 100644
@@ -1,3 +1,6 @@
+#ifndef HW_ESCC_H
+#define HW_ESCC_H 1
+
 /* escc.c */
 #define ESCC_SIZE 4
 MemoryRegion *escc_init(hwaddr base, qemu_irq irqA, qemu_irq irqB,
@@ -6,3 +9,5 @@ MemoryRegion *escc_init(hwaddr base, qemu_irq irqA, qemu_irq irqB,
 
 void slavio_serial_ms_kbd_init(hwaddr base, qemu_irq irq,
                                int disabled, int clock, int it_shift);
+
+#endif
hw/etraxfs.h +5 -0
index bc60713..cc1d7a1 100644
@@ -22,6 +22,9 @@
  * THE SOFTWARE.
  */
 
+#ifndef HW_EXTRAXFS_H
+#define HW_EXTRAXFS_H 1
+
 #include "net/net.h"
 #include "etraxfs_dma.h"
 
@@ -44,3 +47,5 @@ etraxfs_eth_init(NICInfo *nd, hwaddr base, int phyaddr,
     sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
     return dev;
 }
+
+#endif
hw/etraxfs_dma.h +5 -0
index 3fef80f..38104a6 100644
@@ -1,3 +1,6 @@
+#ifndef HW_ETRAXFS_DMA_H
+#define HW_ETRAXFS_DMA_H 1
+
 struct dma_context_metadata {
 	/* data descriptor md */
 	uint16_t metadata;
@@ -27,3 +30,5 @@ void etraxfs_dmac_connect_client(void *opaque, int c,
 				 struct etraxfs_dma_client *cl);
 int etraxfs_dmac_input(struct etraxfs_dma_client *client, 
 		       void *buf, int len, int eop);
+
+#endif
hw/flash.h +5 -0
index d790f3c..bda2158 100644
@@ -1,3 +1,6 @@
+#ifndef HW_FLASH_H
+#define HW_FLASH_H 1
+
 /* NOR flash devices */
 
 #include "memory.h"
@@ -57,3 +60,5 @@ typedef struct {
 uint8_t ecc_digest(ECCState *s, uint8_t sample);
 void ecc_reset(ECCState *s);
 extern VMStateDescription vmstate_ecc_state;
+
+#endif
hw/lm32.h +5 -0
index 0a67632..4194c9a 100644
@@ -1,3 +1,6 @@
+#ifndef HW_LM32_H
+#define HW_LM32_H 1
+
 
 #include "qemu-common.h"
 
@@ -23,3 +26,5 @@ static inline DeviceState *lm32_juart_init(void)
 
     return dev;
 }
+
+#endif
hw/mac_dbdma.h +4 -0
index bfdb0dd..e596837 100644
@@ -19,6 +19,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef HW_MAC_DBDMA_H
+#define HW_MAC_DBDMA_H 1
 
 #include "memory.h"
 
@@ -42,3 +44,5 @@ void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,
                             DBDMA_rw rw, DBDMA_flush flush,
                             void *opaque);
 void* DBDMA_init (MemoryRegion **dbdma_mem);
+
+#endif
hw/msmouse.h +5 -0
index 456cb21..8cff3a7 100644
@@ -1,2 +1,7 @@
+#ifndef HW_MSMOUSE_H
+#define HW_MSMOUSE_H 1
+
 /* msmouse.c */
 CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts);
+
+#endif
hw/ne2000.h +5 -0
index 1e7ab07..b31ae03 100644
@@ -1,3 +1,6 @@
+#ifndef HW_NE2000_H
+#define HW_NE2000_H 1
+
 #define NE2000_PMEM_SIZE    (32*1024)
 #define NE2000_PMEM_START   (16*1024)
 #define NE2000_PMEM_END     (NE2000_PMEM_SIZE+NE2000_PMEM_START)
@@ -33,3 +36,5 @@ extern const VMStateDescription vmstate_ne2000;
 void ne2000_reset(NE2000State *s);
 int ne2000_can_receive(NetClientState *nc);
 ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_);
+
+#endif
hw/pci/pci_ids.h +4 -0
index 5df7245..271d935 100644
@@ -7,6 +7,8 @@
  *
  *      QEMU-specific definitions belong in pci.h
  */
+#ifndef HW_PCI_IDS_H
+#define HW_PCI_IDS_H 1
 
 /* Device classes and subclasses */
 
@@ -145,3 +147,5 @@
 
 #define PCI_VENDOR_ID_NEC                0x1033
 #define PCI_DEVICE_ID_NEC_UPD720200      0x0194
+
+#endif
hw/pcmcia.h +5 -0
index 50648c9..aac1d77 100644
@@ -1,3 +1,6 @@
+#ifndef HW_PCMCIA_H
+#define HW_PCMCIA_H 1
+
 /* PCMCIA/Cardbus */
 
 #include "qemu-common.h"
@@ -49,3 +52,5 @@ struct PCMCIACardState {
 
 /* dscm1xxxx.c */
 PCMCIACardState *dscm1xxxx_init(DriveInfo *bdrv);
+
+#endif
hw/pcnet.h +5 -0
index da8c3bd..9664311 100644
@@ -1,3 +1,6 @@
+#ifndef HW_PCNET_H
+#define HW_PCNET_H 1
+
 #define PCNET_IOPORT_SIZE       0x20
 #define PCNET_PNPMMIO_SIZE      0x20
 
@@ -63,3 +66,5 @@ void pcnet_set_link_status(NetClientState *nc);
 void pcnet_common_cleanup(PCNetState *d);
 int pcnet_common_init(DeviceState *dev, PCNetState *s, NetClientInfo *info);
 extern const VMStateDescription vmstate_pcnet;
+
+#endif
hw/ppc.h +5 -0
index 2f3ea27..17005c7 100644
@@ -1,3 +1,6 @@
+#ifndef HW_PPC_H
+#define HW_PPC_H 1
+
 void ppc_set_irq (CPUPPCState *env, int n_IRQ, int level);
 
 /* PowerPC hardware exceptions management helpers */
@@ -90,3 +93,5 @@ enum {
 
 /* ppc_booke.c */
 void ppc_booke_timers_init(CPUPPCState *env, uint32_t freq, uint32_t flags);
+
+#endif
hw/qdev-addr.h +5 -0
index ea5ecb4..79708e6 100644
@@ -1,5 +1,10 @@
+#ifndef HW_QDEV_ADDR_H
+#define HW_QDEV_ADDR_H 1
+
 #define DEFINE_PROP_TADDR(_n, _s, _f, _d)                               \
     DEFINE_PROP_DEFAULT(_n, _s, _f, _d, qdev_prop_taddr, hwaddr)
 
 extern PropertyInfo qdev_prop_taddr;
 void qdev_prop_set_taddr(DeviceState *dev, const char *name, hwaddr value);
+
+#endif
hw/qxl.h +5 -0
index 8433d1a..9130261 100644
@@ -1,3 +1,6 @@
+#ifndef HW_QXL_H
+#define HW_QXL_H 1
+
 #include "qemu-common.h"
 
 #include "ui/console.h"
@@ -158,3 +161,5 @@ void qxl_render_update(PCIQXLDevice *qxl);
 int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext);
 void qxl_render_update_area_done(PCIQXLDevice *qxl, QXLCookie *cookie);
 void qxl_render_update_area_bh(void *opaque);
+
+#endif
hw/s390-virtio-bus.h +4 -0
index a83afe7..23fedd5 100644
@@ -16,6 +16,8 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
+#ifndef HW_S390_VIRTIO_BUS_H
+#define HW_S390_VIRTIO_BUS_H 1
 
 #include "virtio-blk.h"
 #include "virtio-net.h"
@@ -100,3 +102,5 @@ VirtIOS390Device *s390_virtio_bus_find_mem(VirtIOS390Bus *bus, ram_addr_t mem);
 void s390_virtio_device_sync(VirtIOS390Device *dev);
 void s390_virtio_reset_idx(VirtIOS390Device *dev);
 
+
+#endif
hw/scsi-defs.h +4 -0
index d7a4019..9ab045b 100644
@@ -19,6 +19,8 @@
  * This header file contains public constants and structures used by
  * the scsi code for linux.
  */
+#ifndef HW_SCSI_DEFS_H
+#define HW_SCSI_DEFS_H 1
 
 /*
  *      SCSI opcodes
@@ -301,3 +303,5 @@
 #define MMC_PROFILE_HDDVD_R_DL          0x0058
 #define MMC_PROFILE_HDDVD_RW_DL         0x005A
 #define MMC_PROFILE_INVALID             0xFFFF
+
+#endif
hw/serial.h +4 -0
index ed1a5cd..2d7d614 100644
@@ -22,6 +22,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef HW_SERIAL_H
+#define HW_SERIAL_H 1
 
 #include "hw.h"
 #include "sysemu.h"
@@ -97,3 +99,5 @@ SerialState *serial_mm_init(MemoryRegion *address_space,
 
 /* serial-isa.c */
 bool serial_isa_init(ISABus *bus, int index, CharDriverState *chr);
+
+#endif
hw/soc_dma.h +6 -0
index 5948489..6ca4166 100644
@@ -18,6 +18,10 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef HW_SOC_DMA_H
+#define HW_SOC_DMA_H 1
+
+
 #include "memory.h"
 #include "hw/irq.h"
 
@@ -108,3 +112,5 @@ static inline void soc_dma_port_add_fifo_out(struct soc_dma_s *dma,
 {
     return soc_dma_port_add_fifo(dma, virt_base, fn, opaque, 1);
 }
+
+#endif
hw/usb/hcd-ehci.h +4 -0
index 772870b..837c63b 100644
@@ -14,6 +14,8 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
+#ifndef HW_USB_EHCI_H
+#define HW_USB_EHCI_H 1
 
 #include "hw/hw.h"
 #include "qemu-timer.h"
@@ -318,3 +320,5 @@ struct EHCIState {
 extern const VMStateDescription vmstate_ehci;
 
 void usb_ehci_initfn(EHCIState *s, DeviceState *dev);
+
+#endif
hw/vga_int.h +4 -0
index bcb738d..ad02404 100644
@@ -21,6 +21,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef HW_VGA_INT_H
+#define HW_VGA_INT_H 1
 
 #include <hw/hw.h>
 #include "error.h"
@@ -212,3 +214,5 @@ extern const uint8_t gr_mask[16];
 #define VGABIOS_CIRRUS_FILENAME "vgabios-cirrus.bin"
 
 extern const MemoryRegionOps vga_mem_ops;
+
+#endif
hw/xilinx.h +6 -0
index 735f8e2..a12eccb 100644
@@ -1,3 +1,7 @@
+#ifndef HW_XILINX_H
+#define HW_XILINX_H 1
+
+
 #include "stream.h"
 #include "qemu-common.h"
 #include "net/net.h"
@@ -90,3 +94,5 @@ xilinx_axiethernetdma_init(DeviceState *dev, StreamSlave *peer,
     sysbus_connect_irq(sysbus_from_qdev(dev), 0, irq);
     sysbus_connect_irq(sysbus_from_qdev(dev), 1, irq2);
 }
+
+#endif
iov.h +5 -0
index 34c8ec9..d06f8b9 100644
@@ -11,6 +11,9 @@
  * the COPYING file in the top-level directory.
  */
 
+#ifndef IOV_H
+#define IOV_H
+
 #include "qemu-common.h"
 
 /**
@@ -95,3 +98,5 @@ void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt,
 unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt,
                  const struct iovec *iov, unsigned int iov_cnt,
                  size_t offset, size_t bytes);
+
+#endif
linux-user/cris/syscall.h +5 -0
index 24f92ba..50e50b4 100644
@@ -1,3 +1,6 @@
+#ifndef CRIS_SYSCALL_H
+#define CRIS_SYSCALL_H 1
+
 
 #define UNAME_MACHINE "cris"
 
@@ -34,3 +37,5 @@ struct target_pt_regs {
         unsigned long exs;
         unsigned long eda;
 };
+
+#endif
linux-user/microblaze/syscall.h +6 -0
index db1f98a..c3e5c55 100644
@@ -1,3 +1,7 @@
+#ifndef MICROBLAZE_SYSCALLS_H
+#define MICROBLAZE_SYSCALLS_H 1
+
+
 #define UNAME_MACHINE "microblaze"
 
 /* We use microblaze_reg_t to keep things similar to the kernel sources.  */
@@ -43,3 +47,5 @@ struct target_pt_regs {
         microblaze_reg_t fsr;
         uint32_t kernel_mode;
 };
+
+#endif
linux-user/syscall_defs.h +6 -0
index a98cbf7..d4589e7 100644
@@ -4,6 +4,10 @@
    most of them stay the same, so we handle it by putting ifdefs if
    necessary */
 
+#ifndef SYSCALL_DEFS_H
+#define SYSCALL_DEFS_H 1
+
+
 #include "syscall_nr.h"
 
 #define SOCKOP_socket           1
@@ -2425,3 +2429,5 @@ struct target_ucred {
     uint32_t uid;
     uint32_t gid;
 };
+
+#endif
slirp/bootp.h +4 -0
index 30c30ab..ec3b687 100644
@@ -1,4 +1,6 @@
 /* bootp/dhcp defines */
+#ifndef SLIRP_BOOTP_H
+#define SLIRP_BOOTP_H 1
 
 #define BOOTP_SERVER	67
 #define BOOTP_CLIENT	68
@@ -120,3 +122,5 @@ typedef struct {
 #define NB_BOOTP_CLIENTS 16
 
 void bootp_input(struct mbuf *m);
+
+#endif
slirp/main.h +4 -0
index 1f3b84d..66e4f92 100644
@@ -4,6 +4,8 @@
  * Please read the file COPYRIGHT for the
  * terms and conditions of the copyright.
  */
+#ifndef SLIRP_MAIN_H
+#define SLIRP_MAIN_H 1
 
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
@@ -45,3 +47,5 @@ extern int tcp_keepintvl;
 
 int if_encap(Slirp *slirp, struct mbuf *ifm);
 ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags);
+
+#endif
slirp/tftp.h +4 -0
index 51704e4..87adeb5 100644
@@ -1,4 +1,6 @@
 /* tftp defines */
+#ifndef SLIRP_TFTP_H
+#define SLIRP_TFTP_H 1
 
 #define TFTP_SESSIONS_MAX 3
 
@@ -43,3 +45,5 @@ struct tftp_session {
 };
 
 void tftp_input(struct mbuf *m);
+
+#endif
softmmu-semi.h +4 -0
index bcb979a..93798b9 100644
@@ -6,6 +6,8 @@
  *
  * This code is licensed under the GPL
  */
+#ifndef SOFTMMU_SEMI_H
+#define SOFTMMU_SEMI_H 1
 
 static inline uint32_t softmmu_tget32(CPUArchState *env, uint32_t addr)
 {
@@ -71,3 +73,5 @@ static void softmmu_unlock_user(CPUArchState *env, void *p, target_ulong addr,
     free(p);
 }
 #define unlock_user(s, args, len) softmmu_unlock_user(env, s, args, len)
+
+#endif
target-cris/crisv32-decode.h +4 -0
index ed141de..cdba377 100644
@@ -17,6 +17,8 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
+#ifndef CRISV32_DECODE_H
+#define CRISV32_DECODE_H 1
 
 /* Convenient binary macros.  */
 #define HEX__(n) 0x##n##LU
@@ -126,3 +128,5 @@
 
 #define DEC_FTAG_FIDX_D_M {B8(10101011), B8(11111111)}
 #define DEC_FTAG_FIDX_I_M {B8(11010011), B8(11111111)}
+
+#endif
tcg/arm/tcg-target.h +3 -0
index 98fa11b..7083f3a 100644
@@ -22,6 +22,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_ARM 
 #define TCG_TARGET_ARM 1
 
 #undef TCG_TARGET_WORDS_BIGENDIAN
@@ -91,3 +92,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
     __asm __volatile__ ("swi 0x9f0002" : : "r" (_beg), "r" (_end), "r" (_flg));
 #endif
 }
+
+#endif
tcg/hppa/tcg-target.h +3 -0
index f43fb41..e2754fe 100644
@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  */
 
+#ifndef TCG_TARGET_HPPA
 #define TCG_TARGET_HPPA 1
 
 #if TCG_TARGET_REG_BITS != 32
@@ -119,3 +120,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
         start += 32;
     }
 }
+
+#endif
tcg/i386/tcg-target.h +3 -0
index dbc6756..5352ac0 100644
@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_I386 
 #define TCG_TARGET_I386 1
 
 //#define TCG_TARGET_WORDS_BIGENDIAN
@@ -135,3 +136,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
                                       tcg_target_ulong stop)
 {
 }
+
+#endif
tcg/ia64/tcg-target.h +3 -0
index 91fe7a3..7f3401e 100644
@@ -22,6 +22,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_IA64 
 #define TCG_TARGET_IA64 1
 
 /* We only map the first 64 registers */
@@ -158,3 +159,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
     }
     asm volatile (";;sync.i;;srlz.i;;");
 }
+
+#endif
tcg/mips/tcg-target.h +3 -0
index 65b5c59..78af664 100644
@@ -23,6 +23,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_MIPS 
 #define TCG_TARGET_MIPS 1
 
 #ifdef __MIPSEB__
@@ -127,3 +128,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
 {
     cacheflush ((void *)start, stop-start, ICACHE);
 }
+
+#endif
tcg/ppc/tcg-target.h +3 -0
index ad433ae..ea26769 100644
@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_PPC 
 #define TCG_TARGET_PPC 1
 
 #define TCG_TARGET_WORDS_BIGENDIAN
@@ -99,3 +100,5 @@ typedef enum {
 #define tcg_qemu_tb_exec(env, tb_ptr) \
     ((long __attribute__ ((longcall)) \
       (*)(void *, void *))code_gen_prologue)(env, tb_ptr)
+
+#endif
tcg/ppc64/tcg-target.h +3 -0
index 97fc5c9..9b8e9a0 100644
@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_PPC64 
 #define TCG_TARGET_PPC64 1
 
 #define TCG_TARGET_WORDS_BIGENDIAN
@@ -109,3 +110,5 @@ typedef enum {
 #define TCG_AREG0 TCG_REG_R27
 
 #define TCG_TARGET_EXTEND_ARGS 1
+
+#endif
tcg/s390/tcg-target.h +3 -0
index a0181ae..c87b413 100644
@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_S390 
 #define TCG_TARGET_S390 1
 
 #define TCG_TARGET_WORDS_BIGENDIAN
@@ -103,3 +104,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
                                       tcg_target_ulong stop)
 {
 }
+
+#endif
tcg/sparc/tcg-target.h +3 -0
index 0e7d398..256f973 100644
@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+#ifndef TCG_TARGET_SPARC 
 #define TCG_TARGET_SPARC 1
 
 #define TCG_TARGET_WORDS_BIGENDIAN
@@ -138,3 +139,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
     for (; p < stop; p += 8)
         __asm__ __volatile__("flush\t%0" : : "r" (p));
 }
+
+#endif
tests/tcg/cris/crisutils.h +5 -0
index 29b71cd..3456b9d 100644
@@ -1,3 +1,6 @@
+#ifndef CRISUTILS_H
+#define CRISUTILS_H 1
+
 static char *tst_cc_loc = NULL;
 
 #define cris_tst_cc_init() \
@@ -69,3 +72,5 @@ static inline void cris_tst_cc(const int n, const int z,
 	if (c) cris_tst_cc_c1(); else cris_tst_cc_c0();
 	asm volatile ("" : : "g" (_err));
 }
+
+#endif
ui/curses_keys.h +5 -0
index c0d5eb4..18ce6dc 100644
@@ -22,6 +22,9 @@
  * THE SOFTWARE.
  */
 
+#ifndef QEMU_CURSES_KEYS_H
+#define QEMU_CURSES_KEYS_H 1
+
 #include <curses.h>
 #include "keymaps.h"
 
@@ -507,3 +510,5 @@ static const name2keysym_t name2keysym[] = {
 
     { NULL, 0 },
 };
+
+#endif
ui/d3des.h +4 -0
index 78d546f..70cb6b5 100644
@@ -9,6 +9,8 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  */
+#ifndef D3DES_H
+#define D3DES_H 1
 
 /* d3des.h -
  *
@@ -49,3 +51,5 @@ void des(unsigned char *, unsigned char *);
 
 /* d3des.h V5.09 rwo 9208.04 15:06 Graven Imagery
  ********************************************************************/
+
+#endif
Signature · 1 line
1.8.0.2
#21 lore raw

PATCH 21/32 qapi: move include files to include/qobject/

In reply to Paolo Bonzini
---
 backends/rng-egd.c                                     |  2 +-
 backends/rng-random.c                                  |  2 +-
 backends/rng.c                                         |  2 +-
 balloon.c                                              |  2 +-
 block.c                                                |  2 +-
 block.h                                                |  2 +-
 block/qcow2.c                                          |  2 +-
 block/qed.c                                            |  2 +-
 block_int.h                                            |  2 +-
 blockdev-nbd.c                                         |  2 +-
 blockdev.c                                             |  4 ++--
 blockdev.h                                             |  2 +-
 blockjob.c                                             |  2 +-
 dump-stub.c                                            |  2 +-
 dump.c                                                 |  2 +-
 error.c                                                |  8 ++++----
 hmp.h                                                  |  2 +-
 hw/ivshmem.c                                           |  2 +-
 hw/mc146818rtc.c                                       |  2 +-
 hw/pci/pci-hotplug.c                                   |  2 +-
 hw/pci/pcie_aer.c                                      |  2 +-
 hw/qdev-addr.c                                         |  2 +-
 hw/qdev-core.h                                         |  2 +-
 hw/qdev-properties.c                                   |  4 ++--
 hw/qdev.c                                              |  4 ++--
 hw/vga_int.h                                           |  2 +-
 hw/watchdog.c                                          |  2 +-
 include/net/net.h                                      |  2 +-
 include/net/slirp.h                                    |  2 +-
 .../qapi/dealloc-visitor.h                             |  2 +-
 error.h => include/qapi/error.h                        |  0
 {qapi => include/qapi}/opts-visitor.h                  |  2 +-
 {qapi => include/qapi}/qmp-input-visitor.h             |  4 ++--
 {qapi => include/qapi}/qmp-output-visitor.h            |  4 ++--
 qapi/qmp-core.h => include/qapi/qmp/dispatch.h         |  6 +++---
 json-lexer.h => include/qapi/qmp/json-lexer.h          |  4 ++--
 json-parser.h => include/qapi/qmp/json-parser.h        |  4 ++--
 json-streamer.h => include/qapi/qmp/json-streamer.h    |  4 ++--
 qbool.h => include/qapi/qmp/qbool.h                    |  2 +-
 qdict.h => include/qapi/qmp/qdict.h                    |  4 ++--
 qerror.h => include/qapi/qmp/qerror.h                  |  6 +++---
 qfloat.h => include/qapi/qmp/qfloat.h                  |  2 +-
 qint.h => include/qapi/qmp/qint.h                      |  2 +-
 qjson.h => include/qapi/qmp/qjson.h                    |  4 ++--
 qlist.h => include/qapi/qmp/qlist.h                    |  2 +-
 qobject.h => include/qapi/qmp/qobject.h                |  0
 qstring.h => include/qapi/qmp/qstring.h                |  2 +-
 qemu-objects.h => include/qapi/qmp/types.h             | 16 ++++++++--------
 {qapi => include/qapi}/string-input-visitor.h          |  2 +-
 {qapi => include/qapi}/string-output-visitor.h         |  2 +-
 qapi/qapi-visit-impl.h => include/qapi/visitor-impl.h  |  4 ++--
 qapi/qapi-visit-core.h => include/qapi/visitor.h       |  2 +-
 include/qemu/rng.h                                     |  2 +-
 include/ui/console.h                                   |  4 ++--
 json-lexer.c                                           | 10 +++++-----
 json-parser.c                                          | 18 +++++++++---------
 json-streamer.c                                        | 10 +++++-----
 migration.h                                            |  4 ++--
 monitor.c                                              | 16 ++++++++--------
 monitor.h                                              |  4 ++--
 net/net.c                                              |  2 +-
 pixman                                                 |  2 +-
 qapi/opts-visitor.c                                    |  6 +++---
 qapi/qapi-dealloc-visitor.c                            |  6 +++---
 qapi/qapi-visit-core.c                                 |  6 +++---
 qapi/qmp-dispatch.c                                    | 10 +++++-----
 qapi/qmp-input-visitor.c                               |  8 ++++----
 qapi/qmp-output-visitor.c                              |  8 ++++----
 qapi/qmp-registry.c                                    |  2 +-
 qapi/string-input-visitor.c                            |  6 +++---
 qapi/string-output-visitor.c                           |  6 +++---
 qbool.c                                                |  4 ++--
 qdict.c                                                | 12 ++++++------
 qemu-char.h                                            |  4 ++--
 qemu-config.c                                          |  2 +-
 qemu-config.h                                          |  2 +-
 qemu-img.c                                             |  2 +-
 qemu-option.c                                          |  6 +++---
 qemu-option.h                                          |  4 ++--
 qemu_socket.h                                          |  4 ++--
 qerror.c                                               |  4 ++--
 qfloat.c                                               |  4 ++--
 qga/commands-posix.c                                   |  2 +-
 qga/commands-win32.c                                   |  2 +-
 qga/commands.c                                         |  2 +-
 qga/guest-agent-core.h                                 |  2 +-
 qga/main.c                                             | 12 ++++++------
 qint.c                                                 |  4 ++--
 qjson.c                                                | 18 +++++++++---------
 qlist.c                                                |  4 ++--
 qom/object.c                                           | 12 ++++++------
 qom/qom-qobject.c                                      |  2 +-
 qstring.c                                              |  4 ++--
 scripts/qapi-commands.py                               | 14 +++++++-------
 scripts/qapi-types.py                                  |  2 +-
 scripts/qapi-visit.py                                  |  2 +-
 stubs/arch-query-cpu-def.c                             |  2 +-
 target-i386/cpu-qom.h                                  |  2 +-
 target-i386/cpu.c                                      |  4 ++--
 target-openrisc/cpu.h                                  |  2 +-
 tests/check-qdict.c                                    |  6 +++---
 tests/check-qfloat.c                                   |  2 +-
 tests/check-qint.c                                     |  2 +-
 tests/check-qjson.c                                    | 14 +++++++-------
 tests/check-qlist.c                                    |  4 ++--
 tests/check-qstring.c                                  |  2 +-
 tests/test-qmp-commands.c                              |  4 ++--
 tests/test-qmp-input-strict.c                          |  2 +-
 tests/test-qmp-input-visitor.c                         |  2 +-
 tests/test-qmp-output-visitor.c                        |  2 +-
 tests/test-string-input-visitor.c                      |  2 +-
 tests/test-string-output-visitor.c                     |  2 +-
 tests/test-visitor-serialization.c                     |  2 +-
 ui/input.c                                             |  2 +-
 ui/spice-core.c                                        |  8 ++++----
 ui/vnc-enc-tight.c                                     |  2 +-
 ui/vnc-palette.h                                       |  2 +-
 ui/vnc.c                                               |  2 +-
 vl.c                                                   |  2 +-
 119 files changed, 242 insertions(+), 242 deletions(-)
 rename qapi/qapi-dealloc-visitor.h => include/qapi/dealloc-visitor.h (95%)
 rename error.h => include/qapi/error.h (100%)
 rename {qapi => include/qapi}/opts-visitor.h (96%)
 rename {qapi => include/qapi}/qmp-input-visitor.h (91%)
 rename {qapi => include/qapi}/qmp-output-visitor.h (91%)
 rename qapi/qmp-core.h => include/qapi/qmp/dispatch.h (93%)
 rename json-lexer.h => include/qapi/qmp/json-lexer.h (94%)
 rename json-parser.h => include/qapi/qmp/json-parser.h (90%)
 rename json-streamer.h => include/qapi/qmp/json-streamer.h (93%)
 rename qbool.h => include/qapi/qmp/qbool.h (94%)
 rename qdict.h => include/qapi/qmp/qdict.h (97%)
 rename qerror.h => include/qapi/qmp/qerror.h (99%)
 rename qfloat.h => include/qapi/qmp/qfloat.h (94%)
 rename qint.h => include/qapi/qmp/qint.h (94%)
 rename qjson.h => include/qapi/qmp/qjson.h (91%)
 rename qlist.h => include/qapi/qmp/qlist.h (98%)
 rename qobject.h => include/qapi/qmp/qobject.h (100%)
 rename qstring.h => include/qapi/qmp/qstring.h (96%)
 rename qemu-objects.h => include/qapi/qmp/types.h (60%)
 rename {qapi => include/qapi}/string-input-visitor.h (95%)
 rename {qapi => include/qapi}/string-output-visitor.h (95%)
 rename qapi/qapi-visit-impl.h => include/qapi/visitor-impl.h (98%)
 rename qapi/qapi-visit-core.h => include/qapi/visitor.h (99%)
backends/rng-egd.c +1 -1
index ad84737..3a7d1ec 100644
@@ -12,7 +12,7 @@
 
 #include "qemu/rng.h"
 #include "qemu-char.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "hw/qdev.h" /* just for DEFINE_PROP_CHR */
 
 #define TYPE_RNG_EGD "rng-egd"
backends/rng-random.c +1 -1
index 9c9923b..c201953 100644
@@ -12,7 +12,7 @@
 
 #include "qemu/rng-random.h"
 #include "qemu/rng.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "main-loop.h"
 
 struct RndRandom
backends/rng.c +1 -1
index 06f2611..48a5840 100644
@@ -11,7 +11,7 @@
  */
 
 #include "qemu/rng.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 void rng_backend_request_entropy(RngBackend *s, size_t size,
                                  EntropyReceiveFunc *receive_entropy,
balloon.c +1 -1
index e02ab1c..610fe6d 100644
@@ -30,7 +30,7 @@
 #include "balloon.h"
 #include "trace.h"
 #include "qmp-commands.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 
 static QEMUBalloonEvent *balloon_event_fn;
 static QEMUBalloonStatus *balloon_stat_fn;
block.c +1 -1
index 0668c4b..e962a5a 100644
@@ -28,7 +28,7 @@
 #include "block_int.h"
 #include "blockjob.h"
 #include "module.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 #include "sysemu.h"
 #include "notify.h"
 #include "qemu-coroutine.h"
block.h +1 -1
index 893448a..0b22892 100644
@@ -5,7 +5,7 @@
 #include "qemu-common.h"
 #include "qemu-option.h"
 #include "qemu-coroutine.h"
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 #include "qapi-types.h"
 
 /* block.c */
block/qcow2.c +1 -1
index 8520bda..217b4e4 100644
@@ -28,7 +28,7 @@
 #include "aes.h"
 #include "block/qcow2.h"
 #include "qemu-error.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "trace.h"
 
 /*
block/qed.c +1 -1
index 0b5374a..ca1fafb 100644
@@ -15,7 +15,7 @@
 #include "qemu-timer.h"
 #include "trace.h"
 #include "qed.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "migration.h"
 
 static void qed_aio_cancel(BlockDriverAIOCB *blockacb)
block_int.h +1 -1
index bf3f79b..a748b6c 100644
@@ -30,7 +30,7 @@
 #include "qemu-coroutine.h"
 #include "qemu-timer.h"
 #include "qapi-types.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "monitor.h"
 
 #define BLOCK_FLAG_ENCRYPT          1
blockdev-nbd.c +1 -1
index 6b26bbf..a194ecd 100644
@@ -12,7 +12,7 @@
 #include "blockdev.h"
 #include "hw/block-common.h"
 #include "monitor.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "sysemu.h"
 #include "qmp-commands.h"
 #include "trace.h"
blockdev.c +2 -2
index 9a05e57..c85c614 100644
@@ -11,10 +11,10 @@
 #include "hw/block-common.h"
 #include "blockjob.h"
 #include "monitor.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "sysemu.h"
 #include "block_int.h"
 #include "qmp-commands.h"
blockdev.h +1 -1
index d73d552..6e36d9f 100644
@@ -11,7 +11,7 @@
 #define BLOCKDEV_H
 
 #include "block.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qemu-queue.h"
 
 void blockdev_mark_auto_del(BlockDriverState *bs);
blockjob.c +1 -1
index cda12c6..8c0a286 100644
@@ -30,7 +30,7 @@
 #include "block.h"
 #include "blockjob.h"
 #include "block_int.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 #include "qemu-coroutine.h"
 #include "qmp-commands.h"
 #include "qemu-timer.h"
dump-stub.c +1 -1
index 56d4564..0842e6f 100644
@@ -13,7 +13,7 @@
 
 #include "qemu-common.h"
 #include "dump.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "qmp-commands.h"
 
 /* we need this function in hmp.c */
dump.c +1 -1
index 5640c2c..7b45b53 100644
@@ -21,7 +21,7 @@
 #include "dump.h"
 #include "sysemu.h"
 #include "memory_mapping.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qmp-commands.h"
 #include "gdbstub.h"
 
error.c +4 -4
index 128d88c..519f6b6 100644
@@ -11,11 +11,11 @@
  */
 
 #include "qemu-common.h"
-#include "error.h"
-#include "qjson.h"
-#include "qdict.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qdict.h"
 #include "qapi-types.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 struct Error
 {
hmp.h +1 -1
index 0ab03be..21f3e05 100644
@@ -16,7 +16,7 @@
 
 #include "qemu-common.h"
 #include "qapi-types.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 
 void hmp_info_name(Monitor *mon);
 void hmp_info_version(Monitor *mon);
hw/ivshmem.c +1 -1
index 5c648d9..d15760b 100644
@@ -22,7 +22,7 @@
 #include "pci/msix.h"
 #include "kvm.h"
 #include "migration.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "event_notifier.h"
 #include "qemu-char.h"
 
hw/mc146818rtc.c +1 -1
index c79fca7..2a1278f 100644
@@ -25,7 +25,7 @@
 #include "qemu-timer.h"
 #include "sysemu.h"
 #include "mc146818rtc.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 #ifdef TARGET_I386
 #include "apic.h"
hw/pci/pci-hotplug.c +1 -1
index b850400..5ba7558 100644
@@ -32,7 +32,7 @@
 #include "hw/virtio-blk.h"
 #include "qemu-config.h"
 #include "blockdev.h"
-#include "error.h"
+#include "qapi/error.h"
 
 #if defined(TARGET_I386)
 static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
hw/pci/pcie_aer.c +1 -1
index 8a2032c..b6f4f85 100644
@@ -19,7 +19,7 @@
  */
 
 #include "sysemu.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "monitor.h"
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pcie.h"
hw/qdev-addr.c +1 -1
index ea32c31..552ee21 100644
@@ -1,7 +1,7 @@
 #include "qdev.h"
 #include "qdev-addr.h"
 #include "hwaddr.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 /* --- target physical address --- */
 
hw/qdev-core.h +1 -1
index d672cca..506977c 100644
@@ -6,7 +6,7 @@
 #include "qemu-types.h"
 #include "qemu/object.h"
 #include "hw/irq.h"
-#include "error.h"
+#include "qapi/error.h"
 
 enum DevState {
     DEV_STATE_CREATED = 1,
hw/qdev-properties.c +2 -2
index 7ab55ef..ba6c648 100644
@@ -1,10 +1,10 @@
 #include "net/net.h"
 #include "qdev.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "blockdev.h"
 #include "hw/block-common.h"
 #include "net/hub.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qemu-char.h"
 
 void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)
hw/qdev.c +2 -2
index 6b91fb9..0a2a32d 100644
@@ -28,8 +28,8 @@
 #include "net/net.h"
 #include "qdev.h"
 #include "sysemu.h"
-#include "error.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/error.h"
+#include "qapi/visitor.h"
 
 int qdev_hotplug = 0;
 static bool qdev_hot_added = false;
hw/vga_int.h +1 -1
index ad02404..5efaee8 100644
@@ -25,7 +25,7 @@
 #define HW_VGA_INT_H 1
 
 #include <hw/hw.h>
-#include "error.h"
+#include "qapi/error.h"
 #include "memory.h"
 
 #define ST01_V_RETRACE      0x08
hw/watchdog.c +1 -1
index 5c82c17..f878bec 100644
@@ -23,7 +23,7 @@
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-queue.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "monitor.h"
 #include "sysemu.h"
 #include "hw/watchdog.h"
include/net/net.h +1 -1
index 9ff9305..26dd0cf 100644
@@ -3,7 +3,7 @@
 
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-option.h"
 #include "net/queue.h"
 #include "vmstate.h"
include/net/slirp.h +1 -1
index 2ca09b6..ac9d449 100644
@@ -25,7 +25,7 @@
 #define QEMU_NET_SLIRP_H
 
 #include "qemu-common.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-option.h"
 #include "qapi-types.h"
 
include/qapi/dealloc-visitor.h renamed from qapi/qapi-dealloc-visitor.h +1 -1
similarity index 95%
rename from qapi/qapi-dealloc-visitor.h
rename to include/qapi/dealloc-visitor.h
index 5842bc7..cf4c36d 100644
@@ -14,7 +14,7 @@
 #ifndef QAPI_DEALLOC_VISITOR_H
 #define QAPI_DEALLOC_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 typedef struct QapiDeallocVisitor QapiDeallocVisitor;
 
include/qapi/error.h renamed from error.h +0 -0
similarity index 100%
rename from error.h
rename to include/qapi/error.h
include/qapi/opts-visitor.h renamed from qapi/opts-visitor.h +1 -1
similarity index 96%
rename from qapi/opts-visitor.h
rename to include/qapi/opts-visitor.h
index ea1a395..31fa4c5 100644
@@ -13,7 +13,7 @@
 #ifndef OPTS_VISITOR_H
 #define OPTS_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qemu-option.h"
 
 typedef struct OptsVisitor OptsVisitor;
include/qapi/qmp-input-visitor.h renamed from qapi/qmp-input-visitor.h +2 -2
similarity index 91%
rename from qapi/qmp-input-visitor.h
rename to include/qapi/qmp-input-visitor.h
index e0a48a5..3ed499c 100644
@@ -14,8 +14,8 @@
 #ifndef QMP_INPUT_VISITOR_H
 #define QMP_INPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
-#include "qobject.h"
+#include "qapi/visitor.h"
+#include "qapi/qmp/qobject.h"
 
 typedef struct QmpInputVisitor QmpInputVisitor;
 
include/qapi/qmp-output-visitor.h renamed from qapi/qmp-output-visitor.h +2 -2
similarity index 91%
rename from qapi/qmp-output-visitor.h
rename to include/qapi/qmp-output-visitor.h
index 4a649c2..2266770 100644
@@ -14,8 +14,8 @@
 #ifndef QMP_OUTPUT_VISITOR_H
 #define QMP_OUTPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
-#include "qobject.h"
+#include "qapi/visitor.h"
+#include "qapi/qmp/qobject.h"
 
 typedef struct QmpOutputVisitor QmpOutputVisitor;
 
include/qapi/qmp/dispatch.h renamed from qapi/qmp-core.h +3 -3
similarity index 93%
rename from qapi/qmp-core.h
rename to include/qapi/qmp/dispatch.h
index 00446cf..1ce11f5 100644
@@ -14,9 +14,9 @@
 #ifndef QMP_CORE_H
 #define QMP_CORE_H
 
-#include "qobject.h"
-#include "qdict.h"
-#include "error.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/error.h"
 
 typedef void (QmpCommandFunc)(QDict *, QObject **, Error **);
 
include/qapi/qmp/json-lexer.h renamed from json-lexer.h +2 -2
similarity index 94%
rename from json-lexer.h
rename to include/qapi/qmp/json-lexer.h
index 10bc0a7..cdff046 100644
@@ -14,8 +14,8 @@
 #ifndef QEMU_JSON_LEXER_H
 #define QEMU_JSON_LEXER_H
 
-#include "qstring.h"
-#include "qlist.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qlist.h"
 
 typedef enum json_token_type {
     JSON_OPERATOR = 100,
include/qapi/qmp/json-parser.h renamed from json-parser.h +2 -2
similarity index 90%
rename from json-parser.h
rename to include/qapi/qmp/json-parser.h
index 8f2b5ec..44d88f3 100644
@@ -15,8 +15,8 @@
 #define QEMU_JSON_PARSER_H
 
 #include "qemu-common.h"
-#include "qlist.h"
-#include "error.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/error.h"
 
 QObject *json_parser_parse(QList *tokens, va_list *ap);
 QObject *json_parser_parse_err(QList *tokens, va_list *ap, Error **errp);
include/qapi/qmp/json-streamer.h renamed from json-streamer.h +2 -2
similarity index 93%
rename from json-streamer.h
rename to include/qapi/qmp/json-streamer.h
index f09bc4d..823f7d7 100644
@@ -14,8 +14,8 @@
 #ifndef QEMU_JSON_STREAMER_H
 #define QEMU_JSON_STREAMER_H
 
-#include "qlist.h"
-#include "json-lexer.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/json-lexer.h"
 
 typedef struct JSONMessageParser
 {
include/qapi/qmp/qbool.h renamed from qbool.h +1 -1
similarity index 94%
rename from qbool.h
rename to include/qapi/qmp/qbool.h
index fe66fcd..c4eaab9 100644
@@ -15,7 +15,7 @@
 #define QBOOL_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 typedef struct QBool {
     QObject_HEAD;
include/qapi/qmp/qdict.h renamed from qdict.h +2 -2
similarity index 97%
rename from qdict.h
rename to include/qapi/qmp/qdict.h
index 929d8d2..c815981 100644
@@ -13,8 +13,8 @@
 #ifndef QDICT_H
 #define QDICT_H
 
-#include "qobject.h"
-#include "qlist.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qlist.h"
 #include "qemu-queue.h"
 #include <stdint.h>
 
include/qapi/qmp/qerror.h renamed from qerror.h +3 -3
similarity index 99%
rename from qerror.h
rename to include/qapi/qmp/qerror.h
index 8db4309..d912297 100644
@@ -12,10 +12,10 @@
 #ifndef QERROR_H
 #define QERROR_H
 
-#include "qdict.h"
-#include "qstring.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-error.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qapi-types.h"
 #include <stdarg.h>
 
include/qapi/qmp/qfloat.h renamed from qfloat.h +1 -1
similarity index 94%
rename from qfloat.h
rename to include/qapi/qmp/qfloat.h
index 9d67876..a865844 100644
@@ -15,7 +15,7 @@
 #define QFLOAT_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 typedef struct QFloat {
     QObject_HEAD;
include/qapi/qmp/qint.h renamed from qint.h +1 -1
similarity index 94%
rename from qint.h
rename to include/qapi/qmp/qint.h
index 6b1a15c..48a41b0 100644
@@ -14,7 +14,7 @@
 #define QINT_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 typedef struct QInt {
     QObject_HEAD;
include/qapi/qmp/qjson.h renamed from qjson.h +2 -2
similarity index 91%
rename from qjson.h
rename to include/qapi/qmp/qjson.h
index 1190d8a..0473374 100644
@@ -16,8 +16,8 @@
 
 #include <stdarg.h>
 #include "compiler.h"
-#include "qobject.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qstring.h"
 
 QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
 QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
include/qapi/qmp/qlist.h renamed from qlist.h +1 -1
similarity index 98%
rename from qlist.h
rename to include/qapi/qmp/qlist.h
index 7408947..ffa0846 100644
@@ -13,7 +13,7 @@
 #ifndef QLIST_H
 #define QLIST_H
 
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-queue.h"
 
include/qapi/qmp/qobject.h renamed from qobject.h +0 -0
similarity index 100%
rename from qobject.h
rename to include/qapi/qmp/qobject.h
include/qapi/qmp/qstring.h renamed from qstring.h +1 -1
similarity index 96%
rename from qstring.h
rename to include/qapi/qmp/qstring.h
index 84ccd96..0e690f4 100644
@@ -14,7 +14,7 @@
 #define QSTRING_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qapi/qmp/qobject.h"
 
 typedef struct QString {
     QObject_HEAD;
include/qapi/qmp/types.h renamed from qemu-objects.h +8 -8
similarity index 60%
rename from qemu-objects.h
rename to include/qapi/qmp/types.h
index c53fbaa..7782ec5 100644
@@ -13,13 +13,13 @@
 #ifndef QEMU_OBJECTS_H
 #define QEMU_OBJECTS_H
 
-#include "qobject.h"
-#include "qint.h"
-#include "qfloat.h"
-#include "qbool.h"
-#include "qstring.h"
-#include "qdict.h"
-#include "qlist.h"
-#include "qjson.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qjson.h"
 
 #endif /* QEMU_OBJECTS_H */
include/qapi/string-input-visitor.h renamed from qapi/string-input-visitor.h +1 -1
similarity index 95%
rename from qapi/string-input-visitor.h
rename to include/qapi/string-input-visitor.h
index d269d42..089243c 100644
@@ -13,7 +13,7 @@
 #ifndef STRING_INPUT_VISITOR_H
 #define STRING_INPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 typedef struct StringInputVisitor StringInputVisitor;
 
include/qapi/string-output-visitor.h renamed from qapi/string-output-visitor.h +1 -1
similarity index 95%
rename from qapi/string-output-visitor.h
rename to include/qapi/string-output-visitor.h
index 8868454..ec81e42 100644
@@ -13,7 +13,7 @@
 #ifndef STRING_OUTPUT_VISITOR_H
 #define STRING_OUTPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visitor.h"
 
 typedef struct StringOutputVisitor StringOutputVisitor;
 
include/qapi/visitor-impl.h renamed from qapi/qapi-visit-impl.h +2 -2
similarity index 98%
rename from qapi/qapi-visit-impl.h
rename to include/qapi/visitor-impl.h
index 9337d62..5159964 100644
@@ -12,8 +12,8 @@
 #ifndef QAPI_VISITOR_IMPL_H
 #define QAPI_VISITOR_IMPL_H
 
-#include "error.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/error.h"
+#include "qapi/visitor.h"
 
 struct Visitor
 {
include/qapi/visitor.h renamed from qapi/qapi-visit-core.h +1 -1
similarity index 99%
rename from qapi/qapi-visit-core.h
rename to include/qapi/visitor.h
index 602debe..1fef18c 100644
@@ -13,7 +13,7 @@
 #ifndef QAPI_VISITOR_CORE_H
 #define QAPI_VISITOR_CORE_H
 
-#include "error.h"
+#include "qapi/error.h"
 #include <stdlib.h>
 
 typedef struct GenericList
include/qemu/rng.h +1 -1
index d094bf8..3791297 100644
@@ -15,7 +15,7 @@
 
 #include "qemu/object.h"
 #include "qemu-common.h"
-#include "error.h"
+#include "qapi/error.h"
 
 #define TYPE_RNG_BACKEND "rng-backend"
 #define RNG_BACKEND(obj) \
include/ui/console.h +2 -2
index 777881d..eff5cc9 100644
@@ -2,12 +2,12 @@
 #define CONSOLE_H
 
 #include "ui/qemu-pixman.h"
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "notify.h"
 #include "monitor.h"
 #include "trace.h"
 #include "qapi-types.h"
-#include "error.h"
+#include "qapi/error.h"
 
 /* keyboard/mouse support */
 
json-lexer.c +5 -5
index 3cd3285..440df60 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qstring.h"
-#include "qlist.h"
-#include "qdict.h"
-#include "qint.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qint.h"
 #include "qemu-common.h"
-#include "json-lexer.h"
+#include "qapi/qmp/json-lexer.h"
 
 #define MAX_TOKEN_SIZE (64ULL << 20)
 
json-parser.c +9 -9
index 457291b..05279c1 100644
@@ -14,15 +14,15 @@
 #include <stdarg.h>
 
 #include "qemu-common.h"
-#include "qstring.h"
-#include "qint.h"
-#include "qdict.h"
-#include "qlist.h"
-#include "qfloat.h"
-#include "qbool.h"
-#include "json-parser.h"
-#include "json-lexer.h"
-#include "qerror.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/json-parser.h"
+#include "qapi/qmp/json-lexer.h"
+#include "qapi/qmp/qerror.h"
 
 typedef struct JSONParserContext
 {
json-streamer.c +5 -5
index c255c78..1b2f9b1 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qlist.h"
-#include "qint.h"
-#include "qdict.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-common.h"
-#include "json-lexer.h"
-#include "json-streamer.h"
+#include "qapi/qmp/json-lexer.h"
+#include "qapi/qmp/json-streamer.h"
 
 #define MAX_TOKEN_SIZE (64ULL << 20)
 #define MAX_NESTING (1ULL << 10)
migration.h +2 -2
index c3a23cc..af444d4 100644
@@ -14,10 +14,10 @@
 #ifndef QEMU_MIGRATION_H
 #define QEMU_MIGRATION_H
 
-#include "qdict.h"
+#include "qapi/qmp/qdict.h"
 #include "qemu-common.h"
 #include "notify.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "vmstate.h"
 #include "qapi-types.h"
 
monitor.c +8 -8
index 6546f8c..7d5c8a6 100644
@@ -47,14 +47,14 @@
 #include "migration.h"
 #include "kvm.h"
 #include "acl.h"
-#include "qint.h"
-#include "qfloat.h"
-#include "qlist.h"
-#include "qbool.h"
-#include "qstring.h"
-#include "qjson.h"
-#include "json-streamer.h"
-#include "json-parser.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/json-streamer.h"
+#include "qapi/qmp/json-parser.h"
 #include "osdep.h"
 #include "cpu.h"
 #include "trace.h"
monitor.h +2 -2
index 4595c21..7c29d9d 100644
@@ -2,8 +2,8 @@
 #define MONITOR_H
 
 #include "qemu-common.h"
-#include "qerror.h"
-#include "qdict.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/qmp/qdict.h"
 #include "block.h"
 #include "readline.h"
 
net/net.c +1 -1
index a4395be..ead7e96 100644
@@ -38,7 +38,7 @@
 #include "iov.h"
 #include "qapi-visit.h"
 #include "qapi/opts-visitor.h"
-#include "qapi/qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 
 /* Net bridge is currently not supported for W32. */
 #if !defined(_WIN32)
pixman +1 -1
index a5e5179..97336fa 160000
@@ -1 +1 @@
-Subproject commit a5e5179b5624c99c812e9bf6e7b907e355a811e8
+Subproject commit 97336fad32acf802003855cd8bd6477fa49a12e3
qapi/opts-visitor.c +3 -3
index 6ccb8a1..f8149ce 100644
@@ -11,11 +11,11 @@
  */
 
 #include "qemu-common.h"
-#include "qerror.h"
-#include "opts-visitor.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/opts-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-option-internal.h"
-#include "qapi-visit-impl.h"
+#include "qapi/visitor-impl.h"
 
 
 struct OptsVisitor
qapi/qapi-dealloc-visitor.c +3 -3
index 7c44042..98f2a58 100644
@@ -11,11 +11,11 @@
  *
  */
 
-#include "qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qapi-visit-impl.h"
+#include "qapi/qmp/types.h"
+#include "qapi/visitor-impl.h"
 
 typedef struct StackEntry
 {
qapi/qapi-visit-core.c +3 -3
index 4649fb7..401ee6e 100644
@@ -12,9 +12,9 @@
  */
 
 #include "qemu-common.h"
-#include "qerror.h"
-#include "qapi/qapi-visit-core.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/visitor.h"
+#include "qapi/visitor-impl.h"
 
 void visit_start_handle(Visitor *v, void **obj, const char *kind,
                         const char *name, Error **errp)
qapi/qmp-dispatch.c +5 -5
index 4085994..921de33 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qemu-objects.h"
-#include "qapi/qmp-core.h"
-#include "json-parser.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/dispatch.h"
+#include "qapi/qmp/json-parser.h"
 #include "qapi-types.h"
-#include "error.h"
-#include "qerror.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qerror.h"
 
 static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)
 {
qapi/qmp-input-visitor.c +4 -4
index 107d8d3..8087909 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qmp-input-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp-input-visitor.h"
+#include "qapi/visitor-impl.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/qerror.h"
 
 #define QIV_STACK_SIZE 1024
 
qapi/qmp-output-visitor.c +4 -4
index 2bce9d5..8015e3f 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qmp-output-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp-output-visitor.h"
+#include "qapi/visitor-impl.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/qerror.h"
 
 typedef struct QStackEntry
 {
qapi/qmp-registry.c +1 -1
index c2c31b4..70cdbca 100644
@@ -14,7 +14,7 @@
 
 #include <glib.h>
 #include <string.h>
-#include "qapi/qmp-core.h"
+#include "qapi/qmp/dispatch.h"
 
 static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =
     QTAILQ_HEAD_INITIALIZER(qmp_commands);
qapi/string-input-visitor.c +3 -3
index 497eb9a..8f1bc41 100644
@@ -11,9 +11,9 @@
  */
 
 #include "qemu-common.h"
-#include "string-input-visitor.h"
-#include "qapi/qapi-visit-impl.h"
-#include "qerror.h"
+#include "qapi/string-input-visitor.h"
+#include "qapi/visitor-impl.h"
+#include "qapi/qmp/qerror.h"
 
 struct StringInputVisitor
 {
qapi/string-output-visitor.c +3 -3
index 34e525e..921653d 100644
@@ -11,9 +11,9 @@
  */
 
 #include "qemu-common.h"
-#include "string-output-visitor.h"
-#include "qapi/qapi-visit-impl.h"
-#include "qerror.h"
+#include "qapi/string-output-visitor.h"
+#include "qapi/visitor-impl.h"
+#include "qapi/qmp/qerror.h"
 
 struct StringOutputVisitor
 {
qbool.c +2 -2
index 590cd71..a3d2afa 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "qbool.h"
-#include "qobject.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-common.h"
 
 static void qbool_destroy_obj(QObject *obj);
qdict.c +6 -6
index 4bf308b..fa7a62c 100644
@@ -10,12 +10,12 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
-#include "qint.h"
-#include "qfloat.h"
-#include "qdict.h"
-#include "qbool.h"
-#include "qstring.h"
-#include "qobject.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 
qemu-char.h +2 -2
index a121e04..3e230a1 100644
@@ -6,8 +6,8 @@
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-aio.h"
-#include "qobject.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qstring.h"
 #include "main-loop.h"
 
 /* character device */
qemu-config.c +1 -1
index b4ce0d8..ceec6bd 100644
@@ -3,7 +3,7 @@
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "hw/qdev.h"
-#include "error.h"
+#include "qapi/error.h"
 
 static QemuOptsList qemu_drive_opts = {
     .name = "drive",
qemu-config.h +1 -1
index eb50eca..584491a 100644
@@ -3,7 +3,7 @@
 
 #include <stdio.h>
 #include "qemu-option.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qemu-option.h"
 
 extern QemuOptsList qemu_fsdev_opts;
qemu-img.c +1 -1
index c989a52..a13bc78 100644
@@ -23,7 +23,7 @@
  */
 #include "qapi-visit.h"
 #include "qapi/qmp-output-visitor.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 #include "qemu-common.h"
 #include "qemu-option.h"
 #include "qemu-error.h"
qemu-option.c +3 -3
index 94557cf..ebd3537 100644
@@ -28,9 +28,9 @@
 
 #include "qemu-common.h"
 #include "qemu-error.h"
-#include "qemu-objects.h"
-#include "error.h"
-#include "qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-option-internal.h"
 
 /*
qemu-option.h +2 -2
index 002dd07..ca0dc04 100644
@@ -28,8 +28,8 @@
 
 #include <stdint.h>
 #include "qemu-queue.h"
-#include "error.h"
-#include "qdict.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qdict.h"
 
 enum QEMUOptionParType {
     OPT_FLAG,
qemu_socket.h +2 -2
index 02490ad..42899fe 100644
@@ -27,8 +27,8 @@ int inet_aton(const char *cp, struct in_addr *ia);
 #endif /* !_WIN32 */
 
 #include "qemu-option.h"
-#include "error.h"
-#include "qerror.h"
+#include "qapi/error.h"
+#include "qapi/qmp/qerror.h"
 
 /* misc helpers */
 int qemu_socket(int domain, int type, int protocol);
qerror.c +2 -2
index 0818504..8c78104 100644
@@ -11,8 +11,8 @@
  */
 
 #include "monitor.h"
-#include "qjson.h"
-#include "qerror.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-common.h"
 
 static void qerror_destroy_obj(QObject *obj);
qfloat.c +2 -2
index 98338f3..7de0992 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "qfloat.h"
-#include "qobject.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-common.h"
 
 static void qfloat_destroy_obj(QObject *obj);
qga/commands-posix.c +1 -1
index 726930a..cedf2cc 100644
@@ -17,7 +17,7 @@
 #include <sys/wait.h>
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 #include "qemu-queue.h"
 #include "host-utils.h"
 
qga/commands-win32.c +1 -1
index 5bd8fb2..7e8ecb3 100644
@@ -16,7 +16,7 @@
 #include <powrprof.h>
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 #ifndef SHTDN_REASON_FLAG_PLANNED
 #define SHTDN_REASON_FLAG_PLANNED 0x80000000
qga/commands.c +1 -1
index 46b0b08..7ffb35e 100644
@@ -13,7 +13,7 @@
 #include <glib.h>
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 /* Note: in some situations, like with the fsfreeze, logging may be
  * temporarilly disabled. if it is necessary that a command be able
qga/guest-agent-core.h +1 -1
index 49a7abe..8934163 100644
@@ -10,7 +10,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  */
-#include "qapi/qmp-core.h"
+#include "qapi/qmp/dispatch.h"
 #include "qemu-common.h"
 
 #define QGA_READ_COUNT_DEFAULT 4096
qga/main.c +6 -6
index 9b59a52..ead58cc 100644
@@ -20,15 +20,15 @@
 #include <sys/wait.h>
 #include <sys/stat.h>
 #endif
-#include "json-streamer.h"
-#include "json-parser.h"
-#include "qint.h"
-#include "qjson.h"
+#include "qapi/qmp/json-streamer.h"
+#include "qapi/qmp/json-parser.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qjson.h"
 #include "qga/guest-agent-core.h"
 #include "module.h"
 #include "signal.h"
-#include "qerror.h"
-#include "qapi/qmp-core.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/qmp/dispatch.h"
 #include "qga/channel.h"
 #ifdef _WIN32
 #include "qga/service-win32.h"
qint.c +2 -2
index ee51804..86b9b04 100644
@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
-#include "qint.h"
-#include "qobject.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-common.h"
 
 static void qint_destroy_obj(QObject *obj);
qjson.c +9 -9
index f9c8e77..83a6b4f 100644
@@ -11,15 +11,15 @@
  *
  */
 
-#include "json-lexer.h"
-#include "json-parser.h"
-#include "json-streamer.h"
-#include "qjson.h"
-#include "qint.h"
-#include "qlist.h"
-#include "qbool.h"
-#include "qfloat.h"
-#include "qdict.h"
+#include "qapi/qmp/json-lexer.h"
+#include "qapi/qmp/json-parser.h"
+#include "qapi/qmp/json-streamer.h"
+#include "qapi/qmp/qjson.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qdict.h"
 
 typedef struct JSONParsingState
 {
qlist.c +2 -2
index b48ec5b..c5ac211 100644
@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
-#include "qlist.h"
-#include "qobject.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 
qom/object.c +6 -6
index 8d3036d..932f8b3 100644
@@ -12,18 +12,18 @@
 
 #include "qemu/object.h"
 #include "qemu-common.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qapi/string-input-visitor.h"
 #include "qapi/string-output-visitor.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 /* TODO: replace QObject with a simpler visitor to avoid a dependency
  * of the QOM core on QObject?  */
 #include "qemu/qom-qobject.h"
-#include "qobject.h"
-#include "qbool.h"
-#include "qint.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qstring.h"
 
 #define MAX_INTERFACES 32
 
qom/qom-qobject.c +1 -1
index 0689914..f0fa652 100644
@@ -12,7 +12,7 @@
 #include "qemu-common.h"
 #include "qemu/object.h"
 #include "qemu/qom-qobject.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "qapi/qmp-input-visitor.h"
 #include "qapi/qmp-output-visitor.h"
 
qstring.c +2 -2
index b7e12e4..5f7376c 100644
@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
-#include "qobject.h"
-#include "qstring.h"
+#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-common.h"
 
 static void qstring_destroy_obj(QObject *obj);
scripts/qapi-commands.py +7 -7
index 5d034c2..eccc28d 100644
@@ -342,8 +342,8 @@ def gen_command_decl_prologue(header, guard, prefix=""):
 #define %(guard)s
 
 #include "%(prefix)sqapi-types.h"
-#include "qdict.h"
-#include "error.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/error.h"
 
 ''',
                  header=basename(header), guard=guardname(header), prefix=prefix)
@@ -368,13 +368,13 @@ def gen_command_def_prologue(prefix="", proxy=False):
 
 #include "qemu-common.h"
 #include "module.h"
-#include "qerror.h"
-#include "qemu-objects.h"
-#include "qapi/qmp-core.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/qmp/qerror.h"
+#include "qapi/qmp/types.h"
+#include "qapi/qmp/dispatch.h"
+#include "qapi/visitor.h"
 #include "qapi/qmp-output-visitor.h"
 #include "qapi/qmp-input-visitor.h"
-#include "qapi/qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-visit.h"
 
scripts/qapi-types.py +1 -1
index 6bc2391..9e19920 100644
@@ -248,7 +248,7 @@ fdef.write(mcgen('''
  *
  */
 
-#include "qapi/qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 #include "%(prefix)sqapi-types.h"
 #include "%(prefix)sqapi-visit.h"
 
scripts/qapi-visit.py +1 -1
index f1aabb3..a276540 100644
@@ -322,7 +322,7 @@ fdecl.write(mcgen('''
 #ifndef %(guard)s
 #define %(guard)s
 
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "%(prefix)sqapi-types.h"
 ''',
                   prefix=prefix, guard=guardname(h_file)))
stubs/arch-query-cpu-def.c +1 -1
index 47b5246..6eca852 100644
@@ -1,6 +1,6 @@
 #include "qemu-common.h"
 #include "arch_init.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
 CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp)
 {
target-i386/cpu-qom.h +1 -1
index 5901140..3a7bc6a 100644
@@ -22,7 +22,7 @@
 
 #include "qemu/cpu.h"
 #include "cpu.h"
-#include "error.h"
+#include "qapi/error.h"
 
 #ifdef TARGET_X86_64
 #define TYPE_X86_CPU "x86_64-cpu"
target-i386/cpu.c +2 -2
index e968006..150c4df 100644
@@ -26,9 +26,9 @@
 
 #include "qemu-option.h"
 #include "qemu-config.h"
-#include "qerror.h"
+#include "qapi/qmp/qerror.h"
 
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visitor.h"
 #include "arch_init.h"
 
 #include "hyperv.h"
target-openrisc/cpu.h +1 -1
index ebb5ad3..c7b1750 100644
@@ -33,7 +33,7 @@ struct OpenRISCCPU;
 #include "cpu-defs.h"
 #include "softfloat.h"
 #include "qemu/cpu.h"
-#include "error.h"
+#include "qapi/error.h"
 
 #define TYPE_OPENRISC_CPU "or32-cpu"
 
tests/check-qdict.c +3 -3
index fc0d276..dc5f05a 100644
@@ -11,9 +11,9 @@
  */
 #include <glib.h>
 
-#include "qint.h"
-#include "qdict.h"
-#include "qstring.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-common.h"
 
 /*
tests/check-qfloat.c +1 -1
index cdc66ea..6404ac8 100644
@@ -12,7 +12,7 @@
  */
 #include <glib.h>
 
-#include "qfloat.h"
+#include "qapi/qmp/qfloat.h"
 #include "qemu-common.h"
 
 /*
tests/check-qint.c +1 -1
index 5a27119..8686884 100644
@@ -11,7 +11,7 @@
  */
 #include <glib.h>
 
-#include "qint.h"
+#include "qapi/qmp/qint.h"
 #include "qemu-common.h"
 
 /*
tests/check-qjson.c +7 -7
index 3b896f5..32ffb43 100644
@@ -10,13 +10,13 @@
  */
 #include <glib.h>
 
-#include "qstring.h"
-#include "qint.h"
-#include "qdict.h"
-#include "qlist.h"
-#include "qfloat.h"
-#include "qbool.h"
-#include "qjson.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qlist.h"
+#include "qapi/qmp/qfloat.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qjson.h"
 
 #include "qemu-common.h"
 
tests/check-qlist.c +2 -2
index 501ba26..b9c05d4 100644
@@ -11,8 +11,8 @@
  */
 #include <glib.h>
 
-#include "qint.h"
-#include "qlist.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qlist.h"
 
 /*
  * Public Interface test-cases
tests/check-qstring.c +1 -1
index addad6c..95dc9e3 100644
@@ -11,7 +11,7 @@
  */
 #include <glib.h>
 
-#include "qstring.h"
+#include "qapi/qmp/qstring.h"
 #include "qemu-common.h"
 
 /*
tests/test-qmp-commands.c +2 -2
index dc3c507..5195f69 100644
@@ -1,7 +1,7 @@
 #include <glib.h>
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "test-qmp-commands.h"
-#include "qapi/qmp-core.h"
+#include "qapi/qmp/dispatch.h"
 #include "module.h"
 #include "qapi/qmp-input-visitor.h"
 #include "tests/test-qapi-types.h"
tests/test-qmp-input-strict.c +1 -1
index f6df8cb..19d4990 100644
@@ -17,7 +17,7 @@
 #include "qapi/qmp-input-visitor.h"
 #include "test-qapi-types.h"
 #include "test-qapi-visit.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 
 typedef struct TestInputVisitorData {
     QObject *obj;
tests/test-qmp-input-visitor.c +1 -1
index 8f5a509..d76df8c 100644
@@ -16,7 +16,7 @@
 #include "qapi/qmp-input-visitor.h"
 #include "test-qapi-types.h"
 #include "test-qapi-visit.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 
 typedef struct TestInputVisitorData {
     QObject *obj;
tests/test-qmp-output-visitor.c +1 -1
index 24a6359..7868f56 100644
@@ -15,7 +15,7 @@
 #include "qapi/qmp-output-visitor.h"
 #include "test-qapi-types.h"
 #include "test-qapi-visit.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 
 typedef struct TestOutputVisitorData {
     QmpOutputVisitor *qov;
tests/test-string-input-visitor.c +1 -1
index 5370e32..64b10dd 100644
@@ -16,7 +16,7 @@
 #include "qapi/string-input-visitor.h"
 #include "test-qapi-types.h"
 #include "test-qapi-visit.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 
 typedef struct TestInputVisitorData {
     StringInputVisitor *siv;
tests/test-string-output-visitor.c +1 -1
index 608f14a..238a268 100644
@@ -15,7 +15,7 @@
 #include "qapi/string-output-visitor.h"
 #include "test-qapi-types.h"
 #include "test-qapi-visit.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 
 typedef struct TestOutputVisitorData {
     StringOutputVisitor *sov;
tests/test-visitor-serialization.c +1 -1
index b8ad16f..906011d 100644
@@ -16,7 +16,7 @@
 #include <float.h>
 #include "test-qapi-types.h"
 #include "test-qapi-visit.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "qapi/qmp-input-visitor.h"
 #include "qapi/qmp-output-visitor.h"
 #include "qapi/string-input-visitor.h"
ui/input.c +1 -1
index 58d3b47..65950af 100644
@@ -25,7 +25,7 @@
 #include "sysemu.h"
 #include "monitor.h"
 #include "ui/console.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qmp-commands.h"
 #include "qapi-types.h"
 
ui/spice-core.c +4 -4
index ec925ec..0550805 100644
@@ -29,10 +29,10 @@
 #include "qemu-x509.h"
 #include "qemu_socket.h"
 #include "qmp-commands.h"
-#include "qint.h"
-#include "qbool.h"
-#include "qstring.h"
-#include "qjson.h"
+#include "qapi/qmp/qint.h"
+#include "qapi/qmp/qbool.h"
+#include "qapi/qmp/qstring.h"
+#include "qapi/qmp/qjson.h"
 #include "notify.h"
 #include "migration.h"
 #include "monitor.h"
ui/vnc-enc-tight.c +1 -1
index 62d0fde..09199ef 100644
@@ -45,7 +45,7 @@
 #endif
 
 #include "bswap.h"
-#include "qint.h"
+#include "qapi/qmp/qint.h"
 #include "vnc.h"
 #include "vnc-enc-tight.h"
 #include "vnc-palette.h"
ui/vnc-palette.h +1 -1
index b82dc5d..bfc7fe6 100644
@@ -29,7 +29,7 @@
 #ifndef VNC_PALETTE_H
 #define VNC_PALETTE_H
 
-#include "qlist.h"
+#include "qapi/qmp/qlist.h"
 #include "qemu-queue.h"
 #include <stdint.h>
 #include <stdbool.h>
ui/vnc.c +1 -1
index 04afcff..dad2dde 100644
@@ -30,7 +30,7 @@
 #include "qemu_socket.h"
 #include "qemu-timer.h"
 #include "acl.h"
-#include "qemu-objects.h"
+#include "qapi/qmp/types.h"
 #include "qmp-commands.h"
 #include "osdep.h"
 
vl.c +1 -1
index 6713220..975767a 100644
@@ -143,7 +143,7 @@ int main(int argc, char **argv)
 #include "audio/audio.h"
 #include "migration.h"
 #include "kvm.h"
-#include "qjson.h"
+#include "qapi/qmp/qjson.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-options.h"
Signature · 1 line
1.8.0.2
#22 lore raw

PATCH 22/32 block: move include files to include/block/

In reply to Paolo Bonzini
---
 aes.c                                                 | 2 +-
 aio-posix.c                                           | 2 +-
 aio-win32.c                                           | 2 +-
 async.c                                               | 2 +-
 block-migration.c                                     | 2 +-
 block.c                                               | 6 +++---
 block/blkdebug.c                                      | 2 +-
 block/blkverify.c                                     | 2 +-
 block/bochs.c                                         | 2 +-
 block/cloop.c                                         | 2 +-
 block/commit.c                                        | 4 ++--
 block/cow.c                                           | 2 +-
 block/curl.c                                          | 2 +-
 block/dmg.c                                           | 2 +-
 block/gluster.c                                       | 2 +-
 block/iscsi.c                                         | 2 +-
 block/linux-aio.c                                     | 2 +-
 block/mirror.c                                        | 4 ++--
 block/nbd.c                                           | 4 ++--
 block/parallels.c                                     | 2 +-
 block/qcow.c                                          | 4 ++--
 block/qcow2-cache.c                                   | 2 +-
 block/qcow2-cluster.c                                 | 2 +-
 block/qcow2-refcount.c                                | 2 +-
 block/qcow2-snapshot.c                                | 2 +-
 block/qcow2.c                                         | 4 ++--
 block/qcow2.h                                         | 4 ++--
 block/qed.h                                           | 2 +-
 block/raw-posix.c                                     | 4 ++--
 block/raw-win32.c                                     | 4 ++--
 block/raw.c                                           | 2 +-
 block/rbd.c                                           | 2 +-
 block/sheepdog.c                                      | 2 +-
 block/stream.c                                        | 4 ++--
 block/vdi.c                                           | 2 +-
 block/vmdk.c                                          | 2 +-
 block/vpc.c                                           | 2 +-
 block/vvfat.c                                         | 2 +-
 block/win32-aio.c                                     | 4 ++--
 blockdev-nbd.c                                        | 2 +-
 blockdev.c                                            | 4 ++--
 blockdev.h                                            | 2 +-
 blockjob.c                                            | 8 ++++----
 cmd.c                                                 | 2 +-
 coroutine-gthread.c                                   | 2 +-
 coroutine-sigaltstack.c                               | 2 +-
 coroutine-ucontext.c                                  | 2 +-
 coroutine-win32.c                                     | 2 +-
 dma.h                                                 | 2 +-
 hw/9pfs/codir.c                                       | 2 +-
 hw/9pfs/cofile.c                                      | 2 +-
 hw/9pfs/cofs.c                                        | 2 +-
 hw/9pfs/coxattr.c                                     | 2 +-
 hw/9pfs/virtio-9p-coth.c                              | 2 +-
 hw/9pfs/virtio-9p-coth.h                              | 2 +-
 hw/9pfs/virtio-9p.h                                   | 2 +-
 hw/hd-geometry.c                                      | 2 +-
 hw/hw.h                                               | 2 +-
 hw/ide/cmd646.c                                       | 2 +-
 hw/ide/ich.c                                          | 2 +-
 hw/ide/isa.c                                          | 2 +-
 hw/ide/macio.c                                        | 2 +-
 hw/ide/microdrive.c                                   | 2 +-
 hw/ide/mmio.c                                         | 2 +-
 hw/ide/pci.c                                          | 2 +-
 hw/ide/via.c                                          | 2 +-
 hw/mips_fulong2e.c                                    | 2 +-
 hw/mips_malta.c                                       | 2 +-
 hw/musicpal.c                                         | 2 +-
 hw/pflash_cfi01.c                                     | 2 +-
 hw/pflash_cfi02.c                                     | 2 +-
 hw/ppc405_boards.c                                    | 2 +-
 hw/s390-virtio-bus.c                                  | 2 +-
 hw/s390-virtio.c                                      | 2 +-
 hw/scsi.h                                             | 2 +-
 hw/sd.c                                               | 2 +-
 hw/spitz.c                                            | 2 +-
 hw/tosa.c                                             | 2 +-
 aes.h => include/block/aes.h                          | 0
 qemu-aio.h => include/block/aio.h                     | 0
 block.h => include/block/block.h                      | 4 ++--
 block_int.h => include/block/block_int.h              | 4 ++--
 blockjob.h => include/block/blockjob.h                | 2 +-
 qemu-coroutine.h => include/block/coroutine.h         | 0
 qemu-coroutine-int.h => include/block/coroutine_int.h | 2 +-
 nbd.h => include/block/nbd.h                          | 0
 thread-pool.h => include/block/thread-pool.h          | 4 ++--
 iohandler.c                                           | 2 +-
 main-loop.c                                           | 2 +-
 main-loop.h                                           | 2 +-
 migration-exec.c                                      | 2 +-
 migration-fd.c                                        | 2 +-
 migration-tcp.c                                       | 2 +-
 migration-unix.c                                      | 2 +-
 migration.c                                           | 2 +-
 monitor.h                                             | 2 +-
 nbd.c                                                 | 6 +++---
 qemu-char.h                                           | 2 +-
 qemu-coroutine-io.c                                   | 2 +-
 qemu-coroutine-lock.c                                 | 6 +++---
 qemu-coroutine-sleep.c                                | 2 +-
 qemu-coroutine.c                                      | 4 ++--
 qemu-img.c                                            | 2 +-
 qemu-io.c                                             | 2 +-
 qemu-nbd.c                                            | 4 ++--
 tests/test-aio.c                                      | 2 +-
 tests/test-coroutine.c                                | 2 +-
 tests/test-thread-pool.c                              | 6 +++---
 thread-pool.c                                         | 6 +++---
 109 files changed, 134 insertions(+), 134 deletions(-)
 rename aes.h => include/block/aes.h (100%)
 rename qemu-aio.h => include/block/aio.h (100%)
 rename block.h => include/block/block.h (99%)
 rename block_int.h => include/block/block_int.h (99%)
 rename blockjob.h => include/block/blockjob.h (99%)
 rename qemu-coroutine.h => include/block/coroutine.h (100%)
 rename qemu-coroutine-int.h => include/block/coroutine_int.h (98%)
 rename nbd.h => include/block/nbd.h (100%)
 rename thread-pool.h => include/block/thread-pool.h (93%)
aes.c +1 -1
index eb37adb..1da7bff 100644
@@ -28,7 +28,7 @@
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "qemu-common.h"
-#include "aes.h"
+#include "block/aes.h"
 
 #ifndef NDEBUG
 #define NDEBUG
aio-posix.c +1 -1
index 05cc84e..d1e1bc2 100644
@@ -14,7 +14,7 @@
  */
 
 #include "qemu-common.h"
-#include "block.h"
+#include "block/block.h"
 #include "qemu-queue.h"
 #include "qemu_socket.h"
 
aio-win32.c +1 -1
index cec4646..9a26f9c 100644
@@ -16,7 +16,7 @@
  */
 
 #include "qemu-common.h"
-#include "block.h"
+#include "block/block.h"
 #include "qemu-queue.h"
 #include "qemu_socket.h"
 
async.c +1 -1
index 41ae0c1..6df4caf 100644
@@ -23,7 +23,7 @@
  */
 
 #include "qemu-common.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "main-loop.h"
 
 /***********************************************************/
block-migration.c +1 -1
index 71b9601..c15de9f 100644
@@ -14,7 +14,7 @@
  */
 
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "hw/hw.h"
 #include "qemu-queue.h"
 #include "qemu-timer.h"
block.c +3 -3
index e962a5a..5eab9e2 100644
@@ -25,13 +25,13 @@
 #include "qemu-common.h"
 #include "trace.h"
 #include "monitor.h"
-#include "block_int.h"
-#include "blockjob.h"
+#include "block/block_int.h"
+#include "block/blockjob.h"
 #include "module.h"
 #include "qapi/qmp/qjson.h"
 #include "sysemu.h"
 #include "notify.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "qmp-commands.h"
 #include "qemu-timer.h"
 
block/blkdebug.c +1 -1
index 65556e7..cd2866e 100644
@@ -24,7 +24,7 @@
 
 #include "qemu-common.h"
 #include "qemu-config.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 
 typedef struct BDRVBlkdebugState {
block/blkverify.c +1 -1
index 4beede7..cde5098 100644
@@ -9,7 +9,7 @@
 
 #include <stdarg.h>
 #include "qemu_socket.h" /* for EINPROGRESS on Windows */
-#include "block_int.h"
+#include "block/block_int.h"
 
 typedef struct {
     BlockDriverState *test_file;
block/bochs.c +1 -1
index ab7944d..2cc7524 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 
 /**************************************************************/
block/cloop.c +1 -1
index 7570eb8..da29ff3 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include <zlib.h>
 
block/commit.c +2 -2
index e2bb1e2..61ebdba 100644
@@ -13,8 +13,8 @@
  */
 
 #include "trace.h"
-#include "block_int.h"
-#include "blockjob.h"
+#include "block/block_int.h"
+#include "block/blockjob.h"
 #include "qemu/ratelimit.h"
 
 enum {
block/cow.c +1 -1
index a5a00eb..1438ae1 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 
 /**************************************************************/
block/curl.c +1 -1
index 1179484..47df952 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include <curl/curl.h>
 
 // #define DEBUG
block/dmg.c +1 -1
index 37902a4..6ee505a 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "bswap.h"
 #include "module.h"
 #include <zlib.h>
block/gluster.c +1 -1
index 1c90174..4cb4e60 100644
@@ -16,7 +16,7 @@
  * GNU GPL, version 2 or (at your option) any later version.
  */
 #include <glusterfs/api/glfs.h>
-#include "block_int.h"
+#include "block/block_int.h"
 #include "qemu_socket.h"
 #include "uri.h"
 
block/iscsi.c +1 -1
index 33b93d8..77e619a 100644
@@ -29,7 +29,7 @@
 #include "qemu-common.h"
 #include "qemu-config.h"
 #include "qemu-error.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "trace.h"
 #include "hw/scsi-defs.h"
 
block/linux-aio.c +1 -1
index 91ef863..28e5a04 100644
@@ -8,7 +8,7 @@
  * See the COPYING file in the top-level directory.
  */
 #include "qemu-common.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "qemu-queue.h"
 #include "block/raw-aio.h"
 #include "event_notifier.h"
block/mirror.c +2 -2
index b1f5d4f..8aeacbf 100644
@@ -12,8 +12,8 @@
  */
 
 #include "trace.h"
-#include "blockjob.h"
-#include "block_int.h"
+#include "block/blockjob.h"
+#include "block/block_int.h"
 #include "qemu/ratelimit.h"
 
 enum {
block/nbd.c +2 -2
index e87c248..38d6b90 100644
@@ -27,9 +27,9 @@
  */
 
 #include "qemu-common.h"
-#include "nbd.h"
+#include "block/nbd.h"
 #include "uri.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "qemu_socket.h"
 
block/parallels.c +1 -1
index d30f0ec..ae88cd6 100644
@@ -24,7 +24,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 
 /**************************************************************/
block/qcow.c +2 -2
index b239c82..d13bd40 100644
@@ -22,10 +22,10 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include <zlib.h>
-#include "aes.h"
+#include "block/aes.h"
 #include "migration.h"
 
 /**************************************************************/
block/qcow2-cache.c +1 -1
index 2d4322a..2f3114e 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "block_int.h"
+#include "block/block_int.h"
 #include "qemu-common.h"
 #include "qcow2.h"
 #include "trace.h"
block/qcow2-cluster.c +1 -1
index 468ef1b..56fccf9 100644
@@ -25,7 +25,7 @@
 #include <zlib.h>
 
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "block/qcow2.h"
 #include "trace.h"
 
block/qcow2-refcount.c +1 -1
index 96224d1..6a95aa6 100644
@@ -23,7 +23,7 @@
  */
 
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "block/qcow2.h"
 
 static int64_t alloc_clusters_noref(BlockDriverState *bs, int64_t size);
block/qcow2-snapshot.c +1 -1
index 4e7c93b..eb8fcd5 100644
@@ -23,7 +23,7 @@
  */
 
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "block/qcow2.h"
 
 typedef struct QEMU_PACKED QCowSnapshotHeader {
block/qcow2.c +2 -2
index 217b4e4..205d910 100644
@@ -22,10 +22,10 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include <zlib.h>
-#include "aes.h"
+#include "block/aes.h"
 #include "block/qcow2.h"
 #include "qemu-error.h"
 #include "qapi/qmp/qerror.h"
block/qcow2.h +2 -2
index a60fcb4..718b52b 100644
@@ -25,8 +25,8 @@
 #ifndef BLOCK_QCOW2_H
 #define BLOCK_QCOW2_H
 
-#include "aes.h"
-#include "qemu-coroutine.h"
+#include "block/aes.h"
+#include "block/coroutine.h"
 
 //#define DEBUG_ALLOC
 //#define DEBUG_ALLOC2
block/qed.h +1 -1
index a063bf7..2b4dded 100644
@@ -15,7 +15,7 @@
 #ifndef BLOCK_QED_H
 #define BLOCK_QED_H
 
-#include "block_int.h"
+#include "block/block_int.h"
 
 /* The layout of a QED file is as follows:
  *
block/raw-posix.c +2 -2
index 48eff2f..4e73885 100644
@@ -24,10 +24,10 @@
 #include "qemu-common.h"
 #include "qemu-timer.h"
 #include "qemu-log.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "trace.h"
-#include "thread-pool.h"
+#include "block/thread-pool.h"
 #include "iov.h"
 #include "raw-aio.h"
 
block/raw-win32.c +2 -2
index ce207a3..9269fe8 100644
@@ -23,11 +23,11 @@
  */
 #include "qemu-common.h"
 #include "qemu-timer.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "raw-aio.h"
 #include "trace.h"
-#include "thread-pool.h"
+#include "block/thread-pool.h"
 #include "iov.h"
 #include <windows.h>
 #include <winioctl.h>
block/raw.c +1 -1
index 253e949..6aec93d 100644
@@ -1,6 +1,6 @@
 
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 
 static int raw_open(BlockDriverState *bs, int flags)
block/rbd.c +1 -1
index 737bab1..8def2f1 100644
@@ -15,7 +15,7 @@
 
 #include "qemu-common.h"
 #include "qemu-error.h"
-#include "block_int.h"
+#include "block/block_int.h"
 
 #include <rbd/librbd.h>
 
block/sheepdog.c +1 -1
index a48f58c..da70df2 100644
@@ -15,7 +15,7 @@
 #include "qemu-common.h"
 #include "qemu-error.h"
 #include "qemu_socket.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "bitops.h"
 
 #define SD_PROTO_VER 0x01
block/stream.c +2 -2
index 0dcd286..d6df06f 100644
@@ -12,8 +12,8 @@
  */
 
 #include "trace.h"
-#include "block_int.h"
-#include "blockjob.h"
+#include "block/block_int.h"
+#include "block/blockjob.h"
 #include "qemu/ratelimit.h"
 
 enum {
block/vdi.c +1 -1
index c8330b7..dab9cac 100644
@@ -50,7 +50,7 @@
  */
 
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "migration.h"
 
block/vmdk.c +1 -1
index 51398c0..68e50e1 100644
@@ -24,7 +24,7 @@
  */
 
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "migration.h"
 #include <zlib.h>
block/vpc.c +1 -1
index 566e9a3..aabd712 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "migration.h"
 #if defined(CONFIG_UUID)
block/vvfat.c +1 -1
index 59d3c5b..fbabafc 100644
@@ -25,7 +25,7 @@
 #include <sys/stat.h>
 #include <dirent.h>
 #include "qemu-common.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "migration.h"
 
block/win32-aio.c +2 -2
index 4704ee0..606e4d6 100644
@@ -23,10 +23,10 @@
  */
 #include "qemu-common.h"
 #include "qemu-timer.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.h"
 #include "qemu-common.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "raw-aio.h"
 #include "event_notifier.h"
 #include <windows.h>
blockdev-nbd.c +1 -1
index a194ecd..81aa1d3 100644
@@ -16,7 +16,7 @@
 #include "sysemu.h"
 #include "qmp-commands.h"
 #include "trace.h"
-#include "nbd.h"
+#include "block/nbd.h"
 #include "qemu_socket.h"
 
 static int server_fd = -1;
blockdev.c +2 -2
index c85c614..ff6b333 100644
@@ -9,14 +9,14 @@
 
 #include "blockdev.h"
 #include "hw/block-common.h"
-#include "blockjob.h"
+#include "block/blockjob.h"
 #include "monitor.h"
 #include "qapi/qmp/qerror.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qapi/qmp/types.h"
 #include "sysemu.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "qmp-commands.h"
 #include "trace.h"
 #include "arch_init.h"
blockdev.h +1 -1
index 6e36d9f..4134864 100644
@@ -10,7 +10,7 @@
 #ifndef BLOCKDEV_H
 #define BLOCKDEV_H
 
-#include "block.h"
+#include "block/block.h"
 #include "qapi/error.h"
 #include "qemu-queue.h"
 
blockjob.c +4 -4
index 8c0a286..004480d 100644
@@ -27,11 +27,11 @@
 #include "qemu-common.h"
 #include "trace.h"
 #include "monitor.h"
-#include "block.h"
-#include "blockjob.h"
-#include "block_int.h"
+#include "block/block.h"
+#include "block/blockjob.h"
+#include "block/block_int.h"
 #include "qapi/qmp/qjson.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "qmp-commands.h"
 #include "qemu-timer.h"
 
cmd.c +1 -1
index f40f09b..01a8c3a 100644
@@ -24,7 +24,7 @@
 #include <getopt.h>
 
 #include "cmd.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "main-loop.h"
 
 #define _(x)	x	/* not gettext support yet */
coroutine-gthread.c +1 -1
index 30c24c9..d3e5b99 100644
@@ -20,7 +20,7 @@
 
 #include <glib.h>
 #include "qemu-common.h"
-#include "qemu-coroutine-int.h"
+#include "block/coroutine_int.h"
 
 typedef struct {
     Coroutine base;
coroutine-sigaltstack.c +1 -1
index 39dbaa5..e37ebac 100644
@@ -31,7 +31,7 @@
 #include <pthread.h>
 #include <signal.h>
 #include "qemu-common.h"
-#include "qemu-coroutine-int.h"
+#include "block/coroutine_int.h"
 
 enum {
     /* Maximum free pool size prevents holding too many freed coroutines */
coroutine-ucontext.c +1 -1
index 784081a..2ed703a 100644
@@ -28,7 +28,7 @@
 #include <pthread.h>
 #include <ucontext.h>
 #include "qemu-common.h"
-#include "qemu-coroutine-int.h"
+#include "block/coroutine_int.h"
 
 #ifdef CONFIG_VALGRIND_H
 #include <valgrind/valgrind.h>
coroutine-win32.c +1 -1
index 4179609..edc1f72 100644
@@ -23,7 +23,7 @@
  */
 
 #include "qemu-common.h"
-#include "qemu-coroutine-int.h"
+#include "block/coroutine_int.h"
 
 typedef struct
 {
dma.h +1 -1
index eedf878..4028036 100644
@@ -13,7 +13,7 @@
 #include <stdio.h>
 #include "memory.h"
 #include "hw/hw.h"
-#include "block.h"
+#include "block/block.h"
 #include "kvm.h"
 
 typedef struct DMAContext DMAContext;
hw/9pfs/codir.c +1 -1
index 3d18828..cd13733 100644
@@ -14,7 +14,7 @@
 
 #include "fsdev/qemu-fsdev.h"
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "virtio-9p-coth.h"
 
 int v9fs_co_readdir_r(V9fsPDU *pdu, V9fsFidState *fidp, struct dirent *dent,
hw/9pfs/cofile.c +1 -1
index 9345aae..6d6dac7 100644
@@ -14,7 +14,7 @@
 
 #include "fsdev/qemu-fsdev.h"
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "virtio-9p-coth.h"
 
 int v9fs_co_st_gen(V9fsPDU *pdu, V9fsPath *path, mode_t st_mode,
hw/9pfs/cofs.c +1 -1
index 83f125b..4b9ba30 100644
@@ -14,7 +14,7 @@
 
 #include "fsdev/qemu-fsdev.h"
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "virtio-9p-coth.h"
 
 int v9fs_co_readlink(V9fsPDU *pdu, V9fsPath *path, V9fsString *buf)
hw/9pfs/coxattr.c +1 -1
index 8a48228..08365a6 100644
@@ -14,7 +14,7 @@
 
 #include "fsdev/qemu-fsdev.h"
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "virtio-9p-coth.h"
 
 int v9fs_co_llistxattr(V9fsPDU *pdu, V9fsPath *path, void *value, size_t size)
hw/9pfs/virtio-9p-coth.c +1 -1
index 9368df7..958725e 100644
@@ -14,7 +14,7 @@
 
 #include "fsdev/qemu-fsdev.h"
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "virtio-9p-coth.h"
 
 /* v9fs glib thread pool */
hw/9pfs/virtio-9p-coth.h +1 -1
index c31c965..8c48a16 100644
@@ -16,7 +16,7 @@
 #define _QEMU_VIRTIO_9P_COTH_H
 
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "virtio-9p.h"
 #include <glib.h>
 
hw/9pfs/virtio-9p.h +1 -1
index 5797944..2c0c3ba 100644
@@ -10,7 +10,7 @@
 #include "fsdev/file-op-9p.h"
 #include "fsdev/virtio-9p-marshal.h"
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 
 
 /* The feature bitmap for virtio 9P */
hw/hd-geometry.c +1 -1
index 1cdb9fb..c305143 100644
@@ -30,7 +30,7 @@
  * THE SOFTWARE.
  */
 
-#include "block.h"
+#include "block/block.h"
 #include "hw/block-common.h"
 #include "trace.h"
 
hw/hw.h +1 -1
index f530f6f..003d974 100644
@@ -10,7 +10,7 @@
 
 #include "ioport.h"
 #include "irq.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "qemu-file.h"
 #include "vmstate.h"
 #include "qemu-log.h"
hw/ide/cmd646.c +1 -1
index 88210ea..f6d15b9 100644
@@ -26,7 +26,7 @@
 #include <hw/pc.h>
 #include <hw/pci/pci.h>
 #include <hw/isa.h>
-#include "block.h"
+#include "block/block.h"
 #include "sysemu.h"
 #include "dma.h"
 
hw/ide/ich.c +1 -1
index 8e1a48e..3457b98 100644
@@ -65,7 +65,7 @@
 #include <hw/pc.h>
 #include <hw/pci/pci.h>
 #include <hw/isa.h>
-#include "block.h"
+#include "block/block.h"
 #include "dma.h"
 
 #include <hw/ide/pci.h>
hw/ide/isa.c +1 -1
index 8ab2718..39df87c 100644
@@ -25,7 +25,7 @@
 #include <hw/hw.h>
 #include <hw/pc.h>
 #include <hw/isa.h>
-#include "block.h"
+#include "block/block.h"
 #include "dma.h"
 
 #include <hw/ide/internal.h>
hw/ide/macio.c +1 -1
index d2edcc0..87cbb0c 100644
@@ -25,7 +25,7 @@
 #include <hw/hw.h>
 #include <hw/ppc_mac.h>
 #include <hw/mac_dbdma.h>
-#include "block.h"
+#include "block/block.h"
 #include "dma.h"
 
 #include <hw/ide/internal.h>
hw/ide/microdrive.c +1 -1
index 9eee5b5..6cce523 100644
@@ -25,7 +25,7 @@
 #include <hw/hw.h>
 #include <hw/pc.h>
 #include <hw/pcmcia.h>
-#include "block.h"
+#include "block/block.h"
 #include "dma.h"
 
 #include <hw/ide/internal.h>
hw/ide/mmio.c +1 -1
index bcb26c8..4044351 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 #include <hw/hw.h>
-#include "block.h"
+#include "block/block.h"
 #include "dma.h"
 
 #include <hw/ide/internal.h>
hw/ide/pci.c +1 -1
index 23a0e23..8821d5c 100644
@@ -26,7 +26,7 @@
 #include <hw/pc.h>
 #include <hw/pci/pci.h>
 #include <hw/isa.h>
-#include "block.h"
+#include "block/block.h"
 #include "dma.h"
 
 #include <hw/ide/pci.h>
hw/ide/via.c +1 -1
index 8b4a24e..880f61c 100644
@@ -27,7 +27,7 @@
 #include <hw/pc.h>
 #include <hw/pci/pci.h>
 #include <hw/isa.h>
-#include "block.h"
+#include "block/block.h"
 #include "sysemu.h"
 #include "dma.h"
 
hw/mips_fulong2e.c +1 -1
index bab96b2..b46f7fd 100644
@@ -25,7 +25,7 @@
 #include "net/net.h"
 #include "boards.h"
 #include "smbus.h"
-#include "block.h"
+#include "block/block.h"
 #include "flash.h"
 #include "mips.h"
 #include "mips_cpudevs.h"
hw/mips_malta.c +1 -1
index 3f9f171..60f2379 100644
@@ -29,7 +29,7 @@
 #include "net/net.h"
 #include "boards.h"
 #include "smbus.h"
-#include "block.h"
+#include "block/block.h"
 #include "flash.h"
 #include "mips.h"
 #include "mips_cpudevs.h"
hw/musicpal.c +1 -1
index d16cd14..d7672e9 100644
@@ -18,7 +18,7 @@
 #include "serial.h"
 #include "qemu-timer.h"
 #include "ptimer.h"
-#include "block.h"
+#include "block/block.h"
 #include "flash.h"
 #include "ui/console.h"
 #include "i2c.h"
hw/pflash_cfi01.c +1 -1
index 7d040b5..a2f6360 100644
@@ -38,7 +38,7 @@
 
 #include "hw.h"
 #include "flash.h"
-#include "block.h"
+#include "block/block.h"
 #include "qemu-timer.h"
 #include "exec-memory.h"
 #include "host-utils.h"
hw/pflash_cfi02.c +1 -1
index f918e36..beab67f 100644
@@ -38,7 +38,7 @@
 #include "hw.h"
 #include "flash.h"
 #include "qemu-timer.h"
-#include "block.h"
+#include "block/block.h"
 #include "exec-memory.h"
 #include "host-utils.h"
 #include "sysbus.h"
hw/ppc405_boards.c +1 -1
index 8dc693f..b875e3b 100644
@@ -27,7 +27,7 @@
 #include "nvram.h"
 #include "flash.h"
 #include "sysemu.h"
-#include "block.h"
+#include "block/block.h"
 #include "boards.h"
 #include "qemu-log.h"
 #include "loader.h"
hw/s390-virtio-bus.c +1 -1
index 169dd46..f7e1939 100644
@@ -18,7 +18,7 @@
  */
 
 #include "hw.h"
-#include "block.h"
+#include "block/block.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "monitor.h"
hw/s390-virtio.c +1 -1
index 8c724b9..b732bcc 100644
@@ -18,7 +18,7 @@
  */
 
 #include "hw.h"
-#include "block.h"
+#include "block/block.h"
 #include "blockdev.h"
 #include "sysemu.h"
 #include "net/net.h"
hw/scsi.h +1 -1
index b8f7357..24ed522 100644
@@ -2,7 +2,7 @@
 #define QEMU_HW_SCSI_H
 
 #include "qdev.h"
-#include "block.h"
+#include "block/block.h"
 #include "hw/block-common.h"
 #include "sysemu.h"
 
hw/sd.c +1 -1
index 607edba..2e54eea 100644
@@ -30,7 +30,7 @@
  */
 
 #include "hw.h"
-#include "block.h"
+#include "block/block.h"
 #include "sd.h"
 #include "bitmap.h"
 
hw/spitz.c +1 -1
index d4575d2..1500161 100644
@@ -22,7 +22,7 @@
 #include "devices.h"
 #include "sharpsl.h"
 #include "ui/console.h"
-#include "block.h"
+#include "block/block.h"
 #include "audio/audio.h"
 #include "boards.h"
 #include "blockdev.h"
hw/tosa.c +1 -1
index 512278c..3991a90 100644
@@ -17,7 +17,7 @@
 #include "devices.h"
 #include "sharpsl.h"
 #include "pcmcia.h"
-#include "block.h"
+#include "block/block.h"
 #include "boards.h"
 #include "i2c.h"
 #include "ssi.h"
include/block/aes.h renamed from aes.h +0 -0
similarity index 100%
rename from aes.h
rename to include/block/aes.h
include/block/aio.h renamed from qemu-aio.h +0 -0
similarity index 100%
rename from qemu-aio.h
rename to include/block/aio.h
include/block/block.h renamed from block.h +2 -2
similarity index 99%
rename from block.h
rename to include/block/block.h
index 0b22892..d49ce4d 100644
@@ -1,10 +1,10 @@
 #ifndef BLOCK_H
 #define BLOCK_H
 
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "qemu-common.h"
 #include "qemu-option.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "qapi/qmp/qobject.h"
 #include "qapi-types.h"
 
include/block/block_int.h renamed from block_int.h +2 -2
similarity index 99%
rename from block_int.h
rename to include/block/block_int.h
index a748b6c..d06de26 100644
@@ -24,10 +24,10 @@
 #ifndef BLOCK_INT_H
 #define BLOCK_INT_H
 
-#include "block.h"
+#include "block/block.h"
 #include "qemu-option.h"
 #include "qemu-queue.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "qemu-timer.h"
 #include "qapi-types.h"
 #include "qapi/qmp/qerror.h"
include/block/blockjob.h renamed from blockjob.h +1 -1
similarity index 99%
rename from blockjob.h
rename to include/block/blockjob.h
index 3792b73..c290d07 100644
@@ -25,7 +25,7 @@
 #ifndef BLOCKJOB_H
 #define BLOCKJOB_H 1
 
-#include "block.h"
+#include "block/block.h"
 
 /**
  * BlockJobType:
include/block/coroutine.h renamed from qemu-coroutine.h +0 -0
similarity index 100%
rename from qemu-coroutine.h
rename to include/block/coroutine.h
include/block/coroutine_int.h renamed from qemu-coroutine-int.h +1 -1
similarity index 98%
rename from qemu-coroutine-int.h
rename to include/block/coroutine_int.h
index 0f1bd80..282a3ce 100644
@@ -26,7 +26,7 @@
 #define QEMU_COROUTINE_INT_H
 
 #include "qemu-queue.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 
 typedef enum {
     COROUTINE_YIELD = 1,
include/block/nbd.h renamed from nbd.h +0 -0
similarity index 100%
rename from nbd.h
rename to include/block/nbd.h
include/block/thread-pool.h renamed from thread-pool.h +2 -2
similarity index 93%
rename from thread-pool.h
rename to include/block/thread-pool.h
index 378a4ac..a87b287 100644
@@ -21,8 +21,8 @@
 #include "qemu-common.h"
 #include "qemu-queue.h"
 #include "qemu-thread.h"
-#include "qemu-coroutine.h"
-#include "block_int.h"
+#include "block/coroutine.h"
+#include "block/block_int.h"
 
 typedef int ThreadPoolFunc(void *opaque);
 
iohandler.c +1 -1
index 258f42d..cf8276d 100644
@@ -25,7 +25,7 @@
 #include "config-host.h"
 #include "qemu-common.h"
 #include "qemu-queue.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "main-loop.h"
 
 #ifndef _WIN32
main-loop.c +1 -1
index 7dba6f6..f900611 100644
@@ -26,7 +26,7 @@
 #include "qemu-timer.h"
 #include "slirp/slirp.h"
 #include "main-loop.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 
 #ifndef _WIN32
 
main-loop.h +1 -1
index 326c742..e8059c3 100644
@@ -25,7 +25,7 @@
 #ifndef QEMU_MAIN_LOOP_H
 #define QEMU_MAIN_LOOP_H 1
 
-#include "qemu-aio.h"
+#include "block/aio.h"
 
 #define SIG_IPI SIGUSR1
 
migration-exec.c +1 -1
index b4a3ca3..3e55b77 100644
@@ -19,7 +19,7 @@
 #include "qemu_socket.h"
 #include "migration.h"
 #include "buffered_file.h"
-#include "block.h"
+#include "block/block.h"
 #include <sys/types.h>
 #include <sys/wait.h>
 
migration-fd.c +1 -1
index 6d42287..e862288 100644
@@ -18,7 +18,7 @@
 #include "migration.h"
 #include "monitor.h"
 #include "buffered_file.h"
-#include "block.h"
+#include "block/block.h"
 #include "qemu_socket.h"
 
 //#define DEBUG_MIGRATION_FD
migration-tcp.c +1 -1
index a9bb817..07f51f2 100644
@@ -17,7 +17,7 @@
 #include "qemu_socket.h"
 #include "migration.h"
 #include "buffered_file.h"
-#include "block.h"
+#include "block/block.h"
 
 //#define DEBUG_MIGRATION_TCP
 
migration-unix.c +1 -1
index e58e8bc..1b9c461 100644
@@ -17,7 +17,7 @@
 #include "qemu_socket.h"
 #include "migration.h"
 #include "buffered_file.h"
-#include "block.h"
+#include "block/block.h"
 
 //#define DEBUG_MIGRATION_UNIX
 
migration.c +1 -1
index 73ce170..1fce152 100644
@@ -18,7 +18,7 @@
 #include "monitor.h"
 #include "buffered_file.h"
 #include "sysemu.h"
-#include "block.h"
+#include "block/block.h"
 #include "qemu_socket.h"
 #include "block-migration.h"
 #include "qmp-commands.h"
monitor.h +1 -1
index 7c29d9d..9e96e83 100644
@@ -4,7 +4,7 @@
 #include "qemu-common.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qdict.h"
-#include "block.h"
+#include "block/block.h"
 #include "readline.h"
 
 extern Monitor *cur_mon;
nbd.c +3 -3
index 01976e8..04ff0a1 100644
@@ -16,10 +16,10 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "nbd.h"
-#include "block.h"
+#include "block/nbd.h"
+#include "block/block.h"
 
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 
 #include <errno.h>
 #include <string.h>
qemu-char.h +1 -1
index 3e230a1..5ff1b2b 100644
@@ -5,7 +5,7 @@
 #include "qemu-queue.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "qapi/qmp/qobject.h"
 #include "qapi/qmp/qstring.h"
 #include "main-loop.h"
qemu-coroutine-io.c +1 -1
index 5734965..5fae9c7 100644
@@ -24,7 +24,7 @@
  */
 #include "qemu-common.h"
 #include "qemu_socket.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "iov.h"
 
 ssize_t coroutine_fn
qemu-coroutine-lock.c +3 -3
index 9dda3f8..c3939ac 100644
@@ -23,10 +23,10 @@
  */
 
 #include "qemu-common.h"
-#include "qemu-coroutine.h"
-#include "qemu-coroutine-int.h"
+#include "block/coroutine.h"
+#include "block/coroutine_int.h"
 #include "qemu-queue.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "trace.h"
 
 static QTAILQ_HEAD(, Coroutine) unlock_bh_queue =
qemu-coroutine-sleep.c +1 -1
index d7083ee..26e6dac 100644
@@ -11,7 +11,7 @@
  *
  */
 
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "qemu-timer.h"
 
 typedef struct CoSleepCB {
qemu-coroutine.c +2 -2
index 600be26..0f6e268 100644
@@ -14,8 +14,8 @@
 
 #include "trace.h"
 #include "qemu-common.h"
-#include "qemu-coroutine.h"
-#include "qemu-coroutine-int.h"
+#include "block/coroutine.h"
+#include "block/coroutine_int.h"
 
 Coroutine *qemu_coroutine_create(CoroutineEntry *entry)
 {
qemu-img.c +1 -1
index a13bc78..2e5ca5c 100644
@@ -29,7 +29,7 @@
 #include "qemu-error.h"
 #include "osdep.h"
 #include "sysemu.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include <getopt.h>
 #include <stdio.h>
 
qemu-io.c +1 -1
index 1637773..e0e4742 100644
@@ -16,7 +16,7 @@
 
 #include "qemu-common.h"
 #include "main-loop.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "cmd.h"
 #include "trace/control.h"
 
qemu-nbd.c +2 -2
index 80f08d8..0a6091b 100644
@@ -17,8 +17,8 @@
  */
 
 #include "qemu-common.h"
-#include "block.h"
-#include "nbd.h"
+#include "block/block.h"
+#include "block/nbd.h"
 
 #include <stdarg.h>
 #include <stdio.h>
tests/test-aio.c +1 -1
index a8a4f0c..e4ebef7 100644
@@ -11,7 +11,7 @@
  */
 
 #include <glib.h>
-#include "qemu-aio.h"
+#include "block/aio.h"
 
 AioContext *ctx;
 
tests/test-coroutine.c +1 -1
index e5d14eb..4c6cc81 100644
@@ -12,7 +12,7 @@
  */
 
 #include <glib.h>
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 
 /*
  * Check that qemu_in_coroutine() works
tests/test-thread-pool.c +3 -3
index ea8e676..9998e03 100644
@@ -1,8 +1,8 @@
 #include <glib.h>
 #include "qemu-common.h"
-#include "qemu-aio.h"
-#include "thread-pool.h"
-#include "block.h"
+#include "block/aio.h"
+#include "block/thread-pool.h"
+#include "block/block.h"
 
 static int active;
 
thread-pool.c +3 -3
index 204f70b..4c73a7d 100644
@@ -18,11 +18,11 @@
 #include "qemu-queue.h"
 #include "qemu-thread.h"
 #include "osdep.h"
-#include "qemu-coroutine.h"
+#include "block/coroutine.h"
 #include "trace.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "event_notifier.h"
-#include "thread-pool.h"
+#include "block/thread-pool.h"
 
 static void do_spawn_thread(void);
 
Signature · 1 line
1.8.0.2