Header file renaming and cleanup
Subsystems (9)
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%)PATCH 1/32 libcacard: simplify rules for recursive build
--- Makefile | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-)
Makefile +1 -9
@@ -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
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
@@ -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
PATCH 3/32 build: adjust setting of QEMU_INCLUDES
In reply to Paolo BonziniMake 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
@@ -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
@@ -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
@@ -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
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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
ldscripts/arm.ld renamed from arm.ld +0 -0
ldscripts/hppa.ld renamed from hppa.ld +0 -0
ldscripts/i386.ld renamed from i386.ld +0 -0
ldscripts/ia64.ld renamed from ia64.ld +0 -0
ldscripts/m68k.ld renamed from m68k.ld +0 -0
ldscripts/mips.ld renamed from mips.ld +0 -0
ldscripts/ppc.ld renamed from ppc.ld +0 -0
ldscripts/ppc64.ld renamed from ppc64.ld +0 -0
ldscripts/s390.ld renamed from s390.ld +0 -0
ldscripts/sparc.ld renamed from sparc.ld +0 -0
ldscripts/sparc64.ld renamed from sparc64.ld +0 -0
ldscripts/x86_64.ld renamed from x86_64.ld +0 -0
Signature · 1 line
1.7.1
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
@@ -1,5 +1,6 @@ config-devices.* config-all-devices.* +config-all-disass.* config-host.* config-target.* trace.h
Makefile +5 -4
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
include/disas/disas.h renamed from disas.h +0 -0
linux-user/elfload.c +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Re: [Qemu-devel] [PATCH 07/32] build: kill libdis, move disassemblers to disas/
Quoted 2 lines · Paolo Bonzini
Signed-off-by Paolo Bonzini <[email protected]>+ echo "
CONFIG_ALPHA_DIS=y" >> config-all-disass.mak
"config-all-disas.mak" for consistency with the abbreviation we use everywhere else, please.
-- PMM
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 9/32 janitor: move iovector functions out of cutils.c
In reply to Paolo BonziniThis 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
@@ -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
@@ -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
PATCH 10/32 janitor: do not rely on indirect inclusions from qemu-char.h
In reply to Paolo BonziniVarious 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
@@ -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
@@ -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
@@ -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
@@ -23,6 +23,7 @@*/ #include "qemu-common.h" +#include "qemu-config.h" #include "block_int.h" #include "module.h"
block/iscsi.c +1 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -23,6 +23,7 @@*/ #include "hw.h" #include "isa.h" +#include "main-loop.h" /* #define DEBUG_DMA */
hw/fw_cfg.c +1 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 11/32 janitor: do not include qemu-char everywhere
In reply to Paolo BonziniTouching 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -18,7 +18,6 @@*/ #include "qemu-common.h" -#include "net.h" #include "bt-host.h" #include "main-loop.h"
bt-host.h +12 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -4,7 +4,6 @@#include "xen_common.h" #include "sysemu.h" #include "net.h" -#include "net/hub.h" /* ------------------------------------------------------------- */
hw/xen_platform.c +0 -1
@@ -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
@@ -23,7 +23,6 @@*/ #include "sysemu.h" -#include "net.h" #include "monitor.h" #include "console.h" #include "error.h"
qemu-char.c +0 -1
@@ -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
@@ -23,7 +23,6 @@*/ #include "sysemu.h" -#include "net.h" #include "monitor.h" #include "console.h"
Signature · 1 line
1.7.1
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
@@ -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
@@ -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
@@ -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
PATCH 15/32 net: reorganize headers
In reply to Paolo BonziniMove 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -73,33 +73,6 @@ struct virtio_net_configuint16_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
@@ -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
@@ -3,7 +3,7 @@#include "xen_common.h" #include "sysemu.h" -#include "net.h" +#include "net/net.h" /* ------------------------------------------------------------- */
hw/xen_nic.c +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
include/net/net.h renamed from net.h +3 -0
@@ -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
include/net/slirp.h renamed from net/slirp.h +0 -0
include/net/tap.h renamed from net/tap.h +23 -14
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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_requiredssize_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
@@ -22,7 +22,7 @@* THE SOFTWARE. */ -#include "net/util.h" +#include "util.h" #include <errno.h> #include <stdlib.h>
net/vde.c +1 -1
@@ -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
@@ -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
@@ -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
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
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
@@ -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
@@ -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
@@ -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
qga/qapi-schema.json renamed from qapi-schema-guest.json +0 -0
Signature · 1 line
1.7.1
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
@@ -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
@@ -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
@@ -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
@@ -11,7 +11,7 @@*/ #include "ssi.h" -#include "console.h" +#include "ui/console.h" typedef struct { SSISlave ssidev;
hw/applesmc.c +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -13,7 +13,7 @@#include "hw.h" #include "pxa.h" -#include "console.h" +#include "ui/console.h" /* * Keypad
hw/pxa2xx_lcd.c +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
include/ui/pflib.h renamed from pflib.h +0 -0
include/ui/qemu-spice.h renamed from ui/qemu-spice.h +0 -0
include/ui/spice-display.h renamed from ui/spice-display.h +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
ui/cursor_left_ptr.xpm renamed from cursor_left_ptr.xpm +0 -0
ui/input.c renamed from input.c +1 -1
@@ -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
@@ -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
ui/sdl.c +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
ui/vnc.h +1 -1
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Signature · 1 line
1.7.1
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
@@ -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
@@ -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
@@ -6,7 +6,6 @@*/ #include <slirp.h> -#include <libslirp.h> #include "monitor.h"
slirp/slirp.h +1 -6
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
include/qapi/opts-visitor.h renamed from qapi/opts-visitor.h +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
include/qobject/qstring.h renamed from qstring.h +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -12,7 +12,7 @@*/ #include <glib.h> -#include "qfloat.h" +#include "qobject/qfloat.h" #include "qemu-common.h" /*
tests/check-qint.c +1 -1
@@ -11,7 +11,7 @@*/ #include <glib.h> -#include "qint.h" +#include "qobject/qint.h" #include "qemu-common.h" /*
tests/check-qjson.c +7 -7
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -23,7 +23,7 @@*/ #include "qemu-common.h" -#include "qemu-coroutine-int.h" +#include "block/coroutine_int.h" typedef struct {
dma.h +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
include/block/aio.h renamed from qemu-aio.h +0 -0
include/block/block.h renamed from block.h +2 -2
@@ -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
@@ -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
@@ -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
include/block/coroutine_int.h renamed from qemu-coroutine-int.h +1 -1
@@ -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
linux-aio.c +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -11,7 +11,7 @@* */ -#include "qemu-coroutine.h" +#include "block/coroutine.h" #include "qemu-timer.h" typedef struct CoSleepCB {
qemu-coroutine.c +2 -2
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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