Skip to contentSkip to conversation

Header file renaming and cleanup

PATCH In review Paolo Bonzini 5 participants 38 messages Oct 24, 2012 – Oct 25, 2012 Page 1 of 3

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

cover Header file renaming and cleanup

So in the end I decided to hold off the renaming of the .c files. This is mostly because there are too many confusing rules for what files are included in which build product, and spreading this across multiple directories would make things worse.

However, here is the header file renaming in all its beauty. One good thing about renaming headers is that it guides you in a) finding the best place for the corresponding source file in a multi-directory layout;
b) finding blatant inclusions of the "wrong" file, with qemu-char.h being an especially good candidate for "I'll just include that one". Also, it is the only part that is really hard to rebase for me than for everyone
else: it touches all source files (rather than just the Makefiles), and headers are touched (and conflict) much less than source files.

Hence, this series only creates disas/ and qobject/, and moves some more files to existing directories such as ui/ or net/ or qga/. There are many, many cleanups to do on top of this before attempting to rename the .c files in a coherent structure and without any module violation. For example:

- remove QEMU-specific stuff from qemu-config.c

- deconstruct qemu-common.h and sysemu.h, to get more hints about where to put the various .c files.

- replace stub files (qemu-tool.c, qemu-user.c, etc.) with weak functions

- put all the utility functions together in a static library and just link with that one

And all this is not even touching hw/.

This series is organized as follows. Patches 1 to 8 are build system cleanups that also create the ldscripts/ and disas/ directories.

Patches 9 to 15 are some more janitorial changes coming from the original series that moved files. They avoid massive indirect inclusion via qemu-char.h or net.h.

Quoted 1 line

From there on the patches were scripted. Patches 16, 17 and 21 also

move .c files, the others only move headers.

(This is not ready to be applied; I'll wait until Kevin and Luiz's next pull request, and then coordinate with Anthony to pull a rebased version).

Paolo Bonzini (32):
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: move iovector functions out of cutils.c
janitor: do not rely on indirect inclusions 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/
audio: move public header file to include/audio/
slirp: move public header file to include/slirp/
qapi: move include files to include/qapi/
qapi: create qobject/ and 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 +
 Makefile                                           |   49 +--
 Makefile.dis                                       |   20 -
 Makefile.objs                                      |   39 +--
 Makefile.target                                    |    8 +-
 Makefile.user                                      |   24 --
 a.out.h                                            |  430 --------------------
 acl.c                                              |    2 +-
 aes.c                                              |    2 +-
 aio.c                                              |    6 +-
 arch_init.c                                        |   22 +-
 async.c                                            |    4 +-
 audio/Makefile.objs                                |    3 +
 audio/alsaaudio.c                                  |    4 +-
 audio/audio.c                                      |    8 +-
 audio/audio_pt_int.c                               |    2 +-
 audio/audio_win_int.c                              |    3 +-
 audio/coreaudio.c                                  |    2 +-
 audio/dsoundaudio.c                                |    2 +-
 audio/esdaudio.c                                   |    2 +-
 audio/fmodaudio.c                                  |    2 +-
 audio/mixeng.c                                     |    2 +-
 audio/noaudio.c                                    |    4 +-
 audio/ossaudio.c                                   |    6 +-
 audio/paaudio.c                                    |    2 +-
 audio/sdlaudio.c                                   |    2 +-
 audio/spiceaudio.c                                 |    4 +-
 audio/wavaudio.c                                   |    4 +-
 audio/wavcapture.c                                 |    4 +-
 audio/winwaveaudio.c                               |    4 +-
 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/nbd.c                                        |    8 +-
 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                                  |    9 +-
 block/raw-win32.c                                  |    6 +-
 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 +-
 blockdev-nbd.c                                     |   12 +-
 blockdev.c                                         |   20 +-
 blockjob.c                                         |   14 +-
 bsd-user/elfload.c                                 |    2 +-
 bsd-user/main.c                                    |    4 +-
 bsd-user/qemu.h                                    |    4 +-
 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                                           |  109 +-----
 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.c                                   |    4 +-
 exec.c                                             |   17 +-
 fpu/softfloat.c                                    |    2 +-
 fsdev/qemu-fsdev-dummy.c                           |    2 +-
 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                                              |   11 +-
 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-xattr.h                          |    2 +-
 hw/9pfs/virtio-9p.c                                |    4 +-
 hw/9pfs/virtio-9p.h                                |    4 +-
 hw/Makefile.objs                                   |    2 +
 hw/ac97.c                                          |    2 +-
 hw/acpi.c                                          |    4 +-
 hw/acpi.h                                          |    2 +-
 hw/acpi_piix4.c                                    |    6 +-
 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                                     |    1 -
 hw/alpha_typhoon.c                                 |    6 +-
 hw/an5206.c                                        |    2 +-
 hw/apb_pci.c                                       |    4 +-
 hw/apic.c                                          |    4 +-
 hw/apic_common.c                                   |    2 +-
 hw/apic_internal.h                                 |    4 +-
 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/axis_dev88.c                                    |    6 +-
 hw/baum.c                                          |    4 +-
 hw/blizzard.c                                      |    2 +-
 hw/block-common.c                                  |    4 +-
 hw/bonito.c                                        |    4 +-
 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/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                                    |    2 +-
 hw/collie.c                                        |    4 +-
 hw/cs4231a.c                                       |    2 +-
 hw/cuda.c                                          |    4 +-
 hw/debugcon.c                                      |    2 +-
 hw/device-hotplug.c                                |    9 +-
 hw/dma.c                                           |    1 +
 hw/dp8393x.c                                       |    4 +-
 hw/dummy_m68k.c                                    |    2 +-
 hw/e1000.c                                         |    6 +-
 hw/eepro100.c                                      |    6 +-
 hw/es1370.c                                        |    2 +-
 hw/escc.c                                          |    4 +-
 hw/esp-pci.c                                       |    2 +-
 hw/esp.c                                           |    2 +-
 hw/etraxfs.h                                       |    2 +-
 hw/etraxfs_dma.c                                   |    4 +-
 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                               |    6 +-
 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                                         |    2 +-
 hw/framebuffer.c                                   |    2 +-
 hw/framebuffer.h                                   |    2 +-
 hw/fw_cfg.c                                        |    5 +-
 hw/g364fb.c                                        |    2 +-
 hw/grlib_apbuart.c                                 |    2 +-
 hw/grlib_gptimer.c                                 |    2 +-
 hw/gt64xxx.c                                       |    2 +-
 hw/gumstix.c                                       |    6 +-
 hw/hd-geometry.c                                   |    2 +-
 hw/hid.c                                           |    4 +-
 hw/hid.h                                           |    2 +-
 hw/highbank.c                                      |    8 +-
 hw/hpet.c                                          |    4 +-
 hw/hw.h                                            |   10 +-
 hw/i8254.c                                         |    2 +-
 hw/i8254_common.c                                  |    2 +-
 hw/i8259.c                                         |    4 +-
 hw/ide.h                                           |    2 +-
 hw/ide/ahci.c                                      |    6 +-
 hw/ide/cmd646.c                                    |    6 +-
 hw/ide/core.c                                      |   10 +-
 hw/ide/ich.c                                       |    4 +-
 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                                       |    4 +-
 hw/ide/piix.c                                      |    6 +-
 hw/ide/qdev.c                                      |    8 +-
 hw/ide/via.c                                       |    6 +-
 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                                     |    4 +-
 hw/ioapic_internal.h                               |    2 +-
 hw/isa-bus.c                                       |    6 +-
 hw/isa.h                                           |    4 +-
 hw/isa_mmio.c                                      |    2 +-
 hw/ivshmem.c                                       |    9 +-
 hw/jazz_led.c                                      |    2 +-
 hw/kvm/apic.c                                      |    2 +-
 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                                |   10 +-
 hw/kvmvapic.c                                      |    6 +-
 hw/kzm.c                                           |    6 +-
 hw/lan9118.c                                       |    4 +-
 hw/lance.c                                         |    6 +-
 hw/leon3.c                                         |    8 +-
 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/lsi53c895a.c                                    |    2 +-
 hw/m25p80.c                                        |    2 +-
 hw/m48t59.c                                        |    4 +-
 hw/mac_dbdma.c                                     |    1 +
 hw/mac_dbdma.h                                     |    2 +-
 hw/mac_nvram.c                                     |    2 +-
 hw/mainstone.c                                     |    6 +-
 hw/mc146818rtc.c                                   |    4 +-
 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                                       |    6 +-
 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                               |    4 +-
 hw/milkymist.c                                     |    7 +-
 hw/mips.h                                          |    2 +-
 hw/mips_fulong2e.c                                 |   14 +-
 hw/mips_jazz.c                                     |   10 +-
 hw/mips_malta.c                                    |   16 +-
 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/msi.c                                           |    2 +-
 hw/msix.c                                          |    2 +-
 hw/msmouse.c                                       |    6 +-
 hw/multiboot.c                                     |    2 +-
 hw/musicpal.c                                      |   14 +-
 hw/nand.c                                          |    4 +-
 hw/ne2000-isa.c                                    |    4 +-
 hw/ne2000.c                                        |    4 +-
 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                                     |    2 +-
 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/openrisc_sim.c                                  |    8 +-
 hw/openrisc_timer.c                                |    2 +-
 hw/palm.c                                          |    6 +-
 hw/parallel.c                                      |    4 +-
 hw/pc.c                                            |   16 +-
 hw/pc.h                                            |    8 +-
 hw/pc_piix.c                                       |   14 +-
 hw/pc_sysfw.c                                      |    6 +-
 hw/pci-hotplug.c                                   |   10 +-
 hw/pci-stub.c                                      |    4 +-
 hw/pci.c                                           |   10 +-
 hw/pci.h                                           |    4 +-
 hw/pci_bridge.c                                    |    2 +-
 hw/pci_bridge_dev.c                                |    2 +-
 hw/pcie.c                                          |    2 +-
 hw/pcie_aer.c                                      |    6 +-
 hw/pcie_host.c                                     |    2 +-
 hw/pcie_host.h                                     |    2 +-
 hw/pckbd.c                                         |    2 +-
 hw/pcnet-pci.c                                     |    6 +-
 hw/pcnet.c                                         |    8 +-
 hw/pcnet.h                                         |    2 +-
 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/piix_pci.c                                      |    2 +-
 hw/pl011.c                                         |    2 +-
 hw/pl031.c                                         |    4 +-
 hw/pl110.c                                         |    2 +-
 hw/pl181.c                                         |    2 +-
 hw/ppc.c                                           |    8 +-
 hw/ppc/e500.c                                      |   10 +-
 hw/ppc/e500plat.c                                  |    2 +-
 hw/ppc/mpc8544ds.c                                 |    2 +-
 hw/ppc405_boards.c                                 |   10 +-
 hw/ppc405_uc.c                                     |    8 +-
 hw/ppc440_bamboo.c                                 |   10 +-
 hw/ppc4xx_devs.c                                   |    4 +-
 hw/ppc4xx_pci.c                                    |    2 +-
 hw/ppc_booke.c                                     |    6 +-
 hw/ppc_mac.h                                       |    2 +-
 hw/ppc_newworld.c                                  |   10 +-
 hw/ppc_oldworld.c                                  |   10 +-
 hw/ppc_prep.c                                      |   12 +-
 hw/ppce500_pci.c                                   |    4 +-
 hw/ppce500_spin.c                                  |    4 +-
 hw/prep_pci.c                                      |    2 +-
 hw/ps2.c                                           |    4 +-
 hw/ptimer.c                                        |    4 +-
 hw/ptimer.h                                        |    4 +-
 hw/puv3.c                                          |    4 +-
 hw/pxa.h                                           |    2 +-
 hw/pxa2xx.c                                        |    6 +-
 hw/pxa2xx_keypad.c                                 |    2 +-
 hw/pxa2xx_lcd.c                                    |    4 +-
 hw/pxa2xx_timer.c                                  |    4 +-
 hw/qdev-addr.c                                     |    2 +-
 hw/qdev-monitor.c                                  |    5 +-
 hw/qdev-properties.c                               |    8 +-
 hw/qdev.c                                          |    6 +-
 hw/qdev.h                                          |   11 +-
 hw/qxl-logger.c                                    |    2 +-
 hw/qxl.c                                           |    8 +-
 hw/qxl.h                                           |    4 +-
 hw/r2d.c                                           |    8 +-
 hw/rc4030.c                                        |    2 +-
 hw/realview.c                                      |    8 +-
 hw/rtl8139.c                                       |   10 +-
 hw/s390-virtio-bus.c                               |    9 +-
 hw/s390-virtio.c                                   |   14 +-
 hw/sb16.c                                          |    4 +-
 hw/scsi-bus.c                                      |    6 +-
 hw/scsi-disk.c                                     |    8 +-
 hw/scsi-generic.c                                  |    4 +-
 hw/scsi.h                                          |    4 +-
 hw/sd.c                                            |    4 +-
 hw/serial.c                                        |    4 +-
 hw/serial.h                                        |    4 +-
 hw/sga.c                                           |    2 +-
 hw/sh7750.c                                        |    4 +-
 hw/sh_intc.h                                       |    2 +-
 hw/sh_pci.c                                        |    4 +-
 hw/sh_serial.c                                     |    4 +-
 hw/sh_timer.c                                      |    4 +-
 hw/shix.c                                          |    4 +-
 hw/shpc.c                                          |    4 +-
 hw/shpc.h                                          |    4 +-
 hw/slavio_intctl.c                                 |    2 +-
 hw/slavio_misc.c                                   |    2 +-
 hw/slavio_timer.c                                  |    2 +-
 hw/sm501.c                                         |    4 +-
 hw/smbios.c                                        |    2 +-
 hw/smc91c111.c                                     |    2 +-
 hw/soc_dma.c                                       |    2 +-
 hw/soc_dma.h                                       |    2 +-
 hw/spapr.c                                         |   14 +-
 hw/spapr.h                                         |    2 +-
 hw/spapr_hcall.c                                   |    6 +-
 hw/spapr_iommu.c                                   |    6 +-
 hw/spapr_llan.c                                    |    2 +-
 hw/spapr_pci.c                                     |    2 +-
 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                                         |   10 +-
 hw/sysbus.c                                        |    4 +-
 hw/sysbus.h                                        |    2 +-
 hw/tc6393xb.c                                      |    4 +-
 hw/tcx.c                                           |    2 +-
 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/usb.h                                           |    2 +-
 hw/usb/bus.c                                       |    4 +-
 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.c                                  |    8 +-
 hw/usb/hcd-musb.c                                  |    2 +-
 hw/usb/hcd-ohci.c                                  |    2 +-
 hw/usb/hcd-uhci.c                                  |    6 +-
 hw/usb/hcd-xhci.c                                  |    2 +-
 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                                  |    6 +-
 hw/versatile_pci.c                                 |    2 +-
 hw/versatilepb.c                                   |    8 +-
 hw/vexpress.c                                      |    8 +-
 hw/vfio_pci.c                                      |   14 +-
 hw/vga-isa-mm.c                                    |    4 +-
 hw/vga-isa.c                                       |    4 +-
 hw/vga-pci.c                                       |    4 +-
 hw/vga.c                                           |    4 +-
 hw/vga_int.h                                       |    4 +-
 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-blk.c                                    |    4 +-
 hw/virtio-console.c                                |    4 +-
 hw/virtio-net.c                                    |    8 +-
 hw/virtio-net.h                                    |   28 --
 hw/virtio-pci.c                                    |    9 +-
 hw/virtio-scsi.h                                   |    1 -
 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                                    |    2 +-
 hw/vt82c686.c                                      |    4 +-
 hw/watchdog.c                                      |   12 +-
 hw/watchdog.h                                      |    2 +-
 hw/wdt_i6300esb.c                                  |    2 +-
 hw/wdt_ib700.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                                  |    3 +-
 hw/xen_pt.c                                        |    4 +-
 hw/xen_pt_config_init.c                            |    2 +-
 hw/xenfb.c                                         |    4 +-
 hw/xgmac.c                                         |    6 +-
 hw/xilinx.h                                        |    2 +-
 hw/xilinx_axidma.c                                 |    5 +-
 hw/xilinx_axienet.c                                |    5 +-
 hw/xilinx_ethlite.c                                |    2 +-
 hw/xilinx_spi.c                                    |    4 +-
 hw/xilinx_spips.c                                  |    4 +-
 hw/xilinx_timer.c                                  |    2 +-
 hw/xilinx_uartlite.c                               |    2 +-
 hw/xilinx_zynq.c                                   |    8 +-
 hw/xtensa_lx60.c                                   |   11 +-
 hw/xtensa_pic.c                                    |    4 +-
 hw/xtensa_sim.c                                    |    6 +-
 hw/z2.c                                            |    8 +-
 hw/zynq_slcr.c                                     |    4 +-
 {audio => include/audio}/audio.h                   |    2 +-
 aes.h => include/block/aes.h                       |    0
 qemu-aio.h => include/block/aio.h                  |    2 +-
 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
 include/bt/bt.h                                    |   20 +
 qemu-char.h => include/char/char.h                 |   12 +-
 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
 cpu-all.h => include/exec/cpu-all.h                |    4 +-
 cpu-common.h => include/exec/cpu-common.h          |    8 +-
 cpu-defs.h => include/exec/cpu-defs.h              |    6 +-
 def-helper.h => include/exec/def-helper.h          |    0
 exec-all.h => include/exec/exec-all.h              |   14 +-
 exec-memory.h => include/exec/exec-memory.h        |    2 +-
 gdbstub.h => include/exec/gdbstub.h                |    0
 gen-icount.h => include/exec/gen-icount.h          |    2 +-
 poison.h => include/exec/poison.h                  |    0
 softmmu-semi.h => include/exec/softmmu-semi.h      |    0
 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
 targphys.h => include/exec/targphys.h              |    0
 {fpu => include/fpu}/softfloat.h                   |    2 +-
 libfdt_env.h => include/libfdt_env.h               |    2 +-
 block-migration.h => include/migration/block.h     |    0
 qemu-file.h => include/migration/file.h            |    0
 migration.h => include/migration/migration.h       |    8 +-
 include/{qemu => migration}/page_cache.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 +-
 {net => include/net}/tap.h                         |   37 +-
 .../qapi/dealloc-visitor.h                         |    2 +-
 error.h => include/qapi/error.h                    |    2 +-
 {qapi => include/qapi}/opts-visitor.h              |    4 +-
 {qapi => include/qapi}/qmp-core.h                  |    6 +-
 {qapi => include/qapi}/qmp-input-visitor.h         |    4 +-
 {qapi => include/qapi}/qmp-output-visitor.h        |    4 +-
 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-types-core.h => include/qapi/types-core.h |    4 +-
 .../qapi-visit-core.h => include/qapi/visit-core.h |    2 +-
 .../qapi-visit-impl.h => include/qapi/visit-impl.h |    4 +-
 qemu-common.h => include/qemu-common.h             |   12 +-
 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        |    3 +-
 envlist.h => include/qemu/envlist.h                |    0
 qemu-error.h => include/qemu/error.h               |    0
 event_notifier.h => include/qemu/event_notifier.h  |    0
 host-utils.h => include/qemu/host-utils.h          |    2 +-
 int128.h => include/qemu/int128.h                  |    0
 iov.h => include/qemu/iov.h                        |    0
 qemu-log.h => include/qemu/log.h                   |    2 +-
 main-loop.h => include/qemu/main-loop.h            |    0
 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                              |    2 +-
 osdep.h => include/qemu/osdep.h                    |    0
 qemu-queue.h => include/qemu/queue.h               |    2 +-
 range.h => include/qemu/range.h                    |    0
 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
 uri.h => include/qemu/uri.h                        |    0
 qemu-xattr.h => include/qemu/xattr.h               |    0
 json-lexer.h => include/qobject/json-lexer.h       |    4 +-
 json-parser.h => include/qobject/json-parser.h     |    4 +-
 json-streamer.h => include/qobject/json-streamer.h |    4 +-
 qbool.h => include/qobject/qbool.h                 |    2 +-
 qdict.h => include/qobject/qdict.h                 |    6 +-
 qerror.h => include/qobject/qerror.h               |    8 +-
 qfloat.h => include/qobject/qfloat.h               |    2 +-
 qint.h => include/qobject/qint.h                   |    2 +-
 qjson.h => include/qobject/qjson.h                 |    6 +-
 qlist.h => include/qobject/qlist.h                 |    6 +-
 qobject.h => include/qobject/qobject.h             |    0
 qstring.h => include/qobject/qstring.h             |    2 +-
 include/{qemu => qom}/cpu.h                        |    4 +-
 include/{qemu => qom}/object.h                     |    2 +-
 include/{qemu => qom}/qom-qobject.h                |    2 +-
 {slirp => include/slirp}/libslirp.h                |    5 +
 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
 cputlb.h => include/sysemu/cputlb.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
 ioport.h => include/sysemu/ioport.h                |    2 +-
 iorange.h => include/sysemu/iorange.h              |    0
 kvm.h => include/sysemu/kvm.h                      |    2 +-
 .../sysemu/memory-internal.h                       |    0
 memory.h => include/sysemu/memory.h                |   12 +-
 .../sysemu/memory_mapping.h                        |    2 +-
 qemu-os-posix.h => include/sysemu/os-posix.h       |    0
 qemu-os-win32.h => include/sysemu/os-win32.h       |    2 +-
 qtest.h => include/sysemu/qtest.h                  |    0
 qemu-seccomp.h => include/sysemu/seccomp.h         |    2 +-
 sysemu.h => include/sysemu/sysemu.h                |   10 +-
 xen-mapcache.h => include/sysemu/xen-mapcache.h    |    0
 console.h => include/ui/console.h                  |    9 +-
 pflib.h => include/ui/pflib.h                      |    0
 {ui => include/ui}/qemu-spice.h                    |    9 +-
 {ui => include/ui}/spice-display.h                 |    6 +-
 iohandler.c                                        |    5 +-
 ioport.c                                           |    4 +-
 iov.c                                              |  105 +++++-
 kvm-all.c                                          |   20 +-
 kvm-stub.c                                         |    4 +-
 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-aio.c                                        |    3 +-
 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/elfload.c                               |    2 +-
 linux-user/main.c                                  |    6 +-
 linux-user/qemu.h                                  |    6 +-
 linux-user/syscall.c                               |    2 +-
 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                                          |   50 ++--
 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                                    |    7 +-
 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 +-
 posix-aio-compat.c                                 |   10 +-
 qapi/opts-visitor.c                                |    8 +-
 qapi/qapi-dealloc-visitor.c                        |    6 +-
 qapi/qapi-visit-core.c                             |    4 +-
 qapi/qmp-dispatch.c                                |    8 +-
 qapi/qmp-input-visitor.c                           |   10 +-
 qapi/qmp-output-visitor.c                          |   10 +-
 qapi/string-input-visitor.c                        |    6 +-
 qapi/string-output-visitor.c                       |    6 +-
 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 +-
 qga/Makefile.objs                                  |    2 +-
 qga/channel-posix.c                                |    2 +-
 qga/commands-posix.c                               |    6 +-
 qga/commands-win32.c                               |    2 +-
 qga/commands.c                                     |    2 +-
 qemu-ga.c => qga/main.c                            |   12 +-
 qapi-schema-guest.json => qga/qapi-schema.json     |    0
 qmp.c                                              |   11 +-
 qobject/Makefile.objs                              |    4 +
 json-lexer.c => qobject/json-lexer.c               |   10 +-
 json-parser.c => qobject/json-parser.c             |   18 +-
 json-streamer.c => qobject/json-streamer.c         |   10 +-
 qbool.c => qobject/qbool.c                         |    4 +-
 qdict.c => qobject/qdict.c                         |   14 +-
 qerror.c => qobject/qerror.c                       |    6 +-
 qfloat.c => qobject/qfloat.c                       |    4 +-
 qint.c => qobject/qint.c                           |    4 +-
 qjson.c => qobject/qjson.c                         |   18 +-
 qlist.c => qobject/qlist.c                         |    6 +-
 qstring.c => qobject/qstring.c                     |    4 +-
 qom/container.c                                    |    4 +-
 qom/cpu.c                                          |    2 +-
 qom/object.c                                       |   14 +-
 qom/qom-qobject.c                                  |    6 +-
 qtest.c                                            |   12 +-
 readline.c                                         |    4 +-
 rules.mak                                          |    5 +-
 savevm.c                                           |   21 +-
 scripts/feature_to_c.sh                            |    2 +-
 scripts/qapi-commands.py                           |   10 +-
 scripts/qapi-types.py                              |    2 +-
 scripts/qapi-visit.py                              |    2 +-
 slirp/if.c                                         |    2 +-
 slirp/ip_input.c                                   |    2 +-
 slirp/misc.c                                       |    5 +-
 slirp/sbuf.c                                       |    2 +-
 slirp/slirp.c                                      |    4 +-
 slirp/slirp.h                                      |   11 +-
 spice-qemu-char.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/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                                  |   10 +-
 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                                  |   11 +-
 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/hppa/tcg-target.c                              |    2 +-
 tcg/i386/tcg-target.c                              |    2 +-
 tcg/ia64/tcg-target.c                              |    2 +-
 tcg/mips/tcg-target.c                              |    2 +-
 tcg/ppc/tcg-target.c                               |    2 +-
 tcg/ppc64/tcg-target.c                             |    2 +-
 tcg/s390/tcg-target.c                              |    2 +-
 tcg/sparc/tcg-target.c                             |    2 +-
 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/test-i386.c                              |    2 +-
 tests/test-coroutine.c                             |    2 +-
 tests/test-iov.c                                   |    4 +-
 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 +-
 trace/simple.c                                     |    2 +-
 translate-all.c                                    |    4 +-
 ui/Makefile.objs                                   |    7 +-
 ui/cocoa.m                                         |    4 +-
 console.c => ui/console.c                          |    5 +-
 ui/curses.c                                        |    4 +-
 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                              |    9 +-
 ui/keymaps.c                                       |    2 +-
 pflib.c => ui/pflib.c                              |    4 +-
 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                                          |    6 +-
 xen-mapcache.c                                     |    6 +-
 xen-stub.c                                         |    2 +-
 1006 files changed, 2511 insertions(+), 3070 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%)
 rename uboot_image.h => hw/uboot_image.h (100%)
 rename {audio => include/audio}/audio.h (99%)
 rename aes.h => include/block/aes.h (100%)
 rename qemu-aio.h => include/block/aio.h (98%)
 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%)
 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 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 def-helper.h => include/exec/def-helper.h (100%)
 rename exec-all.h => include/exec/exec-all.h (98%)
 rename exec-memory.h => include/exec/exec-memory.h (97%)
 rename gdbstub.h => include/exec/gdbstub.h (100%)
 rename gen-icount.h => include/exec/gen-icount.h (98%)
 rename poison.h => include/exec/poison.h (100%)
 rename softmmu-semi.h => include/exec/softmmu-semi.h (100%)
 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 targphys.h => include/exec/targphys.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 qemu-file.h => include/migration/file.h (100%)
 rename migration.h => include/migration/migration.h (97%)
 rename include/{qemu => migration}/page_cache.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%)
 copy {net => include/net}/tap.h (69%)
 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-core.h (93%)
 rename {qapi => include/qapi}/qmp-input-visitor.h (91%)
 rename {qapi => include/qapi}/qmp-output-visitor.h (91%)
 rename qemu-objects.h => include/qapi/qmp-types.h (61%)
 rename {qapi => include/qapi}/string-input-visitor.h (95%)
 rename {qapi => include/qapi}/string-output-visitor.h (95%)
 rename qapi/qapi-types-core.h => include/qapi/types-core.h (87%)
 rename qapi/qapi-visit-core.h => include/qapi/visit-core.h (99%)
 rename qapi/qapi-visit-impl.h => include/qapi/visit-impl.h (90%)
 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 (93%)
 rename envlist.h => include/qemu/envlist.h (100%)
 rename qemu-error.h => include/qemu/error.h (100%)
 rename event_notifier.h => include/qemu/event_notifier.h (100%)
 rename host-utils.h => include/qemu/host-utils.h (99%)
 rename int128.h => include/qemu/int128.h (100%)
 rename iov.h => include/qemu/iov.h (100%)
 rename qemu-log.h => include/qemu/log.h (99%)
 rename main-loop.h => include/qemu/main-loop.h (100%)
 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 (98%)
 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 (95%)
 rename qemu-timer.h => include/qemu/timer.h (99%)
 rename qemu-tls.h => include/qemu/tls.h (100%)
 rename uri.h => include/qemu/uri.h (100%)
 rename qemu-xattr.h => include/qemu/xattr.h (100%)
 rename json-lexer.h => include/qobject/json-lexer.h (94%)
 rename json-parser.h => include/qobject/json-parser.h (90%)
 rename json-streamer.h => include/qobject/json-streamer.h (94%)
 rename qbool.h => include/qobject/qbool.h (94%)
 rename qdict.h => include/qobject/qdict.h (96%)
 rename qerror.h => include/qobject/qerror.h (98%)
 rename qfloat.h => include/qobject/qfloat.h (94%)
 rename qint.h => include/qobject/qint.h (94%)
 rename qjson.h => include/qobject/qjson.h (88%)
 rename qlist.h => include/qobject/qlist.h (95%)
 rename qobject.h => include/qobject/qobject.h (100%)
 rename qstring.h => include/qobject/qstring.h (96%)
 rename include/{qemu => qom}/cpu.h (97%)
 rename include/{qemu => qom}/object.h (99%)
 rename include/{qemu => qom}/qom-qobject.h (97%)
 rename {slirp => include/slirp}/libslirp.h (96%)
 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 cputlb.h => include/sysemu/cputlb.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 ioport.h => include/sysemu/ioport.h (98%)
 rename iorange.h => include/sysemu/iorange.h (100%)
 rename kvm.h => include/sysemu/kvm.h (99%)
 rename memory-internal.h => include/sysemu/memory-internal.h (100%)
 rename memory.h => include/sysemu/memory.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 (99%)
 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 pflib.h => include/ui/pflib.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%)
 rename qemu-ga.c => qga/main.c (99%)
 rename qapi-schema-guest.json => qga/qapi-schema.json (100%)
 create mode 100644 qobject/Makefile.objs
 rename json-lexer.c => qobject/json-lexer.c (98%)
 rename json-parser.c => qobject/json-parser.c (98%)
 rename json-streamer.c => qobject/json-streamer.c (95%)
 rename qbool.c => qobject/qbool.c (95%)
 rename qdict.c => qobject/qdict.c (98%)
 rename qerror.c => qobject/qerror.c (97%)
 rename qfloat.c => qobject/qfloat.c (95%)
 rename qint.c => qobject/qint.c (95%)
 rename qjson.c => qobject/qjson.c (96%)
 rename qlist.c => qobject/qlist.c (97%)
 rename qstring.c => qobject/qstring.c (98%)
 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 pflib.c => ui/pflib.c (99%)
 rename qemu-x509.h => ui/qemu-x509.h (100%)
 rename vgafont.h => ui/vgafont.h (100%)
#1 lore raw

PATCH 1/32 libcacard: simplify rules for recursive build

---
 Makefile |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
Makefile +1 -9
index 17e2d58..5fc94ef 100644
@@ -141,19 +141,11 @@ version-obj-$(CONFIG_WIN32) += version.o
 # 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.7.1
#2 lore raw

PATCH 2/32 vscclient: use per-target variables

In reply to Paolo Bonzini
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Makefile +2 -1
index 5fc94ef..21b4ded 100644
@@ -162,8 +162,9 @@ qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y)
 
 qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o
 
+vscclient$(EXESUF): LIBS += $(libcacard_libs)
 vscclient$(EXESUF): $(libcacard-y) $(oslib-obj-y) $(trace-obj-y) $(tools-obj-y) qemu-timer-common.o libcacard/vscclient.o
-	$(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.7.1
#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 21b4ded..00126b9 100644
@@ -123,8 +123,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 fa5657f..e4285e5 100755
@@ -268,7 +268,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"
@@ -3261,7 +3261,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 1b173aa..e77c76a 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.7.1
#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 files changed, 1 insertions(+), 1 deletions(-)
rules.mak +1 -1
index e77c76a..471afcd 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.7.1
#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 00126b9..3cfe5af 100644
@@ -119,16 +119,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 554f429..1b508c8 100644
@@ -12,3 +12,5 @@ block-obj-$(CONFIG_GLUSTERFS) += gluster.o
 
 common-obj-y += stream.o
 common-obj-y += commit.o
+
+$(obj)/curl.o: QEMU_CFLAGS+=$(CURL_CFLAGS)
hw/Makefile.objs +2 -0
index af4ab0c..994a60b 100644
@@ -206,3 +206,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.7.1
#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 insertions(+), 1 deletions(-)
 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 e4285e5..1642a2f 100755
@@ -4058,7 +4058,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.7.1
#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..3f560bd 100644
@@ -1,5 +1,6 @@
 config-devices.*
 config-all-devices.*
+config-all-disass.*
 config-host.*
 config-target.*
 trace.h
Makefile +5 -4
index 3cfe5af..5691e9e 100644
@@ -88,6 +88,7 @@ defconfig:
 	rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
 
 -include config-all-devices.mak
+-include config-all-disass.mak
 
 all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all
 
@@ -107,9 +108,9 @@ endif
 
 subdir-libcacard: $(oslib-obj-y) $(trace-obj-y) qemu-timer-common.o
 
-$(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-%:
@@ -196,7 +197,7 @@ $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
 
 qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(tools-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y)
 
-QEMULIBS=libuser libdis libdis-user
+QEMULIBS=libuser
 
 clean:
 # avoid old build problems by removing potentially incorrect old files
@@ -228,7 +229,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-disass.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 9eca179..ea4171d 100644
@@ -120,24 +120,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
@@ -245,5 +231,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 3822bc5..29ff39a 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
@@ -153,11 +152,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 252da86..4bc8918 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 b801c8f..57906f1 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"
 
 /* Filled in by elfload.c.  Simplistic, but will do for now. */
 struct syminfo *syminfos = NULL;
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 33acc2f..172fdd1 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 131b325..5129bb1 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 ce6bb09..b16ab3a 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 f707d8d..17d6458 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 daccb15..6f2914d 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 755de65..4a4224d 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 ee75850..eac1c17 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 77c2866..8df04de 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 451ef74..d60cd6e 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 74fce26..29c4679 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 7d864b1..e9a5d32 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 454e5cc..bd1ad10 100644
@@ -21,7 +21,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 e2cad3a..ba2efd4 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 1042268..4f5ecff 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 a972287..bc9a21e 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 db464cc..443912e 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 9d955eb..ba6b127 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 4321393..705ab6e 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 c3cdafa..03c28f1 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 82e8ccc..03e5451 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 5bd2d37..8cf72ae 100644
@@ -26,7 +26,7 @@
 
 #define NO_CPU_IO_DEFS
 #include "cpu.h"
-#include "disas.h"
+#include "disas/disas.h"
 #include "tcg.h"
 #include "qemu-timer.h"
 
user-exec.c +1 -1
index ef9b172..6f5a1cd 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 9f99ef4..5d73a55 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.7.1
#8 lore raw

Re: [Qemu-devel] [PATCH 07/32] build: kill libdis, move disassemblers to disas/

Quoted 2 lines · Paolo Bonzini

+ echo "CONFIG_ALPHA_DIS=y" >> config-all-disass.mak

"config-all-disas.mak" for consistency with the abbreviation we use everywhere else, please.

-- PMM

#9 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 5691e9e..07b7049 100644
@@ -110,7 +110,7 @@ subdir-libcacard: $(oslib-obj-y) $(trace-obj-y) qemu-timer-common.o
 
 $(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-%:
@@ -197,8 +197,6 @@ $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
 
 qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(tools-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y)
 
-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
@@ -215,7 +213,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
@@ -238,7 +236,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
 
Makefile.objs +2 -1
index ea4171d..0b89b8a 100644
@@ -116,7 +116,6 @@ user-obj-y += tcg-runtime.o host-utils.o
 user-obj-y += cutils.o iov.o cache-utils.o
 user-obj-y += module.o
 user-obj-y += qemu-user.o
-user-obj-y += $(trace-obj-y)
 user-obj-y += qom/
 
 ######################################################################
@@ -189,6 +188,8 @@ trace-obj-y += trace/control.o
 
 $(trace-obj-y): $(GENERATED_HEADERS)
 
+universal-obj-y += $(trace-obj-y)
+
 ######################################################################
 # smartcard
 
Makefile.target +1 -2
index 29ff39a..0ab8556 100644
@@ -152,9 +152,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 9776cda..9329b97 100755
@@ -4108,9 +4108,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.7.1
#10 lore raw

PATCH 9/32 janitor: move iovector functions out of cutils.c

In reply to Paolo Bonzini

This removes the dependency of cutils.c on iov.c, and lets us remove iov.o from several builds.

---
 Makefile      |    2 +-
 Makefile.objs |    4 +-
 cutils.c      |  103 ---------------------------------------------------------
 iov.c         |  103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 106 insertions(+), 106 deletions(-)
Makefile +1 -1
index 07b7049..3361d24 100644
@@ -142,7 +142,7 @@ qemu-img.o: qemu-img-cmds.h
 
 tools-obj-y = $(oslib-obj-y) $(trace-obj-y) qemu-tool.o qemu-timer.o \
 	qemu-timer-common.o main-loop.o notify.o \
-	iohandler.o cutils.o iov.o async.o error.o
+	iohandler.o cutils.o async.o error.o
 tools-obj-$(CONFIG_POSIX) += compatfd.o
 
 qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y)
Makefile.objs +2 -2
index 0b89b8a..66a0b3d 100644
@@ -92,7 +92,7 @@ common-obj-y += ui/
 common-obj-y += bt-host.o bt-vhci.o
 
 common-obj-y += dma-helpers.o
-common-obj-y += iov.o acl.o
+common-obj-y += acl.o
 common-obj-$(CONFIG_POSIX) += compatfd.o
 common-obj-y += event_notifier.o
 common-obj-y += qemu-timer.o qemu-timer-common.o
@@ -113,7 +113,7 @@ endif
 user-obj-y =
 user-obj-y += envlist.o path.o
 user-obj-y += tcg-runtime.o host-utils.o
-user-obj-y += cutils.o iov.o cache-utils.o
+user-obj-y += cutils.o cache-utils.o
 user-obj-y += module.o
 user-obj-y += qemu-user.o
 user-obj-y += qom/
cutils.c +0 -103

109 lines not on this page · raw message

iov.c +103 -0

106 lines not on this page · raw message

Signature · 1 line
1.7.1
#11 lore raw

PATCH 10/32 janitor: do not rely on indirect inclusions 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 complete the set of inclusions of qemu-config.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.c     |    1 +
 exec.c               |    1 +
 hw/arm_boot.c        |    1 +
 hw/dma.c             |    1 +
 hw/fw_cfg.c          |    1 +
 hw/mac_dbdma.c       |    1 +
 hw/qdev-monitor.c    |    1 +
 hw/usb/dev-network.c |    1 +
 linux-aio.c          |    1 +
 net.c                |    1 +
 qemu-aio.h           |    1 +
 qemu-config.h        |    1 +
 target-i386/kvm.c    |    1 +
 20 files changed, 20 insertions(+), 0 deletions(-)
arch_init.c +1 -0
index e6effe8..dde7fad 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 1206d52..152c0a8 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 d0b1a10..9f182ac 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.c +1 -0
index 2c207e1..23d5128 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 750008c..1821aef 100644
@@ -33,6 +33,7 @@
 #include "kvm.h"
 #include "hw/xen.h"
 #include "qemu-timer.h"
+#include "qemu-config.h"
 #include "memory.h"
 #include "exec-memory.h"
 #if defined(CONFIG_USER_ONLY)
hw/arm_boot.c +1 -0
index a6e9143..740ecfb 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 0a9322d..8053ded 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 dcde1a9..2e54a43 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/mac_dbdma.c +1 -0
index 1791ec1..ac98fe9 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/qdev-monitor.c +1 -0
index 479eecd..6e5eb45 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/usb/dev-network.c +1 -0
index e4a4359..df8a3bb 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"
 
linux-aio.c +1 -0
index ce9b5d4..f3d8ef3 100644
@@ -9,6 +9,7 @@
  */
 #include "qemu-common.h"
 #include "qemu-aio.h"
+#include "qemu-queue.h"
 #include "block/raw-posix-aio.h"
 
 #include <sys/eventfd.h>
net.c +1 -0
index ae4bc0d..72d1c33 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-aio.h +1 -0
index bfdd35f..a61cd83 100644
@@ -16,6 +16,7 @@
 
 #include "qemu-common.h"
 #include "qemu-char.h"
+#include "main-loop.h"
 
 typedef struct BlockDriverAIOCB BlockDriverAIOCB;
 typedef void BlockDriverCompletionFunc(void *opaque, int ret);
qemu-config.h +1 -0
index 5557562..daf1539 100644
@@ -2,6 +2,7 @@
 #define QEMU_CONFIG_H
 
 #include "error.h"
+#include "qemu-option.h"
 
 extern QemuOptsList qemu_fsdev_opts;
 extern QemuOptsList qemu_virtfs_opts;
target-i386/kvm.c +1 -0
index 5b18383..c918276 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.7.1
#12 lore raw

PATCH 11/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 -
 event_notifier.c         |    1 -
 hmp.c                    |    1 +
 hw/9pfs/virtio-9p-coth.c |    1 -
 hw/ivshmem.c             |    1 +
 hw/qdev-properties.c     |    1 +
 hw/qdev.h                |    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 -
 qemu-aio.h               |    1 -
 qmp.c                    |    1 +
 savevm.c                 |    1 -
 ui/qemu-spice.h          |    1 -
 35 files changed, 8 insertions(+), 28 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 28d439f..5f868bf 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 ed92df1..068c0d7 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 3f3d254..eb46d79 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 6099d8d..a9f8952 100644
@@ -1,7 +1,6 @@
 #ifndef CONSOLE_H
 #define CONSOLE_H
 
-#include "qemu-char.h"
 #include "qdict.h"
 #include "notify.h"
 #include "monitor.h"
event_notifier.c +0 -1
index 23d5128..f0d10bb 100644
@@ -12,7 +12,6 @@
 
 #include "qemu-common.h"
 #include "event_notifier.h"
-#include "qemu-char.h"
 #include "main-loop.h"
 
 #ifdef CONFIG_EVENTFD
hmp.c +1 -0
index 2b97982..264f226 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 5c4ccb8..0c62d43 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/qdev-properties.c +1 -0
index 8aca0d4..fab3888 100644
@@ -4,6 +4,7 @@
 #include "blockdev.h"
 #include "hw/block-common.h"
 #include "net/hub.h"
+#include "qemu-char.h"
 
 void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)
 {
hw/qdev.h +0 -1
index c6ac636..8ba1613 100644
@@ -3,7 +3,6 @@
 
 #include "hw.h"
 #include "qemu-queue.h"
-#include "qemu-char.h"
 #include "qemu-option.h"
 #include "qapi/qapi-visit-core.h"
 #include "qemu/object.h"
hw/spapr_hcall.c +0 -2
index 194d9c2..ea6119e 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 7150eeb..4847e43 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 0e28c51..264cb6e 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 eec155d..c680187 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 0c407d3..dc2f7ce 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 a2d871b..fb0bc11 100644
@@ -24,7 +24,6 @@
 
 #include "config-host.h"
 #include "qemu-common.h"
-#include "qemu-char.h"
 #include "qemu-queue.h"
 #include "main-loop.h"
 
migration-exec.c +0 -1
index 519af57..ed63187 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 ce6932d..b1e3cca 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 46f6ac5..7006fdb 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 ed3db3a..570bc94 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 b6e7d95..76c59f7 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 bf86a44..422a3a4 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 b75d567..c9019eb 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 df89caa..0230ae5 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"
 
qemu-aio.h +0 -1
index a61cd83..40053b4 100644
@@ -15,7 +15,6 @@
 #define QEMU_AIO_H
 
 #include "qemu-common.h"
-#include "qemu-char.h"
 #include "main-loop.h"
 
 typedef struct BlockDriverAIOCB BlockDriverAIOCB;
qmp.c +1 -0
index 31bc3bf..1d3f7d7 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 b080d37..7176424 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.7.1
#13 lore raw

PATCH 12/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 55bc191..3b64587 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.7.1
#14 lore raw

PATCH 13/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 insertions(+), 16 deletions(-)
arch_init.c +0 -1
index dde7fad..1973037 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 7604d09..f39723d 100644
@@ -6,7 +6,6 @@
 #include "pci.h"
 #include "pci_host.h"
 #include "ide.h"
-#include "net.h"
 #include "pc.h"
 #include "irq.h"
 
hw/device-hotplug.c +0 -1
index eec0fe3..f896cb4 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 c5a62c8..8417ed3 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 9f358a7..b293152 100644
@@ -3,6 +3,7 @@
 
 #include "qdev.h"
 #include "qdev-addr.h"
+#include "net.h"
 
 static inline DeviceState *milkymist_uart_create(target_phys_addr_t base,
         qemu_irq irq)
hw/milkymist.c +0 -1
index ca9ed43..1cf7f05 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 a245684..b28bd75 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 c59e1cb..c7b446c 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 36aa463..58661d9 100644
@@ -15,7 +15,6 @@
 #define _QEMU_VIRTIO_NET_H
 
 #include "virtio.h"
-#include "net.h"
 #include "pci.h"
 
 #define ETH_ALEN    6
hw/virtio-pci.c +0 -1
index 400f3c2..f1a4c06 100644
@@ -26,7 +26,6 @@
 #include "qemu-error.h"
 #include "msi.h"
 #include "msix.h"
-#include "net.h"
 #include "loader.h"
 #include "kvm.h"
 #include "blockdev.h"
hw/virtio-scsi.h +0 -1
index 91924f6..8635dab 100644
@@ -15,7 +15,6 @@
 #define _QEMU_VIRTIO_SCSI_H
 
 #include "virtio.h"
-#include "net.h"
 #include "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 956dbfe..c0f0caa 100644
@@ -30,7 +30,6 @@
 #include "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 afe2bfb..255a3ae 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 908a103..204f13e 100644
@@ -23,7 +23,6 @@
  */
 
 #include "sysemu.h"
-#include "net.h"
 #include "monitor.h"
 #include "console.h"
 
Signature · 1 line
1.7.1
#15 lore raw

PATCH 14/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 66a0b3d..7bbe646 100644
@@ -62,7 +62,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 += $(oslib-obj-y)
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 72d1c33..317e258 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.7.1
#16 lore raw

PATCH 15/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-hotplug.c                |    2 +-
 hw/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            |    3 +--
 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
 {net => include/net}/tap.h      |   37 +++++++++++++++++++++++--------------
 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, 125 insertions(+), 170 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%)
 copy {net => include/net}/tap.h (69%)
 rename net/{tap.h => tap_int.h} (77%)
hmp.c +1 -1
index 264f226..313233f 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 2fd7356..b5d8882 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 967f625..0460e37 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 4fa6ecc..7ee3672 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 63fee10..071d077 100644
@@ -27,7 +27,7 @@
 
 #include "hw.h"
 #include "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 5b23116..0375fc8 100644
@@ -43,7 +43,7 @@
 #include <stddef.h>             /* offsetof */
 #include "hw.h"
 #include "pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "eeprom93xx.h"
 #include "sysemu.h"
 #include "dma.h"
hw/etraxfs.h +1 -1
index c62f94b..64f87a5 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 b124f5b..8a77c98 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 4951064..7eb004f 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 15036b6..7b97de0 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 ac0ea83..df68105 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 ceaf96f..cf33af1 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 9b98bb8..d0e055c 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 c0d6034..1315a29 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 688bc3c..60b311a 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 2fec5bc..0e23f0a 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 b293152..9144379 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(target_phys_addr_t base,
         qemu_irq irq)
hw/milkymist-minimac2.c +1 -1
index b483a02..dbcbaa0 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 5fcf900..cc31bb7 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 6bd231d..4509cb4 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 22ec8b9..e26caff 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 a95a3c1..484e2f7 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 539577b..b84ca64 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 28063b1..19b562c 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 159d3c3..4551c25 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 15605c4..72a2e32 100644
@@ -23,7 +23,7 @@
  */
 #include "hw.h"
 #include "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 8c15969..2bb10e8 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 7327740..e0e487c 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 6cba7ce..e9aa0ea 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 bf04a42..ea63fa1 100644
@@ -30,7 +30,7 @@
 #include "pci.h"
 #include "pci_ids.h"
 #include "usb.h"
-#include "net.h"
+#include "net/net.h"
 #include "boards.h"
 #include "ide.h"
 #include "kvm.h"
hw/pci-hotplug.c +1 -1
index e7fb780..1be8263 100644
@@ -25,7 +25,7 @@
 #include "hw.h"
 #include "boards.h"
 #include "pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "pc.h"
 #include "monitor.h"
 #include "scsi.h"
hw/pci.c +1 -1
index 7eeaac0..f6ac1c4 100644
@@ -26,7 +26,7 @@
 #include "pci_bridge.h"
 #include "pci_internals.h"
 #include "monitor.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "loader.h"
 #include "range.h"
hw/pcnet-pci.c +1 -1
index 48fd447..ea4cabb 100644
@@ -28,7 +28,7 @@
  */
 
 #include "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 40820b3..7fedf13 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 5b45809..787abee 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 71c32ce..b2e2dd7 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 5616a26..6a525c8 100644
@@ -13,7 +13,7 @@
 
 #include "config.h"
 #include "qemu-common.h"
-#include "net.h"
+#include "net/net.h"
 #include "hw.h"
 #include "pci.h"
 #include "boards.h"
hw/ppc_newworld.c +1 -1
index a265445..bf309a7 100644
@@ -53,7 +53,7 @@
 #include "mac_dbdma.h"
 #include "nvram.h"
 #include "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 de33408..f3b75cd 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.h"
 #include "boards.h"
hw/ppc_prep.c +1 -1
index a0d1c3d..7ad3b17 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.h"
hw/qdev-properties.c +1 -2
index fab3888..877ee09 100644
@@ -1,9 +1,8 @@
-#include "net.h"
+#include "net/net.h"
 #include "qdev.h"
 #include "qerror.h"
 #include "blockdev.h"
 #include "hw/block-common.h"
-#include "net/hub.h"
 #include "qemu-char.h"
 
 void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)
hw/qdev.c +1 -1
index 9b9aba3..bc20417 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 3cb6942..d002f05 100644
@@ -30,7 +30,7 @@
 #include "sysemu.h"
 #include "boards.h"
 #include "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 8dc4be6..68df94e 100644
@@ -12,7 +12,7 @@
 #include "primecell.h"
 #include "devices.h"
 #include "pci.h"
-#include "net.h"
+#include "net/net.h"
 #include "sysemu.h"
 #include "boards.h"
 #include "i2c.h"
hw/rtl8139.c +1 -1
index 6b28fea..3ab9895 100644
@@ -55,7 +55,7 @@
 #include "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 39ff178..9a145df 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 d6ef302..b5b041d 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 637b3fb..5ebc542 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 bd3f131..0cadeac 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 bfb18b0..24a9b41 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 bc97280..4c7e31a 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 dbe93f9..980908d 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 eeb6496..a922046 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 df8a3bb..81142b7 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 756ec29..ad1e730 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.h"
 #include "i2c.h"
hw/vexpress.c +1 -1
index 36503d6..6f1f0c9 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 df2c4a3..2962b4d 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 50ba728..b3dbe78 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 58661d9..a25fca2 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 80de375..257018a 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 a91ef60..55f0b4f 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 9830047..2036abc 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(target_phys_addr_t base, qemu_irq irq, int kind_of_intr)
hw/xilinx_axienet.c +1 -1
index c680187..9282801 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 56ca620..79682d4 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 c55dafb..491a9a9 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 dc2f7ce..ba0d3d7 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 renamed from net/tap.h +23 -14
similarity index 69%
copy from net/tap.h
copy to include/net/tap.h
index d44d83a..bb7efb5 100644
@@ -29,13 +29,6 @@
 #include "qemu-common.h"
 #include "qapi-types.h"
 
-#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
-
-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);
@@ -43,16 +36,32 @@ 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);
-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);
 
+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;
+};
+
+struct virtio_net_hdr_mrg_rxbuf
+{
+    struct virtio_net_hdr hdr;
+    uint16_t num_buffers;   /* Number of merged rx buffers */
+};
+
 #endif /* QEMU_NET_TAP_H */
monitor.c +1 -1
index 5129bb1..cd8870b 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 317e258..8b8ba12 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 422a3a4..27b6cc6 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 c9019eb..f7bc51b 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 c6521be..377df2e 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 22dad3f..b2a6e73 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 0230ae5..cb35db6 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 7176424..5e69585 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 5d73a55..88880f6 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.7.1
#17 lore raw

Re: [Qemu-devel] [PATCH 15/32] net: reorganize headers

Quoted 6 lines · Paolo Bonzini
include/net/tap.h renamed from net/tap.h +6 -0
+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

include/net/tap.h void tap_using_vnet_hdr(NetClientState *nc, int using_vnet_hdr); · line 59

Quoted 10 lines
include/net/tap.h renamed from net/tap.h +10 -0
+#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;
+};

Idea for a separate cleanup: net/tap.c doesn't need the definition of struct virtio_net_hdr or virtio_net_hdr_mrg_rxbuf. It should simply negotiate vnet_hdr_size between hw/virtio-net.c and the kernel tun driver. The layout and contents of the struct are not needed by net/tap.c itself.

Stefan

#18 lore raw

PATCH 16/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 3361d24..2f0811d 100644
@@ -173,13 +173,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 :\
@@ -195,7 +195,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) $(tools-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y)
+qemu-ga$(EXESUF): $(qga-obj-y) $(tools-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y)
+	$(call LINK, $^)
 
 clean:
 # avoid old build problems by removing potentially incorrect old files
Makefile.objs +1 -1
index 7bbe646..545b822 100644
@@ -215,7 +215,7 @@ universal-obj-y += $(qapi-obj-y)
 ######################################################################
 # guest agent
 
-qga-obj-y = qga/ qemu-ga.o module.o
+qga-obj-y = qga/ module.o
 qga-obj-$(CONFIG_WIN32) += oslib-win32.o
 qga-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-sockets.o qemu-option.o
 
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.7.1
#19 lore raw

PATCH 17/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                                 |    2 +-
 hw/bt-hid.c                                   |    2 +-
 hw/cirrus_vga.c                               |    2 +-
 hw/escc.c                                     |    2 +-
 hw/exynos4210_fimd.c                          |    2 +-
 hw/framebuffer.c                              |    2 +-
 hw/g364fb.c                                   |    2 +-
 hw/hid.c                                      |    2 +-
 hw/hpet.c                                     |    2 +-
 hw/jazz_led.c                                 |    2 +-
 hw/kvm/pci-assign.c                           |    2 +-
 hw/lm832x.c                                   |    2 +-
 hw/milkymist-softusb.c                        |    2 +-
 hw/milkymist-vgafb.c                          |    2 +-
 hw/msmouse.c                                  |    6 +++---
 hw/musicpal.c                                 |    2 +-
 hw/nseries.c                                  |    2 +-
 hw/omap_dss.c                                 |    2 +-
 hw/omap_lcdc.c                                |    2 +-
 hw/omap_sx1.c                                 |    2 +-
 hw/palm.c                                     |    2 +-
 hw/pl110.c                                    |    2 +-
 hw/ps2.c                                      |    2 +-
 hw/puv3.c                                     |    2 +-
 hw/pxa2xx_keypad.c                            |    2 +-
 hw/pxa2xx_lcd.c                               |    2 +-
 hw/qxl.h                                      |    2 +-
 hw/sm501.c                                    |    2 +-
 hw/spitz.c                                    |    2 +-
 hw/ssd0303.c                                  |    2 +-
 hw/ssd0323.c                                  |    2 +-
 hw/stellaris_input.c                          |    2 +-
 hw/tc6393xb.c                                 |    2 +-
 hw/tcx.c                                      |    2 +-
 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                               |    2 +-
 hw/vga-isa.c                                  |    2 +-
 hw/vga-pci.c                                  |    2 +-
 hw/vga.c                                      |    2 +-
 hw/vmmouse.c                                  |    2 +-
 hw/vmware_vga.c                               |    2 +-
 hw/xenfb.c                                    |    2 +-
 hw/z2.c                                       |    2 +-
 console.h => include/ui/console.h             |    0
 pflib.h => include/ui/pflib.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 +-
 pflib.c => ui/pflib.c                         |    4 ++--
 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 +-
 79 files changed, 79 insertions(+), 81 deletions(-)
 rename console.h => include/ui/console.h (100%)
 rename pflib.h => include/ui/pflib.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 pflib.c => ui/pflib.c (99%)
 rename qemu-x509.h => ui/qemu-x509.h (100%)
 rename vgafont.h => ui/vgafont.h (100%)
Makefile.objs +1 -3
index 545b822..bd9534d 100644
@@ -64,7 +64,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 += readline.o
 common-obj-y += $(oslib-obj-y)
 common-obj-$(CONFIG_WIN32) += os-win32.o
 common-obj-$(CONFIG_POSIX) += os-posix.o
@@ -73,11 +73,9 @@ 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
-common-obj-y += pflib.o
 common-obj-y += bitmap.o bitops.o
 common-obj-y += page_cache.o
 
hmp.c +1 -1
index 313233f..ea410ef 100644
@@ -20,7 +20,7 @@
 #include "qemu-timer.h"
 #include "qmp-commands.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 aa15f55..e6b8022 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 +1 -1
index 06e19b3..b725d9b 100644
@@ -19,7 +19,7 @@
  */
 
 #include "qemu-common.h"
-#include "console.h"
+#include "ui/console.h"
 #include "devices.h"
 #include "vga_int.h"
 #include "pixel_ops.h"
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 a101329..2559389 100644
@@ -28,7 +28,7 @@
  */
 #include "hw.h"
 #include "pci.h"
-#include "console.h"
+#include "ui/console.h"
 #include "vga_int.h"
 #include "loader.h"
 
hw/escc.c +1 -1
index e1f5e73..ce5a082 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 +1 -1
index 3313f00..35ed48c 100644
@@ -25,7 +25,7 @@
 #include "qemu-common.h"
 #include "cpu-all.h"
 #include "sysbus.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pixel_ops.h"
 #include "bswap.h"
 
hw/framebuffer.c +1 -1
index 27fa6f5..3d529ff 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 +1 -1
index 059e622..6790600 100644
@@ -18,7 +18,7 @@
  */
 
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "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 fd3ddca..6b5b198 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 +1 -1
index 6486523..24754be 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "console.h"
+#include "ui/console.h"
 #include "pixel_ops.h"
 #include "trace.h"
 #include "sysbus.h"
hw/kvm/pci-assign.c +1 -1
index 7a0998c..1bfddb0 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 ecc2be9..62585c4 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 +1 -1
index cd4365d..6a07bc6 100644
@@ -25,7 +25,7 @@
 #include "hw.h"
 #include "sysbus.h"
 #include "trace.h"
-#include "console.h"
+#include "ui/console.h"
 #include "framebuffer.h"
 #include "pixel_ops.h"
 #include "qemu-error.h"
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 +1 -1
index 4551c25..8389db6 100644
@@ -20,7 +20,7 @@
 #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"
hw/nseries.c +1 -1
index 7ada90d..371f52e 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 86ed6ea..d9036d5 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 +1 -1
index e2ba108..675625c 100644
@@ -17,7 +17,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 "framebuffer.h"
 
hw/omap_sx1.c +1 -1
index ad17487..30e02bb 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 032b8d6..37dde1e 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 +1 -1
index a582640..39f1333 100644
@@ -8,7 +8,7 @@
  */
 
 #include "sysbus.h"
-#include "console.h"
+#include "ui/console.h"
 #include "framebuffer.h"
 
 #define PL110_CR_EN   0x001
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 764799c..887a37a 100644
@@ -8,7 +8,7 @@
  * published by the Free Software Foundation, or any later version.
  * See the COPYING file in the top-level directory.
  */
-#include "console.h"
+#include "ui/console.h"
 #include "elf.h"
 #include "exec-memory.h"
 #include "sysbus.h"
hw/pxa2xx_keypad.c +1 -1
index 1a997c9..85ad251 100644
@@ -13,7 +13,7 @@
 
 #include "hw.h"
 #include "pxa.h"
-#include "console.h"
+#include "ui/console.h"
 
 /*
  * Keypad
hw/pxa2xx_lcd.c +1 -1
index ee8bf57..0b1ee9a 100644
@@ -11,7 +11,7 @@
  */
 
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pxa.h"
 #include "pixel_ops.h"
 /* FIXME: For graphic_rotate. Should probably be done in common code.  */
hw/qxl.h +1 -1
index e583cfb..8202c08 100644
@@ -1,6 +1,6 @@
 #include "qemu-common.h"
 
-#include "console.h"
+#include "ui/console.h"
 #include "hw.h"
 #include "pci.h"
 #include "vga_int.h"
hw/sm501.c +1 -1
index 050d096..c677f20 100644
@@ -25,7 +25,7 @@
 #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"
hw/spitz.c +1 -1
index 2942626..5048b66 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 4e1ee6e..0160ff9 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 9c42d64..c1f8c89 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 +1 -1
index 420925c..afb78bb 100644
@@ -13,7 +13,7 @@
 #include "hw.h"
 #include "devices.h"
 #include "flash.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pixel_ops.h"
 #include "blockdev.h"
 
hw/tcx.c +1 -1
index 2db2db1..72de9c2 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 
-#include "console.h"
+#include "ui/console.h"
 #include "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 b3dcd23..58b7995 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 e732191..02fb051 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 ed9a5ee..0910e34 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 +1 -1
index 306e6ba..486d375 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pc.h"
 #include "vga_int.h"
 #include "pixel_ops.h"
hw/vga-isa.c +1 -1
index 046602b..c7cbded 100644
@@ -24,7 +24,7 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pc.h"
 #include "vga_int.h"
 #include "pixel_ops.h"
hw/vga-pci.c +1 -1
index 5c4daee..4609924 100644
@@ -24,7 +24,7 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pci.h"
 #include "vga_int.h"
 #include "pixel_ops.h"
hw/vga.c +1 -1
index a07a6fb..ca07013 100644
@@ -23,7 +23,7 @@
  */
 #include "hw.h"
 #include "vga.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pc.h"
 #include "pci.h"
 #include "vga_int.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 6f7074e..83dbc8b 100644
@@ -23,7 +23,7 @@
  */
 #include "hw.h"
 #include "loader.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pci.h"
 
 #undef VERBOSE
hw/xenfb.c +1 -1
index 338800a..5fbbc9e 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 +0 -0
similarity index 100%
rename from console.h
rename to include/ui/console.h
include/ui/pflib.h renamed from pflib.h +0 -0
similarity index 100%
rename from pflib.h
rename to include/ui/pflib.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 d766927..3e58380 100644
@@ -20,7 +20,7 @@
 #include <spice/qxl_dev.h>
 
 #include "qemu-thread.h"
-#include "console.h"
+#include "ui/console.h"
 #include "pflib.h"
 #include "sysemu.h"
 
monitor.c +1 -1
index cd8870b..874c3ee 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 255a3ae..ffaab2c 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 204f13e..5948e54 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..fa815c1 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 pflib.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 2383646..611bb26 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 eb46d79..0d80e4e 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 c2be2c6..d5dcb8d 100644
@@ -33,7 +33,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/pflib.c renamed from pflib.c +2 -2
similarity index 99%
rename from pflib.c
rename to ui/pflib.c
index 987e110..6eefa58 100644
@@ -10,8 +10,8 @@
  * GNU GPL, version 2 or (at your option) any later version.
  */
 #include "qemu-common.h"
-#include "console.h"
-#include "pflib.h"
+#include "ui/console.h"
+#include "ui/pflib.h"
 
 typedef struct QemuPixel QemuPixel;
 
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 f6f711c..485cb08 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 5147365..27e9ba1 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 b61764f..1355cba 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 068c2fc..f86db6e 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 88880f6..ab21a93 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.7.1
#20 lore raw

PATCH 18/32 audio: move public header file to include/audio/

In reply to Paolo Bonzini
---
 audio/alsaaudio.c                |    2 +-
 audio/audio.c                    |    2 +-
 audio/audio_pt_int.c             |    2 +-
 audio/audio_win_int.c            |    3 +--
 audio/coreaudio.c                |    2 +-
 audio/dsoundaudio.c              |    2 +-
 audio/esdaudio.c                 |    2 +-
 audio/fmodaudio.c                |    2 +-
 audio/mixeng.c                   |    2 +-
 audio/noaudio.c                  |    2 +-
 audio/ossaudio.c                 |    2 +-
 audio/paaudio.c                  |    2 +-
 audio/sdlaudio.c                 |    2 +-
 audio/spiceaudio.c               |    2 +-
 audio/wavaudio.c                 |    2 +-
 audio/wavcapture.c               |    2 +-
 audio/winwaveaudio.c             |    2 +-
 {audio => include/audio}/audio.h |    0
 18 files changed, 17 insertions(+), 18 deletions(-)
 rename {audio => include/audio}/audio.h (100%)
audio/alsaaudio.c +1 -1
index cd553c2..2642d65 100644
@@ -24,7 +24,7 @@
 #include <alsa/asoundlib.h>
 #include "qemu-common.h"
 #include "main-loop.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #if QEMU_GNUC_PREREQ(4, 3)
 #pragma GCC diagnostic ignored "-Waddress"
audio/audio.c +1 -1
index 1c77389..f270ac0 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "hw/hw.h"
-#include "audio.h"
+#include "audio/audio.h"
 #include "monitor.h"
 #include "qemu-timer.h"
 #include "sysemu.h"
audio/audio_pt_int.c +1 -1
index 9a9c306..97e36ab 100644
@@ -1,5 +1,5 @@
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "audio-pt"
 
audio/audio_win_int.c +1 -2
index 5869052..071f52c 100644
@@ -1,13 +1,12 @@
 /* public domain */
 
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "win-int"
 #include <windows.h>
 #include <mmsystem.h>
 
-#include "audio.h"
 #include "audio_int.h"
 #include "audio_win_int.h"
 
audio/coreaudio.c +1 -1
index 5964c62..d0db2a2 100644
@@ -27,7 +27,7 @@
 #include <pthread.h>            /* pthread_X */
 
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "coreaudio"
 #include "audio_int.h"
audio/dsoundaudio.c +1 -1
index e2d89fd..b26705d 100644
@@ -27,7 +27,7 @@
  */
 
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "dsound"
 #include "audio_int.h"
audio/esdaudio.c +1 -1
index eea9cce..c1d974f 100644
@@ -23,7 +23,7 @@
  */
 #include <esd.h>
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "esd"
 #include "audio_int.h"
audio/fmodaudio.c +1 -1
index fabf84d..43d17d5 100644
@@ -24,7 +24,7 @@
 #include <fmod.h>
 #include <fmod_errors.h>
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "fmod"
 #include "audio_int.h"
audio/mixeng.c +1 -1
index 02a9d9f..47a4e51 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "mixeng"
 #include "audio_int.h"
audio/noaudio.c +1 -1
index 54958f8..fd40758 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 #include "qemu-timer.h"
 
 #define AUDIO_CAP "noaudio"
audio/ossaudio.c +1 -1
index 8249a00..2c4a0db 100644
@@ -33,7 +33,7 @@
 #include "qemu-common.h"
 #include "main-loop.h"
 #include "host-utils.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "oss"
 #include "audio_int.h"
audio/paaudio.c +1 -1
index 8b69778..050e076 100644
@@ -1,6 +1,6 @@
 /* public domain */
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #include <pulse/pulseaudio.h>
 
audio/sdlaudio.c +1 -1
index d24daa5..70fab41 100644
@@ -24,7 +24,7 @@
 #include <SDL.h>
 #include <SDL_thread.h>
 #include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #ifndef _WIN32
 #ifdef __sun__
audio/spiceaudio.c +1 -1
index 6f15591..4950e5b 100644
@@ -22,7 +22,7 @@
 #include "ui/qemu-spice.h"
 
 #define AUDIO_CAP "spice"
-#include "audio.h"
+#include "audio/audio.h"
 #include "audio_int.h"
 
 #define LINE_IN_SAMPLES 1024
audio/wavaudio.c +1 -1
index a449b51..96c0a83 100644
@@ -23,7 +23,7 @@
  */
 #include "hw/hw.h"
 #include "qemu-timer.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "wav"
 #include "audio_int.h"
audio/wavcapture.c +1 -1
index 4f785f5..b897e26 100644
@@ -1,6 +1,6 @@
 #include "hw/hw.h"
 #include "monitor.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 typedef struct {
     FILE *f;
audio/winwaveaudio.c +1 -1
index 72babbf..34bcd47 100644
@@ -2,7 +2,7 @@
 
 #include "qemu-common.h"
 #include "sysemu.h"
-#include "audio.h"
+#include "audio/audio.h"
 
 #define AUDIO_CAP "winwave"
 #include "audio_int.h"
include/audio/audio.h renamed from audio/audio.h +0 -0
similarity index 100%
rename from audio/audio.h
rename to include/audio/audio.h
Signature · 1 line
1.7.1
#21 lore raw

PATCH 19/32 slirp: move public header file to include/slirp/

In reply to Paolo Bonzini
---
 {slirp => include/slirp}/libslirp.h |    5 +++++
 main-loop.c                         |    2 +-
 slirp/misc.c                        |    1 -
 slirp/slirp.h                       |    7 +------
 4 files changed, 7 insertions(+), 8 deletions(-)
 rename {slirp => include/slirp}/libslirp.h (96%)
include/slirp/libslirp.h renamed from slirp/libslirp.h +5 -0
similarity index 96%
rename from slirp/libslirp.h
rename to include/slirp/libslirp.h
index 9b471b5..ee4ef7b 100644
@@ -3,6 +3,11 @@
 
 #include "qemu-common.h"
 
+#ifndef _WIN32
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#endif
+
 struct Slirp;
 typedef struct Slirp Slirp;
 
main-loop.c +1 -1
index eb3b6e6..154aa5e 100644
@@ -24,7 +24,7 @@
 
 #include "qemu-common.h"
 #include "qemu-timer.h"
-#include "slirp/slirp.h"
+#include "slirp/libslirp.h"
 #include "main-loop.h"
 
 #ifndef _WIN32
slirp/misc.c +0 -1
index 0bee864..bb1e998 100644
@@ -6,7 +6,6 @@
  */
 
 #include <slirp.h>
-#include <libslirp.h>
 
 #include "monitor.h"
 
slirp/slirp.h +1 -6
index f2c5eca..acd0276 100644
@@ -66,11 +66,6 @@ typedef char *caddr_t;
 #include <sys/uio.h>
 #endif
 
-#ifndef _WIN32
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#endif
-
 /* Systems lacking strdup() definition in <string.h>. */
 #if defined(ultrix)
 char *strdup(const char *);
@@ -136,7 +131,7 @@ void free(void *ptr);
 #include "qemu-queue.h"
 #include "qemu_socket.h"
 
-#include "libslirp.h"
+#include "slirp/libslirp.h"
 #include "ip.h"
 #include "tcp.h"
 #include "tcp_timer.h"
Signature · 1 line
1.7.1
#22 lore raw

PATCH 20/32 qapi: move include files to include/qapi/

In reply to Paolo Bonzini
---
 blockdev.h                                         |    2 +-
 dump.c                                             |    2 +-
 error.c                                            |    2 +-
 hw/pci-hotplug.c                                   |    2 +-
 hw/qdev.c                                          |    2 +-
 hw/qdev.h                                          |    4 ++--
 hw/vga_int.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-core.h                  |    2 +-
 {qapi => include/qapi}/qmp-input-visitor.h         |    2 +-
 {qapi => include/qapi}/qmp-output-visitor.h        |    2 +-
 {qapi => include/qapi}/string-input-visitor.h      |    2 +-
 {qapi => include/qapi}/string-output-visitor.h     |    2 +-
 .../qapi-types-core.h => include/qapi/types-core.h |    2 +-
 .../qapi-visit-core.h => include/qapi/visit-core.h |    2 +-
 .../qapi-visit-impl.h => include/qapi/visit-impl.h |    4 ++--
 include/ui/console.h                               |    2 +-
 json-parser.h                                      |    2 +-
 migration.h                                        |    2 +-
 net/net.c                                          |    2 +-
 qapi/opts-visitor.c                                |    4 ++--
 qapi/qapi-dealloc-visitor.c                        |    2 +-
 qapi/qapi-visit-core.c                             |    4 ++--
 qapi/qmp-dispatch.c                                |    2 +-
 qapi/qmp-input-visitor.c                           |    4 ++--
 qapi/qmp-output-visitor.c                          |    4 ++--
 qapi/string-input-visitor.c                        |    4 ++--
 qapi/string-output-visitor.c                       |    4 ++--
 qemu-config.c                                      |    2 +-
 qemu-config.h                                      |    2 +-
 qemu-option.c                                      |    2 +-
 qemu-option.h                                      |    2 +-
 qemu_socket.h                                      |    2 +-
 qerror.h                                           |    2 +-
 qom/object.c                                       |    2 +-
 qom/qom-qobject.c                                  |    2 +-
 scripts/qapi-commands.py                           |    6 +++---
 scripts/qapi-types.py                              |    2 +-
 scripts/qapi-visit.py                              |    2 +-
 target-i386/cpu-qom.h                              |    2 +-
 target-i386/cpu.c                                  |    2 +-
 target-openrisc/cpu.h                              |    2 +-
 ui/input.c                                         |    2 +-
 45 files changed, 54 insertions(+), 54 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-core.h (98%)
 rename {qapi => include/qapi}/qmp-input-visitor.h (95%)
 rename {qapi => include/qapi}/qmp-output-visitor.h (95%)
 rename {qapi => include/qapi}/string-input-visitor.h (95%)
 rename {qapi => include/qapi}/string-output-visitor.h (95%)
 rename qapi/qapi-types-core.h => include/qapi/types-core.h (94%)
 rename qapi/qapi-visit-core.h => include/qapi/visit-core.h (99%)
 rename qapi/qapi-visit-impl.h => include/qapi/visit-impl.h (90%)
blockdev.h +1 -1
index 5f27b64..4be871e 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);
dump.c +1 -1
index 6b7c127..8826e8e 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 +1 -1
index 128d88c..cd600af 100644
@@ -11,7 +11,7 @@
  */
 
 #include "qemu-common.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qjson.h"
 #include "qdict.h"
 #include "qapi-types.h"
hw/pci-hotplug.c +1 -1
index 1be8263..62c7f9d 100644
@@ -32,7 +32,7 @@
 #include "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/qdev.c +1 -1
index bc20417..4498de0 100644
@@ -28,7 +28,7 @@
 #include "net/net.h"
 #include "qdev.h"
 #include "sysemu.h"
-#include "error.h"
+#include "qapi/error.h"
 
 int qdev_hotplug = 0;
 static bool qdev_hot_added = false;
hw/qdev.h +2 -2
index 8ba1613..855e47b 100644
@@ -4,9 +4,9 @@
 #include "hw.h"
 #include "qemu-queue.h"
 #include "qemu-option.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visit-core.h"
 #include "qemu/object.h"
-#include "error.h"
+#include "qapi/error.h"
 
 typedef struct Property Property;
 
hw/vga_int.h +1 -1
index 144e7d3..6093867 100644
@@ -23,7 +23,7 @@
  */
 
 #include <hw/hw.h>
-#include "error.h"
+#include "qapi/error.h"
 #include "memory.h"
 
 #define ST01_V_RETRACE      0x08
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..a8d3fcb 100644
@@ -14,7 +14,7 @@
 #ifndef QAPI_DEALLOC_VISITOR_H
 #define QAPI_DEALLOC_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visit-core.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..5408e53 100644
@@ -13,7 +13,7 @@
 #ifndef OPTS_VISITOR_H
 #define OPTS_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visit-core.h"
 #include "qemu-option.h"
 
 typedef struct OptsVisitor OptsVisitor;
include/qapi/qmp-core.h renamed from qapi/qmp-core.h +1 -1
similarity index 98%
rename from qapi/qmp-core.h
rename to include/qapi/qmp-core.h
index 00446cf..2a57a0c 100644
@@ -16,7 +16,7 @@
 
 #include "qobject.h"
 #include "qdict.h"
-#include "error.h"
+#include "qapi/error.h"
 
 typedef void (QmpCommandFunc)(QDict *, QObject **, Error **);
 
include/qapi/qmp-input-visitor.h renamed from qapi/qmp-input-visitor.h +1 -1
similarity index 95%
rename from qapi/qmp-input-visitor.h
rename to include/qapi/qmp-input-visitor.h
index e0a48a5..9071f9c 100644
@@ -14,7 +14,7 @@
 #ifndef QMP_INPUT_VISITOR_H
 #define QMP_INPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visit-core.h"
 #include "qobject.h"
 
 typedef struct QmpInputVisitor QmpInputVisitor;
include/qapi/qmp-output-visitor.h renamed from qapi/qmp-output-visitor.h +1 -1
similarity index 95%
rename from qapi/qmp-output-visitor.h
rename to include/qapi/qmp-output-visitor.h
index 4a649c2..39cb575 100644
@@ -14,7 +14,7 @@
 #ifndef QMP_OUTPUT_VISITOR_H
 #define QMP_OUTPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visit-core.h"
 #include "qobject.h"
 
 typedef struct QmpOutputVisitor QmpOutputVisitor;
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..15c9cd5 100644
@@ -13,7 +13,7 @@
 #ifndef STRING_INPUT_VISITOR_H
 #define STRING_INPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visit-core.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..daa8c9d 100644
@@ -13,7 +13,7 @@
 #ifndef STRING_OUTPUT_VISITOR_H
 #define STRING_OUTPUT_VISITOR_H
 
-#include "qapi-visit-core.h"
+#include "qapi/visit-core.h"
 
 typedef struct StringOutputVisitor StringOutputVisitor;
 
include/qapi/types-core.h renamed from qapi/qapi-types-core.h +1 -1
similarity index 94%
rename from qapi/qapi-types-core.h
rename to include/qapi/types-core.h
index f781fc3..0080206 100644
@@ -15,7 +15,7 @@
 #define QAPI_TYPES_CORE_H
 
 #include "qemu-common.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qerror.h"
 
 #endif
include/qapi/visit-core.h renamed from qapi/qapi-visit-core.h +1 -1
similarity index 99%
rename from qapi/qapi-visit-core.h
rename to include/qapi/visit-core.h
index 60aceda..ba666b9 100644
@@ -13,7 +13,7 @@
 #ifndef QAPI_VISITOR_CORE_H
 #define QAPI_VISITOR_CORE_H
 
-#include "qapi/qapi-types-core.h"
+#include "qapi/types-core.h"
 #include <stdlib.h>
 
 typedef struct GenericList
include/qapi/visit-impl.h renamed from qapi/qapi-visit-impl.h +2 -2
similarity index 90%
rename from qapi/qapi-visit-impl.h
rename to include/qapi/visit-impl.h
index 0f3a189..7910898 100644
@@ -12,8 +12,8 @@
 #ifndef QAPI_VISITOR_IMPL_H
 #define QAPI_VISITOR_IMPL_H
 
-#include "qapi/qapi-types-core.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/types-core.h"
+#include "qapi/visit-core.h"
 
 void input_type_enum(Visitor *v, int *obj, const char *strings[],
                      const char *kind, const char *name, Error **errp);
include/ui/console.h +1 -1
index a9f8952..b9a8a65 100644
@@ -6,7 +6,7 @@
 #include "monitor.h"
 #include "trace.h"
 #include "qapi-types.h"
-#include "error.h"
+#include "qapi/error.h"
 
 /* keyboard/mouse support */
 
json-parser.h +1 -1
index 8f2b5ec..4e346ac 100644
@@ -16,7 +16,7 @@
 
 #include "qemu-common.h"
 #include "qlist.h"
-#include "error.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);
migration.h +1 -1
index c3a23cc..86e4118 100644
@@ -17,7 +17,7 @@
 #include "qdict.h"
 #include "qemu-common.h"
 #include "notify.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "vmstate.h"
 #include "qapi-types.h"
 
net/net.c +1 -1
index 8b8ba12..680113f 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)
qapi/opts-visitor.c +2 -2
index e048b6c..4af2468 100644
@@ -10,10 +10,10 @@
  *
  */
 
-#include "opts-visitor.h"
+#include "qapi/opts-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-option-internal.h"
-#include "qapi-visit-impl.h"
+#include "qapi/visit-impl.h"
 
 
 struct OptsVisitor
qapi/qapi-dealloc-visitor.c +1 -1
index a154523..d6ae4a8 100644
@@ -11,7 +11,7 @@
  *
  */
 
-#include "qapi-dealloc-visitor.h"
+#include "qapi/dealloc-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-objects.h"
qapi/qapi-visit-core.c +2 -2
index 7a82b63..bce7868 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "qapi/qapi-visit-core.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/visit-core.h"
+#include "qapi/visit-impl.h"
 
 void visit_start_handle(Visitor *v, void **obj, const char *kind,
                         const char *name, Error **errp)
qapi/qmp-dispatch.c +1 -1
index 4085994..6b29e64 100644
@@ -15,7 +15,7 @@
 #include "qapi/qmp-core.h"
 #include "json-parser.h"
 #include "qapi-types.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qerror.h"
 
 static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)
qapi/qmp-input-visitor.c +2 -2
index 107d8d3..9878ef6 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "qmp-input-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp-input-visitor.h"
+#include "qapi/visit-impl.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-objects.h"
qapi/qmp-output-visitor.c +2 -2
index 2bce9d5..3a056ef 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "qmp-output-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/qmp-output-visitor.h"
+#include "qapi/visit-impl.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-objects.h"
qapi/string-input-visitor.c +2 -2
index 497eb9a..eaf6b11 100644
@@ -11,8 +11,8 @@
  */
 
 #include "qemu-common.h"
-#include "string-input-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/string-input-visitor.h"
+#include "qapi/visit-impl.h"
 #include "qerror.h"
 
 struct StringInputVisitor
qapi/string-output-visitor.c +2 -2
index 34e525e..507ebf7 100644
@@ -11,8 +11,8 @@
  */
 
 #include "qemu-common.h"
-#include "string-output-visitor.h"
-#include "qapi/qapi-visit-impl.h"
+#include "qapi/string-output-visitor.h"
+#include "qapi/visit-impl.h"
 #include "qerror.h"
 
 struct StringOutputVisitor
qemu-config.c +1 -1
index cd1ec21..e53c444 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 daf1539..f3c6276 100644
@@ -1,7 +1,7 @@
 #ifndef QEMU_CONFIG_H
 #define QEMU_CONFIG_H
 
-#include "error.h"
+#include "qapi/error.h"
 #include "qemu-option.h"
 
 extern QemuOptsList qemu_fsdev_opts;
qemu-option.c +1 -1
index 27891e7..734b13c 100644
@@ -29,7 +29,7 @@
 #include "qemu-common.h"
 #include "qemu-error.h"
 #include "qemu-objects.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qerror.h"
 #include "qemu-option-internal.h"
 
qemu-option.h +1 -1
index ca72986..53eca74 100644
@@ -28,7 +28,7 @@
 
 #include <stdint.h>
 #include "qemu-queue.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qdict.h"
 
 enum QEMUOptionParType {
qemu_socket.h +1 -1
index 02490ad..c10d732 100644
@@ -27,7 +27,7 @@ int inet_aton(const char *cp, struct in_addr *ia);
 #endif /* !_WIN32 */
 
 #include "qemu-option.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qerror.h"
 
 /* misc helpers */
qerror.h +1 -1
index f23b978..cfdabba 100644
@@ -15,7 +15,7 @@
 #include "qdict.h"
 #include "qstring.h"
 #include "qemu-error.h"
-#include "error.h"
+#include "qapi/error.h"
 #include "qapi-types.h"
 #include <stdarg.h>
 
qom/object.c +1 -1
index e3e9242..d195890 100644
@@ -12,7 +12,7 @@
 
 #include "qemu/object.h"
 #include "qemu-common.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visit-core.h"
 #include "qapi/string-input-visitor.h"
 #include "qapi/string-output-visitor.h"
 
qom/qom-qobject.c +1 -1
index 0689914..ee41346 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/visit-core.h"
 #include "qapi/qmp-input-visitor.h"
 #include "qapi/qmp-output-visitor.h"
 
scripts/qapi-commands.py +3 -3
index 3c4678d..4d0847a 100644
@@ -343,7 +343,7 @@ def gen_command_decl_prologue(header, guard, prefix=""):
 
 #include "%(prefix)sqapi-types.h"
 #include "qdict.h"
-#include "error.h"
+#include "qapi/error.h"
 
 ''',
                  header=basename(header), guard=guardname(header), prefix=prefix)
@@ -368,10 +368,10 @@ def gen_command_def_prologue(prefix="", proxy=False):
 
 #include "qemu-objects.h"
 #include "qapi/qmp-core.h"
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visit-core.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 1b84834..69e3dd7 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 a360de7..d292528 100644
@@ -321,7 +321,7 @@ fdecl.write(mcgen('''
 #ifndef %(guard)s
 #define %(guard)s
 
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visit-core.h"
 #include "%(prefix)sqapi-types.h"
 ''',
                   prefix=prefix, guard=guardname(h_file)))
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 +1 -1
index f3708e6..e847a22 100644
@@ -27,7 +27,7 @@
 #include "qemu-option.h"
 #include "qemu-config.h"
 
-#include "qapi/qapi-visit-core.h"
+#include "qapi/visit-core.h"
 #include "arch_init.h"
 
 #include "hyperv.h"
target-openrisc/cpu.h +1 -1
index de21a87..f118718 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"
 
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"
 
Signature · 1 line
1.7.1
#23 lore raw

PATCH 21/32 qapi: create qobject/ and include/qobject/

In reply to Paolo Bonzini
---
 Makefile.objs                                      |    5 ++---
 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 ++--
 blockjob.c                                         |    2 +-
 dump-stub.c                                        |    2 +-
 error.c                                            |    6 +++---
 hmp.h                                              |    2 +-
 hw/ivshmem.c                                       |    2 +-
 hw/pcie_aer.c                                      |    2 +-
 hw/qdev-properties.c                               |    2 +-
 hw/watchdog.c                                      |    2 +-
 include/net/net.h                                  |    2 +-
 include/net/slirp.h                                |    2 +-
 include/qapi/qmp-core.h                            |    4 ++--
 include/qapi/qmp-input-visitor.h                   |    2 +-
 include/qapi/qmp-output-visitor.h                  |    2 +-
 qemu-objects.h => include/qapi/qmp-types.h         |   16 ++++++++--------
 include/qapi/types-core.h                          |    2 +-
 json-lexer.h => include/qobject/json-lexer.h       |    4 ++--
 json-parser.h => include/qobject/json-parser.h     |    2 +-
 json-streamer.h => include/qobject/json-streamer.h |    4 ++--
 qbool.h => include/qobject/qbool.h                 |    2 +-
 qdict.h => include/qobject/qdict.h                 |    4 ++--
 qerror.h => include/qobject/qerror.h               |    4 ++--
 qfloat.h => include/qobject/qfloat.h               |    2 +-
 qint.h => include/qobject/qint.h                   |    2 +-
 qjson.h => include/qobject/qjson.h                 |    4 ++--
 qlist.h => include/qobject/qlist.h                 |    2 +-
 qobject.h => include/qobject/qobject.h             |    0
 qstring.h => include/qobject/qstring.h             |    2 +-
 include/ui/console.h                               |    2 +-
 migration.h                                        |    2 +-
 monitor.c                                          |   16 ++++++++--------
 monitor.h                                          |    4 ++--
 qapi/qapi-dealloc-visitor.c                        |    2 +-
 qapi/qmp-dispatch.c                                |    6 +++---
 qapi/qmp-input-visitor.c                           |    4 ++--
 qapi/qmp-output-visitor.c                          |    4 ++--
 qapi/string-input-visitor.c                        |    2 +-
 qapi/string-output-visitor.c                       |    2 +-
 qemu-char.h                                        |    4 ++--
 qemu-img.c                                         |    2 +-
 qemu-option.c                                      |    4 ++--
 qemu-option.h                                      |    2 +-
 qemu_socket.h                                      |    2 +-
 qga/commands-posix.c                               |    2 +-
 qga/commands-win32.c                               |    2 +-
 qga/commands.c                                     |    2 +-
 qga/main.c                                         |   10 +++++-----
 qobject/Makefile.objs                              |    4 ++++
 json-lexer.c => qobject/json-lexer.c               |   10 +++++-----
 json-parser.c => qobject/json-parser.c             |   18 +++++++++---------
 json-streamer.c => qobject/json-streamer.c         |   10 +++++-----
 qbool.c => qobject/qbool.c                         |    4 ++--
 qdict.c => qobject/qdict.c                         |   12 ++++++------
 qerror.c => qobject/qerror.c                       |    4 ++--
 qfloat.c => qobject/qfloat.c                       |    4 ++--
 qint.c => qobject/qint.c                           |    4 ++--
 qjson.c => qobject/qjson.c                         |   18 +++++++++---------
 qlist.c => qobject/qlist.c                         |    4 ++--
 qstring.c => qobject/qstring.c                     |    4 ++--
 qom/object.c                                       |    8 ++++----
 scripts/qapi-commands.py                           |    4 ++--
 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                          |    2 +-
 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/spice-core.c                                    |    8 ++++----
 ui/vnc-enc-tight.c                                 |    2 +-
 ui/vnc-palette.h                                   |    2 +-
 ui/vnc.c                                           |    2 +-
 vl.c                                               |    2 +-
 87 files changed, 175 insertions(+), 172 deletions(-)
 rename qemu-objects.h => include/qapi/qmp-types.h (61%)
 rename json-lexer.h => include/qobject/json-lexer.h (94%)
 rename json-parser.h => include/qobject/json-parser.h (94%)
 rename json-streamer.h => include/qobject/json-streamer.h (94%)
 rename qbool.h => include/qobject/qbool.h (94%)
 rename qdict.h => include/qobject/qdict.h (97%)
 rename qerror.h => include/qobject/qerror.h (99%)
 rename qfloat.h => include/qobject/qfloat.h (94%)
 rename qint.h => include/qobject/qint.h (94%)
 rename qjson.h => include/qobject/qjson.h (92%)
 rename qlist.h => include/qobject/qlist.h (98%)
 rename qobject.h => include/qobject/qobject.h (100%)
 rename qstring.h => include/qobject/qstring.h (96%)
 create mode 100644 qobject/Makefile.objs
 rename json-lexer.c => qobject/json-lexer.c (98%)
 rename json-parser.c => qobject/json-parser.c (98%)
 rename json-streamer.c => qobject/json-streamer.c (95%)
 rename qbool.c => qobject/qbool.c (95%)
 rename qdict.c => qobject/qdict.c (98%)
 rename qerror.c => qobject/qerror.c (98%)
 rename qfloat.c => qobject/qfloat.c (95%)
 rename qint.c => qobject/qint.c (95%)
 rename qjson.c => qobject/qjson.c (96%)
 rename qlist.c => qobject/qlist.c (98%)
 rename qstring.c => qobject/qstring.c (98%)
Makefile.objs +2 -3
index bd9534d..0c20ade 100644
@@ -5,9 +5,7 @@ universal-obj-y += qemu-log.o
 
 #######################################################################
 # QObject
-qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
-qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
-qobject-obj-y += qerror.o error.o qemu-error.o
+qobject-obj-y = qobject/ error.o qemu-error.o
 
 universal-obj-y += $(qobject-obj-y)
 
@@ -224,6 +222,7 @@ vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
 QEMU_CFLAGS+=$(GLIB_CFLAGS)
 
 nested-vars += \
+	qobject-obj-y \
 	qga-obj-y \
 	qom-obj-y \
 	qapi-obj-y \
balloon.c +1 -1
index e02ab1c..211b93d 100644
@@ -30,7 +30,7 @@
 #include "balloon.h"
 #include "trace.h"
 #include "qmp-commands.h"
-#include "qjson.h"
+#include "qobject/qjson.h"
 
 static QEMUBalloonEvent *balloon_event_fn;
 static QEMUBalloonStatus *balloon_stat_fn;
block.c +1 -1
index 56426a9..7a67859 100644
@@ -28,7 +28,7 @@
 #include "block_int.h"
 #include "blockjob.h"
 #include "module.h"
-#include "qjson.h"
+#include "qobject/qjson.h"
 #include "sysemu.h"
 #include "notify.h"
 #include "qemu-coroutine.h"
block.h +1 -1
index aa608a8..c41554b 100644
@@ -5,7 +5,7 @@
 #include "qemu-common.h"
 #include "qemu-option.h"
 #include "qemu-coroutine.h"
-#include "qobject.h"
+#include "qobject/qobject.h"
 #include "qapi-types.h"
 
 /* block.c */
block/qcow2.c +1 -1
index c1ff31f..6e069c9 100644
@@ -28,7 +28,7 @@
 #include "aes.h"
 #include "block/qcow2.h"
 #include "qemu-error.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "trace.h"
 
 /*
block/qed.c +1 -1
index 6c182ca..9f7a3f2 100644
@@ -15,7 +15,7 @@
 #include "qemu-timer.h"
 #include "trace.h"
 #include "qed.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "migration.h"
 
 static void qed_aio_cancel(BlockDriverAIOCB *blockacb)
block_int.h +1 -1
index cedabbd..cdf5ff1 100644
@@ -30,7 +30,7 @@
 #include "qemu-coroutine.h"
 #include "qemu-timer.h"
 #include "qapi-types.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "monitor.h"
 
 #define BLOCK_FLAG_ENCRYPT          1
blockdev-nbd.c +1 -1
index 8031813..35cd485 100644
@@ -12,7 +12,7 @@
 #include "blockdev.h"
 #include "hw/block-common.h"
 #include "monitor.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "sysemu.h"
 #include "qmp-commands.h"
 #include "trace.h"
blockdev.c +2 -2
index 99828ad..9d8d892 100644
@@ -11,10 +11,10 @@
 #include "hw/block-common.h"
 #include "blockjob.h"
 #include "monitor.h"
-#include "qerror.h"
+#include "qobject/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"
blockjob.c +1 -1
index f55f55a..1d9e91f 100644
@@ -30,7 +30,7 @@
 #include "block.h"
 #include "blockjob.h"
 #include "block_int.h"
-#include "qjson.h"
+#include "qobject/qjson.h"
 #include "qemu-coroutine.h"
 #include "qmp-commands.h"
 #include "qemu-timer.h"
dump-stub.c +1 -1
index 56d4564..aa2e8da 100644
@@ -13,7 +13,7 @@
 
 #include "qemu-common.h"
 #include "dump.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "qmp-commands.h"
 
 /* we need this function in hmp.c */
error.c +3 -3
index cd600af..160fef1 100644
@@ -12,10 +12,10 @@
 
 #include "qemu-common.h"
 #include "qapi/error.h"
-#include "qjson.h"
-#include "qdict.h"
+#include "qobject/qjson.h"
+#include "qobject/qdict.h"
 #include "qapi-types.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 
 struct Error
 {
hmp.h +1 -1
index 71ea384..8ab5bdc 100644
@@ -16,7 +16,7 @@
 
 #include "qemu-common.h"
 #include "qapi-types.h"
-#include "qdict.h"
+#include "qobject/qdict.h"
 
 void hmp_info_name(Monitor *mon);
 void hmp_info_version(Monitor *mon);
hw/ivshmem.c +1 -1
index 0c62d43..b4fdf49 100644
@@ -22,7 +22,7 @@
 #include "msix.h"
 #include "kvm.h"
 #include "migration.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "event_notifier.h"
 #include "qemu-char.h"
 
hw/pcie_aer.c +1 -1
index b04c164..c516cdc 100644
@@ -19,7 +19,7 @@
  */
 
 #include "sysemu.h"
-#include "qemu-objects.h"
+#include "qapi/qmp-types.h"
 #include "monitor.h"
 #include "pci_bridge.h"
 #include "pcie.h"
hw/qdev-properties.c +1 -1
index 877ee09..583d603 100644
@@ -1,6 +1,6 @@
 #include "net/net.h"
 #include "qdev.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "blockdev.h"
 #include "hw/block-common.h"
 #include "qemu-char.h"
hw/watchdog.c +1 -1
index b52aced..ddd6a9a 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..1a0e952 100644
@@ -3,7 +3,7 @@
 
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qdict.h"
+#include "qobject/qdict.h"
 #include "qemu-option.h"
 #include "net/queue.h"
 #include "vmstate.h"
include/net/slirp.h +1 -1
index 2ca09b6..b6ab8ba 100644
@@ -25,7 +25,7 @@
 #define QEMU_NET_SLIRP_H
 
 #include "qemu-common.h"
-#include "qdict.h"
+#include "qobject/qdict.h"
 #include "qemu-option.h"
 #include "qapi-types.h"
 
include/qapi/qmp-core.h +2 -2
index 2a57a0c..91c524e 100644
@@ -14,8 +14,8 @@
 #ifndef QMP_CORE_H
 #define QMP_CORE_H
 
-#include "qobject.h"
-#include "qdict.h"
+#include "qobject/qobject.h"
+#include "qobject/qdict.h"
 #include "qapi/error.h"
 
 typedef void (QmpCommandFunc)(QDict *, QObject **, Error **);
include/qapi/qmp-input-visitor.h +1 -1
index 9071f9c..8376a3a 100644
@@ -15,7 +15,7 @@
 #define QMP_INPUT_VISITOR_H
 
 #include "qapi/visit-core.h"
-#include "qobject.h"
+#include "qobject/qobject.h"
 
 typedef struct QmpInputVisitor QmpInputVisitor;
 
include/qapi/qmp-output-visitor.h +1 -1
index 39cb575..72361d6 100644
@@ -15,7 +15,7 @@
 #define QMP_OUTPUT_VISITOR_H
 
 #include "qapi/visit-core.h"
-#include "qobject.h"
+#include "qobject/qobject.h"
 
 typedef struct QmpOutputVisitor QmpOutputVisitor;
 
include/qapi/qmp-types.h renamed from qemu-objects.h +8 -8
similarity index 61%
rename from qemu-objects.h
rename to include/qapi/qmp-types.h
index c53fbaa..ab4555d 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 "qobject/qobject.h"
+#include "qobject/qint.h"
+#include "qobject/qfloat.h"
+#include "qobject/qbool.h"
+#include "qobject/qstring.h"
+#include "qobject/qdict.h"
+#include "qobject/qlist.h"
+#include "qobject/qjson.h"
 
 #endif /* QEMU_OBJECTS_H */
include/qapi/types-core.h +1 -1
index 0080206..d49f455 100644
@@ -16,6 +16,6 @@
 
 #include "qemu-common.h"
 #include "qapi/error.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 
 #endif
include/qobject/json-lexer.h renamed from json-lexer.h +2 -2
similarity index 94%
rename from json-lexer.h
rename to include/qobject/json-lexer.h
index 10bc0a7..e7cbdce 100644
@@ -14,8 +14,8 @@
 #ifndef QEMU_JSON_LEXER_H
 #define QEMU_JSON_LEXER_H
 
-#include "qstring.h"
-#include "qlist.h"
+#include "qobject/qstring.h"
+#include "qobject/qlist.h"
 
 typedef enum json_token_type {
     JSON_OPERATOR = 100,
include/qobject/json-parser.h renamed from json-parser.h +1 -1
similarity index 94%
rename from json-parser.h
rename to include/qobject/json-parser.h
index 4e346ac..0ee7372 100644
@@ -15,7 +15,7 @@
 #define QEMU_JSON_PARSER_H
 
 #include "qemu-common.h"
-#include "qlist.h"
+#include "qobject/qlist.h"
 #include "qapi/error.h"
 
 QObject *json_parser_parse(QList *tokens, va_list *ap);
include/qobject/json-streamer.h renamed from json-streamer.h +2 -2
similarity index 94%
rename from json-streamer.h
rename to include/qobject/json-streamer.h
index f09bc4d..dd2bfe5 100644
@@ -14,8 +14,8 @@
 #ifndef QEMU_JSON_STREAMER_H
 #define QEMU_JSON_STREAMER_H
 
-#include "qlist.h"
-#include "json-lexer.h"
+#include "qobject/qlist.h"
+#include "qobject/json-lexer.h"
 
 typedef struct JSONMessageParser
 {
include/qobject/qbool.h renamed from qbool.h +1 -1
similarity index 94%
rename from qbool.h
rename to include/qobject/qbool.h
index fe66fcd..689e4b3 100644
@@ -15,7 +15,7 @@
 #define QBOOL_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qobject/qobject.h"
 
 typedef struct QBool {
     QObject_HEAD;
include/qobject/qdict.h renamed from qdict.h +2 -2
similarity index 97%
rename from qdict.h
rename to include/qobject/qdict.h
index 929d8d2..c3dc2db 100644
@@ -13,8 +13,8 @@
 #ifndef QDICT_H
 #define QDICT_H
 
-#include "qobject.h"
-#include "qlist.h"
+#include "qobject/qobject.h"
+#include "qobject/qlist.h"
 #include "qemu-queue.h"
 #include <stdint.h>
 
include/qobject/qerror.h renamed from qerror.h +2 -2
similarity index 99%
rename from qerror.h
rename to include/qobject/qerror.h
index cfdabba..26c5fca 100644
@@ -12,8 +12,8 @@
 #ifndef QERROR_H
 #define QERROR_H
 
-#include "qdict.h"
-#include "qstring.h"
+#include "qobject/qdict.h"
+#include "qobject/qstring.h"
 #include "qemu-error.h"
 #include "qapi/error.h"
 #include "qapi-types.h"
include/qobject/qfloat.h renamed from qfloat.h +1 -1
similarity index 94%
rename from qfloat.h
rename to include/qobject/qfloat.h
index 9d67876..72d4d15 100644
@@ -15,7 +15,7 @@
 #define QFLOAT_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qobject/qobject.h"
 
 typedef struct QFloat {
     QObject_HEAD;
include/qobject/qint.h renamed from qint.h +1 -1
similarity index 94%
rename from qint.h
rename to include/qobject/qint.h
index 6b1a15c..b348928 100644
@@ -14,7 +14,7 @@
 #define QINT_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qobject/qobject.h"
 
 typedef struct QInt {
     QObject_HEAD;
include/qobject/qjson.h renamed from qjson.h +2 -2
similarity index 92%
rename from qjson.h
rename to include/qobject/qjson.h
index 1190d8a..03faf50 100644
@@ -16,8 +16,8 @@
 
 #include <stdarg.h>
 #include "compiler.h"
-#include "qobject.h"
-#include "qstring.h"
+#include "qobject/qobject.h"
+#include "qobject/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/qobject/qlist.h renamed from qlist.h +1 -1
similarity index 98%
rename from qlist.h
rename to include/qobject/qlist.h
index ae776f9..3f94780 100644
@@ -13,7 +13,7 @@
 #ifndef QLIST_H
 #define QLIST_H
 
-#include "qobject.h"
+#include "qobject/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 #include "qemu-queue.h"
include/qobject/qobject.h renamed from qobject.h +0 -0
similarity index 100%
rename from qobject.h
rename to include/qobject/qobject.h
include/qobject/qstring.h renamed from qstring.h +1 -1
similarity index 96%
rename from qstring.h
rename to include/qobject/qstring.h
index 84ccd96..6c3f7b3 100644
@@ -14,7 +14,7 @@
 #define QSTRING_H
 
 #include <stdint.h>
-#include "qobject.h"
+#include "qobject/qobject.h"
 
 typedef struct QString {
     QObject_HEAD;
include/ui/console.h +1 -1
index b9a8a65..7b5aacd 100644
@@ -1,7 +1,7 @@
 #ifndef CONSOLE_H
 #define CONSOLE_H
 
-#include "qdict.h"
+#include "qobject/qdict.h"
 #include "notify.h"
 #include "monitor.h"
 #include "trace.h"
migration.h +1 -1
index 86e4118..1d18c21 100644
@@ -14,7 +14,7 @@
 #ifndef QEMU_MIGRATION_H
 #define QEMU_MIGRATION_H
 
-#include "qdict.h"
+#include "qobject/qdict.h"
 #include "qemu-common.h"
 #include "notify.h"
 #include "qapi/error.h"
monitor.c +8 -8
index 874c3ee..9a29d10 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 "qobject/qint.h"
+#include "qobject/qfloat.h"
+#include "qobject/qlist.h"
+#include "qobject/qbool.h"
+#include "qobject/qstring.h"
+#include "qobject/qjson.h"
+#include "qobject/json-streamer.h"
+#include "qobject/json-parser.h"
 #include "osdep.h"
 #include "cpu.h"
 #include "trace.h"
monitor.h +2 -2
index 76c59f7..4823837 100644
@@ -2,8 +2,8 @@
 #define MONITOR_H
 
 #include "qemu-common.h"
-#include "qerror.h"
-#include "qdict.h"
+#include "qobject/qerror.h"
+#include "qobject/qdict.h"
 #include "block.h"
 #include "readline.h"
 
qapi/qapi-dealloc-visitor.c +1 -1
index d6ae4a8..1674783 100644
@@ -14,7 +14,7 @@
 #include "qapi/dealloc-visitor.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
+#include "qapi/qmp-types.h"
 
 typedef struct StackEntry
 {
qapi/qmp-dispatch.c +3 -3
index 6b29e64..bb50c39 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qemu-objects.h"
+#include "qapi/qmp-types.h"
 #include "qapi/qmp-core.h"
-#include "json-parser.h"
+#include "qobject/json-parser.h"
 #include "qapi-types.h"
 #include "qapi/error.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 
 static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)
 {
qapi/qmp-input-visitor.c +2 -2
index 9878ef6..a4d92a6 100644
@@ -15,8 +15,8 @@
 #include "qapi/visit-impl.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qerror.h"
+#include "qapi/qmp-types.h"
+#include "qobject/qerror.h"
 
 #define QIV_STACK_SIZE 1024
 
qapi/qmp-output-visitor.c +2 -2
index 3a056ef..21192b5 100644
@@ -15,8 +15,8 @@
 #include "qapi/visit-impl.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
-#include "qemu-objects.h"
-#include "qerror.h"
+#include "qapi/qmp-types.h"
+#include "qobject/qerror.h"
 
 typedef struct QStackEntry
 {
qapi/string-input-visitor.c +1 -1
index eaf6b11..f1e71de 100644
@@ -13,7 +13,7 @@
 #include "qemu-common.h"
 #include "qapi/string-input-visitor.h"
 #include "qapi/visit-impl.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 
 struct StringInputVisitor
 {
qapi/string-output-visitor.c +1 -1
index 507ebf7..9930153 100644
@@ -13,7 +13,7 @@
 #include "qemu-common.h"
 #include "qapi/string-output-visitor.h"
 #include "qapi/visit-impl.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 
 struct StringOutputVisitor
 {
qemu-char.h +2 -2
index 486644b..5d3f36c 100644
@@ -5,8 +5,8 @@
 #include "qemu-queue.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
-#include "qobject.h"
-#include "qstring.h"
+#include "qobject/qobject.h"
+#include "qobject/qstring.h"
 #include "main-loop.h"
 
 /* character device */
qemu-img.c +1 -1
index f17f187..1449708 100644
@@ -23,7 +23,7 @@
  */
 #include "qapi-visit.h"
 #include "qapi/qmp-output-visitor.h"
-#include "qjson.h"
+#include "qobject/qjson.h"
 #include "qemu-common.h"
 #include "qemu-option.h"
 #include "qemu-error.h"
qemu-option.c +2 -2
index 734b13c..235c734 100644
@@ -28,9 +28,9 @@
 
 #include "qemu-common.h"
 #include "qemu-error.h"
-#include "qemu-objects.h"
+#include "qapi/qmp-types.h"
 #include "qapi/error.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "qemu-option-internal.h"
 
 /*
qemu-option.h +1 -1
index 53eca74..a068cfb 100644
@@ -29,7 +29,7 @@
 #include <stdint.h>
 #include "qemu-queue.h"
 #include "qapi/error.h"
-#include "qdict.h"
+#include "qobject/qdict.h"
 
 enum QEMUOptionParType {
     OPT_FLAG,
qemu_socket.h +1 -1
index c10d732..1f7eea1 100644
@@ -28,7 +28,7 @@ int inet_aton(const char *cp, struct in_addr *ia);
 
 #include "qemu-option.h"
 #include "qapi/error.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 
 /* misc helpers */
 int qemu_socket(int domain, int type, int protocol);
qga/commands-posix.c +1 -1
index 726930a..4381182 100644
@@ -17,7 +17,7 @@
 #include <sys/wait.h>
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "qemu-queue.h"
 #include "host-utils.h"
 
qga/commands-win32.c +1 -1
index 5bd8fb2..5596171 100644
@@ -16,7 +16,7 @@
 #include <powrprof.h>
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 
 #ifndef SHTDN_REASON_FLAG_PLANNED
 #define SHTDN_REASON_FLAG_PLANNED 0x80000000
qga/commands.c +1 -1
index 46b0b08..b5703e1 100644
@@ -13,7 +13,7 @@
 #include <glib.h>
 #include "qga/guest-agent-core.h"
 #include "qga-qmp-commands.h"
-#include "qerror.h"
+#include "qobject/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/main.c +5 -5
index 9b59a52..67fce71 100644
@@ -20,14 +20,14 @@
 #include <sys/wait.h>
 #include <sys/stat.h>
 #endif
-#include "json-streamer.h"
-#include "json-parser.h"
-#include "qint.h"
-#include "qjson.h"
+#include "qobject/json-streamer.h"
+#include "qobject/json-parser.h"
+#include "qobject/qint.h"
+#include "qobject/qjson.h"
 #include "qga/guest-agent-core.h"
 #include "module.h"
 #include "signal.h"
-#include "qerror.h"
+#include "qobject/qerror.h"
 #include "qapi/qmp-core.h"
 #include "qga/channel.h"
 #ifdef _WIN32
qobject/Makefile.objs new file +4 -0
new file mode 100644
index 0000000..c603aa9
@@ -0,0 +1,4 @@
+qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
+qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
+qobject-obj-y += qerror.o
+
qobject/json-lexer.c renamed from json-lexer.c +5 -5
similarity index 98%
rename from json-lexer.c
rename to qobject/json-lexer.c
index 3cd3285..e96ddc2 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qstring.h"
-#include "qlist.h"
-#include "qdict.h"
-#include "qint.h"
+#include "qobject/qstring.h"
+#include "qobject/qlist.h"
+#include "qobject/qdict.h"
+#include "qobject/qint.h"
 #include "qemu-common.h"
-#include "json-lexer.h"
+#include "qobject/json-lexer.h"
 
 #define MAX_TOKEN_SIZE (64ULL << 20)
 
qobject/json-parser.c renamed from json-parser.c +9 -9
similarity index 98%
rename from json-parser.c
rename to qobject/json-parser.c
index 457291b..544d79f 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 "qobject/qstring.h"
+#include "qobject/qint.h"
+#include "qobject/qdict.h"
+#include "qobject/qlist.h"
+#include "qobject/qfloat.h"
+#include "qobject/qbool.h"
+#include "qobject/json-parser.h"
+#include "qobject/json-lexer.h"
+#include "qobject/qerror.h"
 
 typedef struct JSONParserContext
 {
qobject/json-streamer.c renamed from json-streamer.c +5 -5
similarity index 95%
rename from json-streamer.c
rename to qobject/json-streamer.c
index c255c78..f0797b6 100644
@@ -11,12 +11,12 @@
  *
  */
 
-#include "qlist.h"
-#include "qint.h"
-#include "qdict.h"
+#include "qobject/qlist.h"
+#include "qobject/qint.h"
+#include "qobject/qdict.h"
 #include "qemu-common.h"
-#include "json-lexer.h"
-#include "json-streamer.h"
+#include "qobject/json-lexer.h"
+#include "qobject/json-streamer.h"
 
 #define MAX_TOKEN_SIZE (64ULL << 20)
 #define MAX_NESTING (1ULL << 10)
qobject/qbool.c renamed from qbool.c +2 -2
similarity index 95%
rename from qbool.c
rename to qobject/qbool.c
index 590cd71..01c26e7 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "qbool.h"
-#include "qobject.h"
+#include "qobject/qbool.h"
+#include "qobject/qobject.h"
 #include "qemu-common.h"
 
 static void qbool_destroy_obj(QObject *obj);
qobject/qdict.c renamed from qdict.c +6 -6
similarity index 98%
rename from qdict.c
rename to qobject/qdict.c
index 4bf308b..97a9972 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 "qobject/qint.h"
+#include "qobject/qfloat.h"
+#include "qobject/qdict.h"
+#include "qobject/qbool.h"
+#include "qobject/qstring.h"
+#include "qobject/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 
qobject/qerror.c renamed from qerror.c +2 -2
similarity index 98%
rename from qerror.c
rename to qobject/qerror.c
index 0818504..4462cfb 100644
@@ -11,8 +11,8 @@
  */
 
 #include "monitor.h"
-#include "qjson.h"
-#include "qerror.h"
+#include "qobject/qjson.h"
+#include "qobject/qerror.h"
 #include "qemu-common.h"
 
 static void qerror_destroy_obj(QObject *obj);
qobject/qfloat.c renamed from qfloat.c +2 -2
similarity index 95%
rename from qfloat.c
rename to qobject/qfloat.c
index 98338f3..8b3cb81 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "qfloat.h"
-#include "qobject.h"
+#include "qobject/qfloat.h"
+#include "qobject/qobject.h"
 #include "qemu-common.h"
 
 static void qfloat_destroy_obj(QObject *obj);
qobject/qint.c renamed from qint.c +2 -2
similarity index 95%
rename from qint.c
rename to qobject/qint.c
index ee51804..26d30b4 100644
@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
-#include "qint.h"
-#include "qobject.h"
+#include "qobject/qint.h"
+#include "qobject/qobject.h"
 #include "qemu-common.h"
 
 static void qint_destroy_obj(QObject *obj);
qobject/qjson.c renamed from qjson.c +9 -9
similarity index 96%
rename from qjson.c
rename to qobject/qjson.c
index f9c8e77..a3a6375 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 "qobject/json-lexer.h"
+#include "qobject/json-parser.h"
+#include "qobject/json-streamer.h"
+#include "qobject/qjson.h"
+#include "qobject/qint.h"
+#include "qobject/qlist.h"
+#include "qobject/qbool.h"
+#include "qobject/qfloat.h"
+#include "qobject/qdict.h"
 
 typedef struct JSONParsingState
 {
qobject/qlist.c renamed from qlist.c +2 -2
similarity index 98%
rename from qlist.c
rename to qobject/qlist.c
index b48ec5b..7300076 100644
@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
-#include "qlist.h"
-#include "qobject.h"
+#include "qobject/qlist.h"
+#include "qobject/qobject.h"
 #include "qemu-queue.h"
 #include "qemu-common.h"
 
qobject/qstring.c renamed from qstring.c +2 -2
similarity index 98%
rename from qstring.c
rename to qobject/qstring.c
index b7e12e4..990046a 100644
@@ -10,8 +10,8 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
-#include "qobject.h"
-#include "qstring.h"
+#include "qobject/qobject.h"
+#include "qobject/qstring.h"
 #include "qemu-common.h"
 
 static void qstring_destroy_obj(QObject *obj);
qom/object.c +4 -4
index d195890..72f34af 100644
@@ -19,10 +19,10 @@
 /* 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 "qobject/qobject.h"
+#include "qobject/qbool.h"
+#include "qobject/qint.h"
+#include "qobject/qstring.h"
 
 #define MAX_INTERFACES 32
 
scripts/qapi-commands.py +2 -2
index 4d0847a..60adaa4 100644
@@ -342,7 +342,7 @@ def gen_command_decl_prologue(header, guard, prefix=""):
 #define %(guard)s
 
 #include "%(prefix)sqapi-types.h"
-#include "qdict.h"
+#include "qobject/qdict.h"
 #include "qapi/error.h"
 
 ''',
@@ -366,7 +366,7 @@ def gen_command_def_prologue(prefix="", proxy=False):
  *
  */
 
-#include "qemu-objects.h"
+#include "qapi/qmp-types.h"
 #include "qapi/qmp-core.h"
 #include "qapi/visit-core.h"
 #include "qapi/qmp-output-visitor.h"
tests/check-qdict.c +3 -3
index fc0d276..f26f4de 100644
@@ -11,9 +11,9 @@
  */
 #include <glib.h>
 
-#include "qint.h"
-#include "qdict.h"
-#include "qstring.h"
+#include "qobject/qint.h"
+#include "qobject/qdict.h"
+#include "qobject/qstring.h"
 #include "qemu-common.h"
 
 /*
tests/check-qfloat.c +1 -1
index cdc66ea..e3e2ec5 100644
@@ -12,7 +12,7 @@
  */
 #include <glib.h>
 
-#include "qfloat.h"
+#include "qobject/qfloat.h"
 #include "qemu-common.h"
 
 /*
tests/check-qint.c +1 -1
index 5a27119..57d740e 100644
@@ -11,7 +11,7 @@
  */
 #include <glib.h>
 
-#include "qint.h"
+#include "qobject/qint.h"
 #include "qemu-common.h"
 
 /*
tests/check-qjson.c +7 -7
index 3b896f5..b3d556c 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 "qobject/qstring.h"
+#include "qobject/qint.h"
+#include "qobject/qdict.h"
+#include "qobject/qlist.h"
+#include "qobject/qfloat.h"
+#include "qobject/qbool.h"
+#include "qobject/qjson.h"
 
 #include "qemu-common.h"
 
tests/check-qlist.c +2 -2
index 501ba26..b3eda14 100644
@@ -11,8 +11,8 @@
  */
 #include <glib.h>
 
-#include "qint.h"
-#include "qlist.h"
+#include "qobject/qint.h"
+#include "qobject/qlist.h"
 
 /*
  * Public Interface test-cases
tests/check-qstring.c +1 -1
index addad6c..5eee33c 100644
@@ -11,7 +11,7 @@
  */
 #include <glib.h>
 
-#include "qstring.h"
+#include "qobject/qstring.h"
 #include "qemu-common.h"
 
 /*
tests/test-qmp-commands.c +1 -1
index dc3c507..2a68cba 100644
@@ -1,5 +1,5 @@
 #include <glib.h>
-#include "qemu-objects.h"
+#include "qapi/qmp-types.h"
 #include "test-qmp-commands.h"
 #include "qapi/qmp-core.h"
 #include "module.h"
tests/test-qmp-input-strict.c +1 -1
index f6df8cb..076e5e1 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..23b753f 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..eb99add 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..16a358a 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..0096872 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..5e5a959 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/spice-core.c +4 -4
index 27e9ba1..83a93fd 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 "qobject/qint.h"
+#include "qobject/qbool.h"
+#include "qobject/qstring.h"
+#include "qobject/qjson.h"
 #include "notify.h"
 #include "migration.h"
 #include "monitor.h"
ui/vnc-enc-tight.c +1 -1
index 5d492ab..2a6d90e 100644
@@ -45,7 +45,7 @@
 #endif
 
 #include "bswap.h"
-#include "qint.h"
+#include "qobject/qint.h"
 #include "vnc.h"
 #include "vnc-enc-tight.h"
 #include "vnc-palette.h"
ui/vnc-palette.h +1 -1
index 3260885..ecf44ad 100644
@@ -29,7 +29,7 @@
 #ifndef VNC_PALETTE_H
 #define VNC_PALETTE_H
 
-#include "qlist.h"
+#include "qobject/qlist.h"
 #include "qemu-queue.h"
 #include <stdint.h>
 
ui/vnc.c +1 -1
index d0ffcc5..9f7bd70 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 ab21a93..04fa990 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 "qobject/qjson.h"
 #include "qemu-option.h"
 #include "qemu-config.h"
 #include "qemu-options.h"
Signature · 1 line
1.7.1
#24 lore raw

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

In reply to Paolo Bonzini
---
 aes.c                                              |    2 +-
 aio.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/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                                  |    2 +-
 block/raw-win32.c                                  |    2 +-
 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 +-
 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/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/megasas.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
 .../block/coroutine_int.h                          |    2 +-
 nbd.h => include/block/nbd.h                       |    0
 linux-aio.c                                        |    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 +++---
 posix-aio-compat.c                                 |    2 +-
 qemu-coroutine-io.c                                |    2 +-
 qemu-coroutine-lock.c                              |    4 ++--
 qemu-coroutine-sleep.c                             |    2 +-
 qemu-coroutine.c                                   |    4 ++--
 qemu-img.c                                         |    2 +-
 qemu-io.c                                          |    2 +-
 qemu-nbd.c                                         |    4 ++--
 tests/test-coroutine.c                             |    2 +-
 99 files changed, 114 insertions(+), 114 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%)
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.c +1 -1
index c738a4e..474377f 100644
@@ -14,7 +14,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 85cc641..f45069e 100644
@@ -23,7 +23,7 @@
  */
 
 #include "qemu-common.h"
-#include "qemu-aio.h"
+#include "block/aio.h"
 #include "main-loop.h"
 
 /* Anchor of the list of Bottom Halves belonging to the context */
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 7a67859..09ba2af 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 "qobject/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 152c0a8..84ccc08 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 9d5f1ec..73be004 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 733c914..512800e 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 c1074cd..7b1b688 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 3588d73..5d86bc1 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 9f182ac..31e2e0c 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/nbd.c +2 -2
index 2bce47b..9d3a3a2 100644
@@ -27,8 +27,8 @@
  */
 
 #include "qemu-common.h"
-#include "nbd.h"
-#include "block_int.h"
+#include "block/nbd.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 e179211..939c632 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 5e3f915..db41f96 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 6e069c9..29a9465 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 "qobject/qerror.h"
block/qcow2.h +2 -2
index b4eb654..6841ee2 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 +1 -1
index 5f868bf..16eaad3 100644
@@ -24,7 +24,7 @@
 #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 "block/raw-posix-aio.h"
 
block/raw-win32.c +1 -1
index 78c8306..411235e 100644
@@ -23,7 +23,7 @@
  */
 #include "qemu-common.h"
 #include "qemu-timer.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "module.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 015a9db..5aad5ec 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 9306174..4ad0ca3 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 7926652..2c4d72c 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 f35b12e..73e3253 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 1a80e5a..c7fc07a 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 b6bf52f..caa50db 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"
 
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"
 
blockdev-nbd.c +1 -1
index 35cd485..b48a7fc 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 9d8d892..67125e5 100644
@@ -9,14 +9,14 @@
 
 #include "blockdev.h"
 #include "hw/block-common.h"
-#include "blockjob.h"
+#include "block/blockjob.h"
 #include "monitor.h"
 #include "qobject/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 4be871e..17974c4 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 1d9e91f..16d5053 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 "qobject/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 861e878..c2f3ecc 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 1bd6f4a..89c4161 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/ide/cmd646.c +1 -1
index e0b9443..94a612f 100644
@@ -26,7 +26,7 @@
 #include <hw/pc.h>
 #include <hw/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 272b773..6f0632c 100644
@@ -65,7 +65,7 @@
 #include <hw/pc.h>
 #include <hw/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 f228725..90fdb83 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 fcfb09e..28fd939 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 644533f..ce66b15 100644
@@ -26,7 +26,7 @@
 #include <hw/pc.h>
 #include <hw/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 b20e4f0..fba8c6b 100644
@@ -27,7 +27,7 @@
 #include <hw/pc.h>
 #include <hw/pci.h>
 #include <hw/isa.h>
-#include "block.h"
+#include "block/block.h"
 #include "sysemu.h"
 #include "dma.h"
 
hw/megasas.c +1 -1
index 0e57740..2b062c3 100644
@@ -25,7 +25,7 @@
 #include "iov.h"
 #include "scsi.h"
 #include "scsi-defs.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "trace.h"
 
 #include "mfi.h"
hw/mips_fulong2e.c +1 -1
index cc31bb7..a47e1e4 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 e26caff..5b6064e 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 8389db6..924dd11 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 3b437da..4751fc2 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 39337ec..962f78b 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"
 
hw/ppc405_boards.c +1 -1
index e848cb0..686dbce 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 b28bd75..a9e7ae6 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 9a145df..f295925 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 297580a..b3945f7 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 5048b66..dd430c9 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 c41554b..574ba62 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 "qobject/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 cdf5ff1..a667a66 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 "qobject/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 930cc3c..2de9e48 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
linux-aio.c +1 -1
index f3d8ef3..cc995fb 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-posix-aio.h"
 
migration-exec.c +1 -1
index ed63187..b3d9964 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 b1e3cca..7c97685 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 7006fdb..7b764de 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 570bc94..8a2c804 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 bd55a15..53ee0e7 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 4823837..338052d 100644
@@ -4,7 +4,7 @@
 #include "qemu-common.h"
 #include "qobject/qerror.h"
 #include "qobject/qdict.h"
-#include "block.h"
+#include "block/block.h"
 #include "readline.h"
 
 extern Monitor *cur_mon;
nbd.c +3 -3
index cec5a94..cf88b1c 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>
posix-aio-compat.c +1 -1
index 96e4daf..5529515 100644
@@ -28,7 +28,7 @@
 #include "sysemu.h"
 #include "qemu-common.h"
 #include "trace.h"
-#include "block_int.h"
+#include "block/block_int.h"
 #include "iov.h"
 
 #include "block/raw-posix-aio.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 +2 -2
index 26ad76b..1feb186 100644
@@ -23,8 +23,8 @@
  */
 
 #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 "main-loop.h"
 #include "trace.h"
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 1449708..51373e0 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 d0f4fb7..c725e37 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 15bcd08..6f9b9d1 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-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
Signature · 1 line
1.7.1