Include reorganization + PCI patch queue
Subsystems (9)
Anthony,
The following changes since commit a8a826a3c3b8c8a1c4def0e9e22b46e78e6163a0:
exec: refactor cpu_restore_state (2012-12-16 08:35:24 +0000)
are available in the git repository at:
git://github.com/bonzini/qemu.git header-dirs
for you to fetch changes up to 394394a788cec72682750f855e5182de156026b4:
janitor: move remaining public headers to include/ (2012-12-17 18:56:58 +0100)
----------------------------------------------------------------
Jason Baron (1):
Fixup q35/ich9 Licenses
Michael S. Tsirkin (12):
tap: reset vnet header size on open get_maintainer.pl: update from linix 3.8
pci: prepare makefiles for pci code reorganization
MAINTAINERS: add hw/pci/ to list of PCI files
pci: move pci core code to hw/pci
pci: update all users to look in pci/
pci: fix path for local includes
Revert "pci: prepare makefiles for pci code reorganization"
pci: rename pci_internals.h pci_bus.h
pci_bus: update comment
pci_bus.h: tweak include guards
kvm: do not flush after deleting gsi
Paolo Bonzini (33):
Merge commit '1dd3a74d2ee2d873cde0b390b536e45420b3fe05' into HEAD
libcacard: simplify rules for recursive build
vscclient: use per-target variables
build: adjust setting of QEMU_INCLUDES
build: add $(TARGET_DIR) to "GEN config-target.h" lines
build: move rules from Makefile to */Makefile.objs
build: create ldscripts/
build: kill libdis, move disassemblers to disas/
build: kill libuser
janitor: do not rely on indirect inclusions of or from qemu-char.h
janitor: do not include qemu-char everywhere
net: move Bluetooth stuff out of net.h
net: do not include net.h everywhere
net: move net.c to net/
net: reorganize headers
qemu-ga: move qemu-ga files to qga/
ui: move files to ui/ and include/ui/
qapi: move inclusions of qemu-common.h from headers to .c files
qapi: remove qapi/qapi-types-core.h
qapi: make struct Visitor opaque
janitor: add guards to headers
qapi: move include files to include/qobject/
block: move include files to include/block/
exec: move include files to include/exec/
monitor: move include files to include/monitor/
migration: move include files to include/migration/
qom: move include files to include/qom/
misc: move include files to include/qemu/
softmmu: move include files to include/sysemu/
softmmu: move remaining include files to include/ subdirectories
fpu: move public header file to include/fpu
hw: move executable format header files to hw/
janitor: move remaining public headers to include/
.gitignore | 1 +
MAINTAINERS | 1 +
Makefile | 47 +--
Makefile.dis | 20 -
Makefile.objs | 32 +-
Makefile.target | 8 +-
Makefile.user | 24 --
a.out.h | 430 ---------------------
acl.c | 2 +-
aes.c | 2 +-
aio-posix.c | 6 +-
aio-win32.c | 6 +-
arch_init.c | 24 +-
async.c | 4 +-
audio/Makefile.objs | 3 +
audio/alsaaudio.c | 2 +-
audio/audio.c | 6 +-
audio/audio.h | 2 +-
audio/noaudio.c | 2 +-
audio/ossaudio.c | 4 +-
audio/spiceaudio.c | 2 +-
audio/wavaudio.c | 2 +-
audio/wavcapture.c | 2 +-
audio/winwaveaudio.c | 2 +-
backends/rng-egd.c | 4 +-
backends/rng-random.c | 4 +-
backends/rng.c | 2 +-
balloon.c | 10 +-
bitmap.c | 4 +-
bitops.c | 2 +-
block-migration.c | 12 +-
block.c | 18 +-
block/Makefile.objs | 2 +
block/blkdebug.c | 5 +-
block/blkverify.c | 4 +-
block/bochs.c | 4 +-
block/cloop.c | 4 +-
block/commit.c | 4 +-
block/cow.c | 4 +-
block/curl.c | 2 +-
block/dmg.c | 6 +-
block/gluster.c | 6 +-
block/iscsi.c | 5 +-
block/linux-aio.c | 6 +-
block/mirror.c | 4 +-
block/nbd.c | 10 +-
block/parallels.c | 4 +-
block/qcow.c | 8 +-
block/qcow2-cache.c | 2 +-
block/qcow2-cluster.c | 2 +-
block/qcow2-refcount.c | 2 +-
block/qcow2-snapshot.c | 2 +-
block/qcow2.c | 10 +-
block/qcow2.h | 4 +-
block/qed-table.c | 2 +-
block/qed.c | 6 +-
block/qed.h | 2 +-
block/raw-posix.c | 13 +-
block/raw-win32.c | 10 +-
block/raw.c | 4 +-
block/rbd.c | 4 +-
block/sheepdog.c | 8 +-
block/stream.c | 4 +-
block/vdi.c | 8 +-
block/vmdk.c | 6 +-
block/vpc.c | 6 +-
block/vvfat.c | 6 +-
block/win32-aio.c | 10 +-
blockdev-nbd.c | 12 +-
blockdev.c | 20 +-
blockjob.c | 14 +-
bsd-user/elfload.c | 2 +-
bsd-user/main.c | 4 +-
bsd-user/qemu.h | 6 +-
bt-host.c | 5 +-
bt-host.h | 9 -
bt-vhci.c | 4 +-
buffered_file.c | 3 +-
buffered_file.h | 2 +-
cache-utils.c | 2 +-
cmd.c | 4 +-
compatfd.c | 2 +-
configure | 53 +--
coroutine-gthread.c | 2 +-
coroutine-sigaltstack.c | 2 +-
coroutine-ucontext.c | 2 +-
coroutine-win32.c | 2 +-
cpu-exec.c | 6 +-
cpus.c | 22 +-
cputlb.c | 18 +-
cutils.c | 6 +-
device_tree.c | 6 +-
disas.c | 6 +-
disas/Makefile.objs | 16 +
alpha-dis.c => disas/alpha.c | 2 +-
arm-dis.c => disas/arm.c | 2 +-
cris-dis.c => disas/cris.c | 2 +-
hppa-dis.c => disas/hppa.c | 2 +-
i386-dis.c => disas/i386.c | 2 +-
ia64-dis.c => disas/ia64.c | 2 +-
lm32-dis.c => disas/lm32.c | 2 +-
m68k-dis.c => disas/m68k.c | 2 +-
microblaze-dis.c => disas/microblaze.c | 2 +-
mips-dis.c => disas/mips.c | 2 +-
ppc-dis.c => disas/ppc.c | 2 +-
s390-dis.c => disas/s390.c | 2 +-
sh4-dis.c => disas/sh4.c | 2 +-
sparc-dis.c => disas/sparc.c | 2 +-
tci-dis.c => disas/tci.c | 2 +-
dma-helpers.c | 6 +-
dump-stub.c | 4 +-
dump.c | 18 +-
envlist.c | 4 +-
error.c | 8 +-
event_notifier-posix.c | 5 +-
event_notifier-win32.c | 4 +-
exec.c | 19 +-
fpu/softfloat.c | 2 +-
fsdev/qemu-fsdev-dummy.c | 4 +-
fsdev/qemu-fsdev.c | 6 +-
fsdev/qemu-fsdev.h | 2 +-
fsdev/virtfs-proxy-helper.c | 4 +-
fsdev/virtio-9p-marshal.c | 4 +-
gdbstub.c | 12 +-
hmp.c | 13 +-
hmp.h | 2 +-
host-utils.c | 2 +-
hw/9pfs/codir.c | 4 +-
hw/9pfs/cofile.c | 4 +-
hw/9pfs/cofs.c | 4 +-
hw/9pfs/coxattr.c | 4 +-
hw/9pfs/virtio-9p-coth.c | 5 +-
hw/9pfs/virtio-9p-coth.h | 4 +-
hw/9pfs/virtio-9p-device.c | 2 +-
hw/9pfs/virtio-9p-handle.c | 2 +-
hw/9pfs/virtio-9p-local.c | 2 +-
hw/9pfs/virtio-9p-posix-acl.c | 2 +-
hw/9pfs/virtio-9p-synth.h | 4 +
hw/9pfs/virtio-9p-xattr.h | 2 +-
hw/9pfs/virtio-9p.c | 4 +-
hw/9pfs/virtio-9p.h | 4 +-
hw/Makefile.objs | 15 +-
hw/ac97.c | 4 +-
hw/acpi.c | 4 +-
hw/acpi.h | 2 +-
hw/acpi_ich9.c | 23 +-
hw/acpi_piix4.c | 10 +-
hw/adb.c | 2 +-
hw/adlib.c | 2 +-
hw/ads7846.c | 2 +-
hw/alpha_dp264.c | 2 +-
hw/alpha_pci.c | 4 +-
hw/alpha_sys.h | 5 +-
hw/alpha_typhoon.c | 6 +-
hw/an5206.c | 2 +-
hw/apb_pci.c | 12 +-
hw/apic.c | 6 +-
hw/apic_common.c | 2 +-
hw/apic_internal.h | 4 +-
hw/apm.c | 2 +-
hw/apm.h | 2 +-
hw/applesmc.c | 4 +-
hw/arm-misc.h | 2 +-
hw/arm11mpcore.c | 2 +-
hw/arm_boot.c | 5 +-
hw/arm_mptimer.c | 2 +-
hw/arm_sysctl.c | 4 +-
hw/arm_timer.c | 2 +-
hw/armv7m_nvic.c | 4 +-
hw/audiodev.h | 5 +
hw/axis_dev88.c | 6 +-
hw/baum.c | 4 +-
hw/baum.h | 4 +
hw/blizzard.c | 4 +-
hw/block-common.c | 4 +-
hw/boards.h | 2 +-
hw/bonito.c | 8 +-
hw/bt-hci-csr.c | 6 +-
hw/bt-hci.c | 4 +-
hw/bt-hid.c | 4 +-
hw/bt-l2cap.c | 2 +-
hw/bt.c | 2 +-
hw/bt.h | 5 +
hw/cadence_gem.c | 2 +-
hw/cadence_ttc.c | 2 +-
hw/cadence_uart.c | 4 +-
hw/cbus.c | 2 +-
hw/ccid-card-emulated.c | 6 +-
hw/ccid-card-passthru.c | 6 +-
hw/cirrus_vga.c | 4 +-
hw/collie.c | 4 +-
hw/cris-boot.h | 4 +
hw/cs4231a.c | 2 +-
hw/cuda.c | 4 +-
hw/debugcon.c | 2 +-
hw/dec_pci.c | 8 +-
hw/device-hotplug.c | 9 +-
hw/dma.c | 1 +
hw/dp8393x.c | 4 +-
hw/dummy_m68k.c | 2 +-
hw/e1000.c | 8 +-
hw/eepro100.c | 8 +-
hw/empty_slot.h | 5 +
hw/es1370.c | 4 +-
hw/escc.c | 4 +-
hw/escc.h | 5 +
hw/esp-pci.c | 4 +-
hw/esp.c | 2 +-
hw/etraxfs.h | 7 +-
hw/etraxfs_dma.c | 4 +-
hw/etraxfs_dma.h | 5 +
hw/etraxfs_eth.c | 2 +-
hw/etraxfs_ser.c | 4 +-
hw/etraxfs_timer.c | 4 +-
hw/exynos4210.c | 2 +-
hw/exynos4210.h | 2 +-
hw/exynos4210_fimd.c | 8 +-
hw/exynos4210_i2c.c | 2 +-
hw/exynos4210_mct.c | 2 +-
hw/exynos4210_pwm.c | 2 +-
hw/exynos4210_rtc.c | 6 +-
hw/exynos4210_uart.c | 4 +-
hw/exynos4_boards.c | 6 +-
hw/fdc.c | 10 +-
hw/flash.h | 7 +-
hw/framebuffer.c | 2 +-
hw/framebuffer.h | 2 +-
hw/fw_cfg.c | 5 +-
hw/g364fb.c | 4 +-
hw/grackle_pci.c | 4 +-
hw/grlib_apbuart.c | 2 +-
hw/grlib_gptimer.c | 2 +-
hw/gt64xxx.c | 6 +-
hw/gumstix.c | 6 +-
hw/hd-geometry.c | 2 +-
hw/hda-audio.c | 2 +-
hw/hid.c | 4 +-
hw/hid.h | 2 +-
hw/highbank.c | 8 +-
hw/hpet.c | 4 +-
hw/hw.h | 12 +-
hw/i386/Makefile.objs | 2 +-
hw/i82378.c | 2 +-
hw/i8254.c | 2 +-
hw/i8254_common.c | 2 +-
hw/i8259.c | 4 +-
hw/i82801b11.c | 2 +-
hw/ich9.h | 10 +-
hw/ide.h | 4 +-
hw/ide/ahci.c | 10 +-
hw/ide/cmd646.c | 8 +-
hw/ide/core.c | 12 +-
hw/ide/ich.c | 8 +-
hw/ide/internal.h | 6 +-
hw/ide/isa.c | 4 +-
hw/ide/macio.c | 4 +-
hw/ide/microdrive.c | 4 +-
hw/ide/mmio.c | 4 +-
hw/ide/pci.c | 6 +-
hw/ide/piix.c | 8 +-
hw/ide/qdev.c | 8 +-
hw/ide/via.c | 8 +-
hw/imx_avic.c | 2 +-
hw/imx_ccm.c | 2 +-
hw/imx_serial.c | 4 +-
hw/imx_timer.c | 2 +-
hw/integratorcp.c | 6 +-
hw/intel-hda.c | 8 +-
hw/ioapic_internal.h | 2 +-
hw/ioh3420.c | 6 +-
hw/ioh3420.h | 2 +-
hw/isa-bus.c | 6 +-
hw/isa.h | 4 +-
hw/isa_mmio.c | 2 +-
hw/ivshmem.c | 13 +-
hw/jazz_led.c | 5 +-
hw/kvm/apic.c | 4 +-
hw/kvm/clock.c | 4 +-
hw/kvm/i8254.c | 6 +-
hw/kvm/i8259.c | 2 +-
hw/kvm/ioapic.c | 2 +-
hw/kvm/pci-assign.c | 14 +-
hw/kvmvapic.c | 6 +-
hw/kzm.c | 6 +-
hw/lan9118.c | 4 +-
hw/lance.c | 6 +-
hw/leon3.c | 8 +-
hw/lm32.h | 5 +
hw/lm32_boards.c | 5 +-
hw/lm32_juart.c | 2 +-
hw/lm32_pic.c | 2 +-
hw/lm32_sys.c | 8 +-
hw/lm32_timer.c | 4 +-
hw/lm32_uart.c | 4 +-
hw/lm832x.c | 4 +-
hw/loader.c | 10 +-
hw/lpc_ich9.c | 46 +--
hw/lsi53c895a.c | 4 +-
hw/m25p80.c | 2 +-
hw/m48t59.c | 6 +-
hw/mac_dbdma.c | 1 +
hw/mac_dbdma.h | 6 +-
hw/mac_nvram.c | 2 +-
hw/macio.c | 2 +-
hw/mainstone.c | 6 +-
hw/mc146818rtc.c | 6 +-
hw/mcf5206.c | 6 +-
hw/mcf5208.c | 8 +-
hw/mcf_fec.c | 4 +-
hw/mcf_intc.c | 2 +-
hw/mcf_uart.c | 4 +-
hw/megasas.c | 8 +-
hw/microblaze_boot.c | 6 +-
hw/milkymist-ac97.c | 2 +-
hw/milkymist-hpdmc.c | 2 +-
hw/milkymist-hw.h | 1 +
hw/milkymist-memcard.c | 6 +-
hw/milkymist-minimac2.c | 4 +-
hw/milkymist-pfpu.c | 4 +-
hw/milkymist-softusb.c | 4 +-
hw/milkymist-sysctl.c | 6 +-
hw/milkymist-tmu2.c | 2 +-
hw/milkymist-uart.c | 4 +-
hw/milkymist-vgafb.c | 6 +-
hw/milkymist.c | 7 +-
hw/mips.h | 2 +-
hw/mips_fulong2e.c | 16 +-
hw/mips_jazz.c | 10 +-
hw/mips_malta.c | 18 +-
hw/mips_mipssim.c | 6 +-
hw/mips_r4k.c | 10 +-
hw/mips_timer.c | 2 +-
hw/mipsnet.c | 2 +-
hw/mpc8544_guts.c | 2 +-
hw/msmouse.c | 6 +-
hw/msmouse.h | 5 +
hw/multiboot.c | 2 +-
hw/musicpal.c | 17 +-
hw/nand.c | 4 +-
hw/ne2000-isa.c | 4 +-
hw/ne2000.c | 6 +-
hw/ne2000.h | 5 +
hw/nseries.c | 8 +-
hw/omap.h | 2 +-
hw/omap1.c | 6 +-
hw/omap2.c | 8 +-
hw/omap_dma.c | 2 +-
hw/omap_dss.c | 2 +-
hw/omap_gpmc.c | 4 +-
hw/omap_gptimer.c | 2 +-
hw/omap_lcdc.c | 5 +-
hw/omap_sx1.c | 6 +-
hw/omap_synctimer.c | 2 +-
hw/omap_uart.c | 4 +-
hw/onenand.c | 8 +-
hw/opencores_eth.c | 4 +-
hw/openpic.c | 4 +-
hw/openrisc_sim.c | 8 +-
hw/openrisc_timer.c | 2 +-
hw/palm.c | 6 +-
hw/pam.c | 2 +-
hw/pam.h | 2 +-
hw/parallel.c | 4 +-
hw/pc.c | 20 +-
hw/pc.h | 8 +-
hw/pc_piix.c | 18 +-
hw/pc_q35.c | 6 +-
hw/pc_sysfw.c | 6 +-
hw/pci/Makefile.objs | 9 +
hw/{ => pci}/msi.c | 4 +-
hw/{ => pci}/msi.h | 2 +-
hw/{ => pci}/msix.c | 10 +-
hw/{ => pci}/msix.h | 2 +-
hw/{ => pci}/pci-hotplug.c | 22 +-
hw/{ => pci}/pci-stub.c | 6 +-
hw/{ => pci}/pci.c | 24 +-
hw/{ => pci}/pci.h | 14 +-
hw/{ => pci}/pci_bridge.c | 6 +-
hw/{ => pci}/pci_bridge.h | 2 +-
hw/{pci_internals.h => pci/pci_bus.h} | 16 +-
hw/{ => pci}/pci_host.c | 4 +-
hw/{ => pci}/pci_host.h | 2 +-
hw/{ => pci}/pci_ids.h | 4 +
hw/{ => pci}/pci_regs.h | 0
hw/{ => pci}/pcie.c | 14 +-
hw/{ => pci}/pcie.h | 8 +-
hw/{ => pci}/pcie_aer.c | 18 +-
hw/{ => pci}/pcie_aer.h | 2 +-
hw/{ => pci}/pcie_host.c | 8 +-
hw/{ => pci}/pcie_host.h | 4 +-
hw/{ => pci}/pcie_port.c | 2 +-
hw/{ => pci}/pcie_port.h | 4 +-
hw/{ => pci}/pcie_regs.h | 0
hw/{ => pci}/shpc.c | 12 +-
hw/{ => pci}/shpc.h | 4 +-
hw/{ => pci}/slotid_cap.c | 4 +-
hw/{ => pci}/slotid_cap.h | 0
hw/pci_bridge_dev.c | 14 +-
hw/pckbd.c | 2 +-
hw/pcmcia.h | 5 +
hw/pcnet-pci.c | 8 +-
hw/pcnet.c | 8 +-
hw/pcnet.h | 7 +-
hw/pcspk.c | 2 +-
hw/petalogix_ml605_mmu.c | 8 +-
hw/petalogix_s3adsp1800_mmu.c | 8 +-
hw/pflash_cfi01.c | 8 +-
hw/pflash_cfi02.c | 8 +-
hw/piix4.c | 2 +-
hw/piix_pci.c | 6 +-
hw/pl011.c | 2 +-
hw/pl031.c | 4 +-
hw/pl110.c | 5 +-
hw/pl181.c | 2 +-
hw/ppc.c | 8 +-
hw/ppc.h | 5 +
hw/ppc/Makefile.objs | 2 +-
hw/ppc/e500.c | 12 +-
hw/ppc/e500plat.c | 2 +-
hw/ppc/mpc8544ds.c | 2 +-
hw/ppc405_boards.c | 10 +-
hw/ppc405_uc.c | 8 +-
hw/ppc440_bamboo.c | 12 +-
hw/ppc4xx.h | 2 +-
hw/ppc4xx_devs.c | 4 +-
hw/ppc4xx_pci.c | 6 +-
hw/ppc_booke.c | 6 +-
hw/ppc_mac.h | 2 +-
hw/ppc_newworld.c | 12 +-
hw/ppc_oldworld.c | 12 +-
hw/ppc_prep.c | 16 +-
hw/ppce500_pci.c | 8 +-
hw/ppce500_spin.c | 4 +-
hw/prep_pci.c | 6 +-
hw/ps2.c | 4 +-
hw/ptimer.c | 4 +-
hw/ptimer.h | 4 +-
hw/puv3.c | 6 +-
hw/pxa.h | 2 +-
hw/pxa2xx.c | 6 +-
hw/pxa2xx_keypad.c | 2 +-
hw/pxa2xx_lcd.c | 6 +-
hw/pxa2xx_timer.c | 4 +-
hw/q35.h | 6 +-
hw/qdev-addr.c | 4 +-
hw/qdev-addr.h | 5 +
hw/qdev-core.h | 10 +-
hw/qdev-monitor.c | 5 +-
hw/qdev-monitor.h | 2 +-
hw/qdev-properties.c | 9 +-
hw/qdev.c | 8 +-
hw/qxl-logger.c | 2 +-
hw/qxl.c | 8 +-
hw/qxl.h | 11 +-
hw/r2d.c | 10 +-
hw/rc4030.c | 2 +-
hw/realview.c | 10 +-
hw/rtl8139.c | 12 +-
hw/s390-virtio-bus.c | 9 +-
hw/s390-virtio-bus.h | 4 +
hw/s390-virtio.c | 14 +-
hw/s390x/event-facility.c | 4 +-
hw/s390x/event-facility.h | 2 +-
hw/s390x/sclp.c | 4 +-
hw/s390x/sclpconsole.c | 3 +-
hw/s390x/sclpquiesce.c | 2 +-
hw/sb16.c | 4 +-
hw/scsi-bus.c | 6 +-
hw/scsi-defs.h | 4 +
hw/scsi-disk.c | 8 +-
hw/scsi-generic.c | 4 +-
hw/scsi.h | 4 +-
hw/sd.c | 4 +-
hw/serial-pci.c | 2 +-
hw/serial.c | 6 +-
hw/serial.h | 8 +-
hw/sga.c | 4 +-
hw/sh7750.c | 4 +-
hw/sh_intc.h | 2 +-
hw/sh_pci.c | 8 +-
hw/sh_serial.c | 4 +-
hw/sh_timer.c | 4 +-
hw/shix.c | 4 +-
hw/slavio_intctl.c | 2 +-
hw/slavio_misc.c | 2 +-
hw/slavio_timer.c | 2 +-
hw/sm501.c | 7 +-
hw/smbios.c | 2 +-
hw/smbus_ich9.c | 18 +-
hw/smc91c111.c | 2 +-
hw/soc_dma.c | 2 +-
hw/soc_dma.h | 8 +-
hw/spapr.c | 18 +-
hw/spapr.h | 2 +-
hw/spapr_events.c | 6 +-
hw/spapr_hcall.c | 6 +-
hw/spapr_iommu.c | 6 +-
hw/spapr_llan.c | 2 +-
hw/spapr_nvram.c | 2 +-
hw/spapr_pci.c | 12 +-
hw/spapr_pci.h | 4 +-
hw/spapr_rtas.c | 6 +-
hw/spapr_vio.c | 8 +-
hw/spapr_vio.h | 2 +-
hw/spapr_vscsi.c | 1 -
hw/spapr_vty.c | 2 +-
hw/spitz.c | 12 +-
hw/ssd0303.c | 2 +-
hw/ssd0323.c | 2 +-
hw/ssi-sd.c | 2 +-
hw/stellaris.c | 6 +-
hw/stellaris_enet.c | 2 +-
hw/stellaris_input.c | 2 +-
hw/stream.h | 2 +-
hw/strongarm.c | 5 +-
hw/strongarm.h | 2 +-
hw/sun4c_intctl.c | 2 +-
hw/sun4m.c | 8 +-
hw/sun4u.c | 12 +-
hw/sysbus.c | 4 +-
hw/sysbus.h | 2 +-
hw/tc6393xb.c | 6 +-
hw/tcx.c | 5 +-
hw/tosa.c | 6 +-
hw/tsc2005.c | 4 +-
hw/tsc210x.c | 4 +-
hw/tusb6010.c | 2 +-
hw/twl92230.c | 6 +-
uboot_image.h => hw/uboot_image.h | 0
hw/unin_pci.c | 4 +-
hw/usb.h | 2 +-
hw/usb/bus.c | 4 +-
hw/usb/combined-packet.c | 2 +-
hw/usb/core.c | 2 +-
hw/usb/dev-bluetooth.c | 2 +-
hw/usb/dev-hid.c | 4 +-
hw/usb/dev-network.c | 9 +-
hw/usb/dev-serial.c | 4 +-
hw/usb/dev-smartcard-reader.c | 4 +-
hw/usb/dev-storage.c | 12 +-
hw/usb/dev-uas.c | 4 +-
hw/usb/dev-wacom.c | 2 +-
hw/usb/hcd-ehci-pci.c | 4 +-
hw/usb/hcd-ehci.h | 12 +-
hw/usb/hcd-musb.c | 2 +-
hw/usb/hcd-ohci.c | 4 +-
hw/usb/hcd-uhci.c | 8 +-
hw/usb/hcd-xhci.c | 8 +-
hw/usb/host-bsd.c | 2 +-
hw/usb/host-linux.c | 6 +-
hw/usb/host-stub.c | 4 +-
hw/usb/libhw.c | 4 +-
hw/usb/redirect.c | 8 +-
hw/versatile_pci.c | 6 +-
hw/versatilepb.c | 10 +-
hw/vexpress.c | 8 +-
hw/vfio_pci.c | 20 +-
hw/vga-isa-mm.c | 6 +-
hw/vga-isa.c | 6 +-
hw/vga-pci.c | 8 +-
hw/vga.c | 8 +-
hw/vga_int.h | 8 +-
hw/vhost.c | 4 +-
hw/vhost.h | 2 +-
hw/vhost_net.c | 4 +-
hw/vhost_net.h | 2 +-
hw/virtex_ml507.c | 11 +-
hw/virtio-balloon.c | 8 +-
hw/virtio-balloon.h | 2 +-
hw/virtio-blk.c | 4 +-
hw/virtio-console.c | 4 +-
hw/virtio-net.c | 8 +-
hw/virtio-net.h | 30 +-
hw/virtio-pci.c | 15 +-
hw/virtio-rng.c | 2 +-
hw/virtio-scsi.h | 3 +-
hw/virtio-serial-bus.c | 6 +-
hw/virtio.c | 4 +-
hw/virtio.h | 6 +-
hw/vmmouse.c | 2 +-
hw/vmport.c | 2 +-
hw/vmware_vga.c | 4 +-
hw/vt82c686.c | 10 +-
hw/watchdog.c | 12 +-
hw/watchdog.h | 2 +-
hw/wdt_i6300esb.c | 4 +-
hw/wdt_ib700.c | 2 +-
hw/xen-host-pci-device.h | 2 +-
hw/xen_apic.c | 2 +-
hw/xen_backend.c | 4 +-
hw/xen_backend.h | 5 +-
hw/xen_common.h | 2 +-
hw/xen_console.c | 2 +-
hw/xen_devconfig.c | 2 +-
hw/xen_disk.c | 3 +-
hw/xen_domainbuild.c | 4 +-
hw/xen_machine_pv.c | 2 +-
hw/xen_nic.c | 3 +-
hw/xen_platform.c | 5 +-
hw/xen_pt.c | 6 +-
hw/xen_pt.h | 2 +-
hw/xen_pt_config_init.c | 2 +-
hw/xenfb.c | 4 +-
hw/xgmac.c | 6 +-
hw/xilinx.h | 8 +-
hw/xilinx_axidma.c | 5 +-
hw/xilinx_axienet.c | 5 +-
hw/xilinx_ethlite.c | 2 +-
hw/xilinx_spi.c | 4 +-
hw/xilinx_spips.c | 6 +-
hw/xilinx_timer.c | 2 +-
hw/xilinx_uartlite.c | 2 +-
hw/xilinx_zynq.c | 8 +-
hw/xio3130_downstream.c | 6 +-
hw/xio3130_downstream.h | 2 +-
hw/xio3130_upstream.c | 6 +-
hw/xio3130_upstream.h | 2 +-
hw/xtensa_lx60.c | 11 +-
hw/xtensa_pic.c | 4 +-
hw/xtensa_sim.c | 6 +-
hw/z2.c | 8 +-
hw/zynq_slcr.c | 4 +-
aes.h => include/block/aes.h | 0
qemu-aio.h => include/block/aio.h | 4 +-
block.h => include/block/block.h | 8 +-
block_int.h => include/block/block_int.h | 14 +-
blockjob.h => include/block/blockjob.h | 2 +-
qemu-coroutine.h => include/block/coroutine.h | 4 +-
.../block/coroutine_int.h | 4 +-
nbd.h => include/block/nbd.h | 0
thread-pool.h => include/block/thread-pool.h | 8 +-
include/bt/bt.h | 20 +
qemu-char.h => include/char/char.h | 14 +-
config.h => include/config.h | 0
dis-asm.h => include/disas/bfd.h | 0
disas.h => include/disas/disas.h | 0
elf.h => include/elf.h | 0
exec-memory.h => include/exec/address-spaces.h | 2 +-
cpu-all.h => include/exec/cpu-all.h | 6 +-
cpu-common.h => include/exec/cpu-common.h | 8 +-
cpu-defs.h => include/exec/cpu-defs.h | 6 +-
cputlb.h => include/exec/cputlb.h | 0
def-helper.h => include/exec/def-helper.h | 0
exec-all.h => include/exec/exec-all.h | 14 +-
gdbstub.h => include/exec/gdbstub.h | 0
gen-icount.h => include/exec/gen-icount.h | 7 +-
hwaddr.h => include/exec/hwaddr.h | 0
ioport.h => include/exec/ioport.h | 2 +-
iorange.h => include/exec/iorange.h | 0
.../exec/memory-internal.h | 0
memory.h => include/exec/memory.h | 12 +-
poison.h => include/exec/poison.h | 0
softmmu-semi.h => include/exec/softmmu-semi.h | 4 +
softmmu_defs.h => include/exec/softmmu_defs.h | 0
softmmu_exec.h => include/exec/softmmu_exec.h | 58 +--
softmmu_header.h => include/exec/softmmu_header.h | 0
.../exec/softmmu_template.h | 4 +-
qemu-lock.h => include/exec/spinlock.h | 0
qemu-user-types.h => include/exec/user/abitypes.h | 0
thunk.h => include/exec/user/thunk.h | 0
{fpu => include/fpu}/softfloat.h | 2 +-
libfdt_env.h => include/libfdt_env.h | 2 +-
block-migration.h => include/migration/block.h | 0
migration.h => include/migration/migration.h | 8 +-
include/{qemu => migration}/page_cache.h | 0
qemu-file.h => include/migration/qemu-file.h | 0
vmstate.h => include/migration/vmstate.h | 0
monitor.h => include/monitor/monitor.h | 9 +-
readline.h => include/monitor/readline.h | 0
{net => include/net}/checksum.h | 0
net.h => include/net/net.h | 25 +-
{net => include/net}/queue.h | 0
{net => include/net}/slirp.h | 4 +-
include/net/tap.h | 67 ++++
.../qapi/dealloc-visitor.h | 2 +-
error.h => include/qapi/error.h | 2 +-
{qapi => include/qapi}/opts-visitor.h | 4 +-
{qapi => include/qapi}/qmp-input-visitor.h | 4 +-
{qapi => include/qapi}/qmp-output-visitor.h | 4 +-
qapi/qmp-core.h => include/qapi/qmp/dispatch.h | 6 +-
json-lexer.h => include/qapi/qmp/json-lexer.h | 4 +-
json-parser.h => include/qapi/qmp/json-parser.h | 4 +-
.../qapi/qmp/json-streamer.h | 4 +-
qbool.h => include/qapi/qmp/qbool.h | 2 +-
qdict.h => include/qapi/qmp/qdict.h | 6 +-
qerror.h => include/qapi/qmp/qerror.h | 8 +-
qfloat.h => include/qapi/qmp/qfloat.h | 2 +-
qint.h => include/qapi/qmp/qint.h | 2 +-
qjson.h => include/qapi/qmp/qjson.h | 6 +-
qlist.h => include/qapi/qmp/qlist.h | 6 +-
qobject.h => include/qapi/qmp/qobject.h | 0
qstring.h => include/qapi/qmp/qstring.h | 2 +-
qemu-objects.h => include/qapi/qmp/types.h | 16 +-
{qapi => include/qapi}/string-input-visitor.h | 2 +-
{qapi => include/qapi}/string-output-visitor.h | 2 +-
include/qapi/visitor-impl.h | 63 +++
qapi/qapi-visit-core.h => include/qapi/visitor.h | 42 +-
qemu-common.h => include/qemu-common.h | 14 +-
acl.h => include/qemu/acl.h | 2 +-
qemu-barrier.h => include/qemu/atomic.h | 2 +-
bitmap.h => include/qemu/bitmap.h | 2 +-
bitops.h => include/qemu/bitops.h | 0
bswap.h => include/qemu/bswap.h | 2 +-
cache-utils.h => include/qemu/cache-utils.h | 0
compatfd.h => include/qemu/compatfd.h | 0
compiler.h => include/qemu/compiler.h | 0
qemu-config.h => include/qemu/config-file.h | 5 +-
envlist.h => include/qemu/envlist.h | 0
qemu-error.h => include/qemu/error-report.h | 0
event_notifier.h => include/qemu/event_notifier.h | 0
host-utils.h => include/qemu/host-utils.h | 6 +-
int128.h => include/qemu/int128.h | 0
iov.h => include/qemu/iov.h | 5 +
qemu-log.h => include/qemu/log.h | 2 +-
main-loop.h => include/qemu/main-loop.h | 2 +-
module.h => include/qemu/module.h | 0
notify.h => include/qemu/notify.h | 2 +-
qemu-option.h => include/qemu/option.h | 6 +-
.../qemu/option_int.h | 3 +-
osdep.h => include/qemu/osdep.h | 0
qemu-queue.h => include/qemu/queue.h | 2 +-
range.h => include/qemu/range.h | 0
include/qemu/rng-random.h | 2 +-
include/qemu/rng.h | 4 +-
qemu_socket.h => include/qemu/sockets.h | 6 +-
qemu-thread-posix.h => include/qemu/thread-posix.h | 0
qemu-thread-win32.h => include/qemu/thread-win32.h | 0
qemu-thread.h => include/qemu/thread.h | 4 +-
qemu-timer.h => include/qemu/timer.h | 4 +-
qemu-tls.h => include/qemu/tls.h | 0
qemu-types.h => include/qemu/typedefs.h | 0
uri.h => include/qemu/uri.h | 0
qemu-xattr.h => include/qemu/xattr.h | 0
include/{qemu => qom}/cpu.h | 4 +-
include/{qemu => qom}/object.h | 2 +-
include/{qemu => qom}/qom-qobject.h | 2 +-
arch_init.h => include/sysemu/arch_init.h | 0
balloon.h => include/sysemu/balloon.h | 2 +-
blockdev.h => include/sysemu/blockdev.h | 6 +-
cpus.h => include/sysemu/cpus.h | 0
device_tree.h => include/sysemu/device_tree.h | 0
dma.h => include/sysemu/dma.h | 6 +-
dump.h => include/sysemu/dump.h | 0
kvm.h => include/sysemu/kvm.h | 2 +-
.../sysemu/memory_mapping.h | 2 +-
qemu-os-posix.h => include/sysemu/os-posix.h | 0
qemu-os-win32.h => include/sysemu/os-win32.h | 0
qtest.h => include/sysemu/qtest.h | 0
qemu-seccomp.h => include/sysemu/seccomp.h | 2 +-
sysemu.h => include/sysemu/sysemu.h | 12 +-
xen-mapcache.h => include/sysemu/xen-mapcache.h | 0
console.h => include/ui/console.h | 11 +-
{hw => include/ui}/pixel_ops.h | 0
qemu-pixman.h => include/ui/qemu-pixman.h | 0
{ui => include/ui}/qemu-spice.h | 9 +-
{ui => include/ui}/spice-display.h | 6 +-
iohandler.c | 7 +-
ioport.c | 4 +-
iov.c | 2 +-
json-lexer.c | 10 +-
json-parser.c | 18 +-
json-streamer.c | 10 +-
kvm-all.c | 24 +-
kvm-stub.c | 6 +-
alpha.ld => ldscripts/alpha.ld | 0
arm.ld => ldscripts/arm.ld | 0
hppa.ld => ldscripts/hppa.ld | 0
i386.ld => ldscripts/i386.ld | 0
ia64.ld => ldscripts/ia64.ld | 0
m68k.ld => ldscripts/m68k.ld | 0
mips.ld => ldscripts/mips.ld | 0
ppc.ld => ldscripts/ppc.ld | 0
ppc64.ld => ldscripts/ppc64.ld | 0
s390.ld => ldscripts/s390.ld | 0
sparc.ld => ldscripts/sparc.ld | 0
sparc64.ld => ldscripts/sparc64.ld | 0
x86_64.ld => ldscripts/x86_64.ld | 0
libcacard/event.c | 2 +-
libcacard/vreader.c | 2 +-
libcacard/vscclient.c | 4 +-
linux-user/arm/nwfpe/double_cpdo.c | 2 +-
linux-user/arm/nwfpe/extended_cpdo.c | 2 +-
linux-user/arm/nwfpe/fpa11.h | 2 +-
linux-user/arm/nwfpe/fpa11_cpdt.c | 2 +-
linux-user/arm/nwfpe/fpa11_cprt.c | 2 +-
linux-user/arm/nwfpe/fpopcode.c | 2 +-
linux-user/arm/nwfpe/single_cpdo.c | 2 +-
linux-user/cris/syscall.h | 5 +
linux-user/elfload.c | 2 +-
linux-user/main.c | 6 +-
linux-user/microblaze/syscall.h | 6 +
linux-user/qemu.h | 10 +-
linux-user/syscall.c | 2 +-
linux-user/syscall_defs.h | 6 +
main-loop.c | 8 +-
memory.c | 12 +-
memory_mapping-stub.c | 4 +-
memory_mapping.c | 4 +-
migration-exec.c | 7 +-
migration-fd.c | 11 +-
migration-tcp.c | 7 +-
migration-unix.c | 7 +-
migration.c | 12 +-
module.c | 4 +-
monitor.c | 52 +--
nbd.c | 10 +-
net/Makefile.objs | 2 +-
net/clients.h | 2 +-
net/dump.c | 6 +-
net/hub.c | 6 +-
net/hub.h | 2 -
net.c => net/net.c | 17 +-
net/queue.c | 4 +-
net/slirp.c | 7 +-
net/socket.c | 13 +-
net/tap-aix.c | 2 +-
net/tap-bsd.c | 6 +-
net/tap-haiku.c | 2 +-
net/tap-linux.c | 15 +-
net/tap-linux.h | 20 +-
net/tap-solaris.c | 6 +-
net/tap-win32.c | 8 +-
net/tap.c | 13 +-
net/{tap.h => tap_int.h} | 18 +-
net/util.c | 2 +-
net/vde.c | 5 +-
notify.c | 2 +-
os-posix.c | 2 +-
os-win32.c | 2 +-
osdep.c | 4 +-
oslib-posix.c | 4 +-
oslib-win32.c | 6 +-
page_cache.c | 2 +-
pixman | 2 +-
qapi/opts-visitor.c | 10 +-
qapi/qapi-dealloc-visitor.c | 7 +-
qapi/qapi-types-core.h | 21 -
qapi/qapi-visit-core.c | 6 +-
qapi/qapi-visit-impl.h | 23 --
qapi/qmp-dispatch.c | 10 +-
qapi/qmp-input-visitor.c | 10 +-
qapi/qmp-output-visitor.c | 10 +-
qapi/qmp-registry.c | 2 +-
qapi/string-input-visitor.c | 6 +-
qapi/string-output-visitor.c | 6 +-
qbool.c | 4 +-
qdict.c | 14 +-
qemu-bridge-helper.c | 2 +-
qemu-char.c | 13 +-
qemu-config.c | 8 +-
qemu-coroutine-io.c | 6 +-
qemu-coroutine-lock.c | 8 +-
qemu-coroutine-sleep.c | 4 +-
qemu-coroutine.c | 4 +-
qemu-error.c | 2 +-
qemu-img.c | 12 +-
qemu-io.c | 4 +-
qemu-log.c | 2 +-
qemu-nbd.c | 4 +-
qemu-option.c | 10 +-
qemu-progress.c | 4 +-
qemu-seccomp.c | 2 +-
qemu-sockets.c | 6 +-
qemu-thread-posix.c | 2 +-
qemu-thread-win32.c | 2 +-
qemu-timer-common.c | 2 +-
qemu-timer.c | 11 +-
qemu-tool.c | 14 +-
qemu-user.c | 2 +-
qerror.c | 6 +-
qfloat.c | 4 +-
qga/Makefile.objs | 2 +-
qga/channel-posix.c | 4 +-
qga/commands-posix.c | 6 +-
qga/commands-win32.c | 2 +-
qga/commands.c | 2 +-
qga/guest-agent-core.h | 2 +-
qemu-ga.c => qga/main.c | 14 +-
qapi-schema-guest.json => qga/qapi-schema.json | 0
qint.c | 4 +-
qjson.c | 18 +-
qlist.c | 6 +-
qmp.c | 11 +-
qom/container.c | 4 +-
qom/cpu.c | 2 +-
qom/object.c | 15 +-
qom/qom-qobject.c | 6 +-
qstring.c | 4 +-
qtest.c | 12 +-
readline.c | 4 +-
rules.mak | 5 +-
savevm.c | 23 +-
scripts/feature_to_c.sh | 2 +-
scripts/get_maintainer.pl | 25 +-
scripts/qapi-commands.py | 15 +-
scripts/qapi-types.py | 2 +-
scripts/qapi-visit.py | 3 +-
slirp/bootp.h | 4 +
slirp/if.c | 2 +-
slirp/ip_input.c | 2 +-
slirp/main.h | 4 +
slirp/misc.c | 4 +-
slirp/sbuf.c | 2 +-
slirp/slirp.c | 4 +-
slirp/slirp.h | 4 +-
slirp/tftp.h | 4 +
spice-qemu-char.c | 3 +-
stubs/arch-query-cpu-def.c | 4 +-
stubs/fd-register.c | 2 +-
stubs/fdset-add-fd.c | 2 +-
stubs/fdset-find-fd.c | 2 +-
stubs/fdset-get-fd.c | 2 +-
stubs/fdset-remove-fd.c | 2 +-
stubs/get-fd.c | 2 +-
stubs/set-fd-handler.c | 2 +-
target-alpha/cpu-qom.h | 2 +-
target-alpha/cpu.h | 8 +-
target-alpha/fpu_helper.c | 2 +-
target-alpha/helper.c | 2 +-
target-alpha/helper.h | 4 +-
target-alpha/int_helper.c | 2 +-
target-alpha/mem_helper.c | 10 +-
target-alpha/sys_helper.c | 4 +-
target-alpha/translate.c | 8 +-
target-arm/arm-semi.c | 4 +-
target-arm/cpu-qom.h | 2 +-
target-arm/cpu.c | 2 +-
target-arm/cpu.h | 8 +-
target-arm/helper.c | 8 +-
target-arm/helper.h | 4 +-
target-arm/iwmmxt_helper.c | 2 +-
target-arm/neon_helper.c | 2 +-
target-arm/op_helper.c | 10 +-
target-arm/translate.c | 6 +-
target-cris/cpu-qom.h | 2 +-
target-cris/cpu.h | 6 +-
target-cris/crisv32-decode.h | 4 +
target-cris/helper.c | 2 +-
target-cris/helper.h | 4 +-
target-cris/op_helper.c | 12 +-
target-cris/translate.c | 4 +-
target-i386/arch_dump.c | 4 +-
target-i386/arch_memory_mapping.c | 4 +-
target-i386/cpu-qom.h | 4 +-
target-i386/cpu.c | 13 +-
target-i386/cpu.h | 8 +-
target-i386/excp_helper.c | 4 +-
target-i386/fpu_helper.c | 2 +-
target-i386/helper.c | 6 +-
target-i386/helper.h | 4 +-
target-i386/int_helper.c | 2 +-
target-i386/ioport-user.c | 2 +-
target-i386/kvm.c | 13 +-
target-i386/kvm_i386.h | 2 +-
target-i386/machine.c | 2 +-
target-i386/mem_helper.c | 10 +-
target-i386/misc_helper.c | 4 +-
target-i386/seg_helper.c | 4 +-
target-i386/svm_helper.c | 4 +-
target-i386/translate.c | 4 +-
target-lm32/cpu-qom.h | 2 +-
target-lm32/cpu.h | 6 +-
target-lm32/helper.c | 2 +-
target-lm32/helper.h | 4 +-
target-lm32/op_helper.c | 10 +-
target-lm32/translate.c | 4 +-
target-m68k/cpu-qom.h | 2 +-
target-m68k/cpu.h | 8 +-
target-m68k/helper.c | 2 +-
target-m68k/helpers.h | 4 +-
target-m68k/m68k-semi.c | 6 +-
target-m68k/op_helper.c | 10 +-
target-m68k/translate.c | 6 +-
target-microblaze/cpu-qom.h | 2 +-
target-microblaze/cpu.h | 8 +-
target-microblaze/helper.c | 4 +-
target-microblaze/helper.h | 4 +-
target-microblaze/op_helper.c | 12 +-
target-microblaze/translate.c | 4 +-
target-mips/cpu-qom.h | 2 +-
target-mips/cpu.h | 8 +-
target-mips/helper.h | 4 +-
target-mips/op_helper.c | 12 +-
target-mips/translate.c | 4 +-
target-openrisc/cpu.h | 12 +-
target-openrisc/helper.h | 4 +-
target-openrisc/int_helper.c | 2 +-
target-openrisc/interrupt.c | 4 +-
target-openrisc/mmu.c | 4 +-
target-openrisc/mmu_helper.c | 10 +-
target-openrisc/translate.c | 10 +-
target-ppc/cpu-qom.h | 2 +-
target-ppc/cpu.h | 8 +-
target-ppc/helper.c | 4 +-
target-ppc/helper.h | 4 +-
target-ppc/int_helper.c | 2 +-
target-ppc/kvm.c | 10 +-
target-ppc/kvm_ppc.c | 4 +-
target-ppc/kvm_ppc.h | 2 +-
target-ppc/machine.c | 2 +-
target-ppc/mem_helper.c | 12 +-
target-ppc/mmu_helper.c | 2 +-
target-ppc/translate.c | 6 +-
target-ppc/translate_init.c | 8 +-
target-s390x/cpu-qom.h | 2 +-
target-s390x/cpu.c | 2 +-
target-s390x/cpu.h | 8 +-
target-s390x/fpu_helper.c | 2 +-
target-s390x/helper.c | 6 +-
target-s390x/helper.h | 4 +-
target-s390x/int_helper.c | 2 +-
target-s390x/interrupt.c | 2 +-
target-s390x/kvm.c | 8 +-
target-s390x/mem_helper.c | 10 +-
target-s390x/misc_helper.c | 12 +-
target-s390x/translate.c | 6 +-
target-sh4/cpu-qom.h | 2 +-
target-sh4/cpu.h | 10 +-
target-sh4/helper.h | 4 +-
target-sh4/op_helper.c | 10 +-
target-sh4/translate.c | 4 +-
target-sparc/cpu-qom.h | 2 +-
target-sparc/cpu.h | 10 +-
target-sparc/helper.c | 4 +-
target-sparc/helper.h | 4 +-
target-sparc/int32_helper.c | 2 +-
target-sparc/ldst_helper.c | 10 +-
target-sparc/machine.c | 2 +-
target-sparc/mmu_helper.c | 2 +-
target-sparc/translate.c | 4 +-
target-unicore32/cpu-qom.h | 2 +-
target-unicore32/cpu.h | 8 +-
target-unicore32/helper.c | 6 +-
target-unicore32/helper.h | 4 +-
target-unicore32/op_helper.c | 8 +-
target-unicore32/translate.c | 6 +-
target-xtensa/core-dc232b.c | 6 +-
target-xtensa/core-dc233c.c | 6 +-
target-xtensa/core-fsf.c | 6 +-
target-xtensa/cpu-qom.h | 2 +-
target-xtensa/cpu.h | 6 +-
target-xtensa/helper.c | 6 +-
target-xtensa/helper.h | 4 +-
target-xtensa/op_helper.c | 10 +-
target-xtensa/translate.c | 10 +-
target-xtensa/xtensa-semi.c | 2 +-
tcg/arm/tcg-target.c | 2 +-
tcg/arm/tcg-target.h | 3 +
tcg/hppa/tcg-target.c | 2 +-
tcg/hppa/tcg-target.h | 3 +
tcg/i386/tcg-target.c | 2 +-
tcg/i386/tcg-target.h | 3 +
tcg/ia64/tcg-target.c | 2 +-
tcg/ia64/tcg-target.h | 3 +
tcg/mips/tcg-target.c | 2 +-
tcg/mips/tcg-target.h | 3 +
tcg/ppc/tcg-target.c | 2 +-
tcg/ppc/tcg-target.h | 3 +
tcg/ppc64/tcg-target.c | 2 +-
tcg/ppc64/tcg-target.h | 3 +
tcg/s390/tcg-target.c | 2 +-
tcg/s390/tcg-target.h | 3 +
tcg/sparc/tcg-target.c | 2 +-
tcg/sparc/tcg-target.h | 3 +
tcg/tcg.c | 6 +-
tci.c | 2 +-
tests/check-qdict.c | 6 +-
tests/check-qfloat.c | 2 +-
tests/check-qint.c | 2 +-
tests/check-qjson.c | 14 +-
tests/check-qlist.c | 4 +-
tests/check-qstring.c | 2 +-
tests/libqtest.c | 4 +-
tests/tcg/cris/crisutils.h | 5 +
tests/tcg/test-i386-fprem.c | 4 +-
tests/tcg/test-i386.c | 2 +-
tests/test-aio.c | 2 +-
tests/test-coroutine.c | 2 +-
tests/test-iov.c | 4 +-
tests/test-qmp-commands.c | 6 +-
tests/test-qmp-input-strict.c | 2 +-
tests/test-qmp-input-visitor.c | 2 +-
tests/test-qmp-output-visitor.c | 2 +-
tests/test-string-input-visitor.c | 2 +-
tests/test-string-output-visitor.c | 2 +-
tests/test-thread-pool.c | 6 +-
tests/test-visitor-serialization.c | 2 +-
thread-pool.c | 14 +-
thunk.c | 2 +-
trace/simple.c | 2 +-
translate-all.c | 10 +-
ui/Makefile.objs | 7 +-
ui/cocoa.m | 4 +-
console.c => ui/console.c | 5 +-
ui/curses.c | 4 +-
ui/curses_keys.h | 5 +
cursor.c => ui/cursor.c | 2 +-
cursor_hidden.xpm => ui/cursor_hidden.xpm | 0
cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm | 0
ui/d3des.h | 4 +
input.c => ui/input.c | 9 +-
ui/keymaps.c | 2 +-
qemu-pixman.c => ui/qemu-pixman.c | 2 +-
qemu-x509.h => ui/qemu-x509.h | 0
ui/sdl.c | 4 +-
ui/sdl_zoom.c | 2 +-
ui/spice-core.c | 28 +-
ui/spice-display.c | 14 +-
ui/spice-input.c | 4 +-
vgafont.h => ui/vgafont.h | 0
ui/vnc-auth-sasl.h | 2 +-
ui/vnc-enc-tight.c | 4 +-
ui/vnc-jobs.c | 2 +-
ui/vnc-palette.h | 4 +-
ui/vnc-tls.c | 2 +-
ui/vnc-tls.h | 2 +-
ui/vnc.c | 12 +-
ui/vnc.h | 10 +-
uri.c | 2 +-
user-exec.c | 2 +-
vl.c | 54 +--
xen-all.c | 8 +-
xen-mapcache.c | 6 +-
xen-stub.c | 2 +-
1124 files changed, 3142 insertions(+), 3427 deletions(-)
delete mode 100644 Makefile.dis
delete mode 100644 Makefile.user
delete mode 100644 a.out.h
delete mode 100644 bt-host.h
create mode 100644 disas/Makefile.objs
rename alpha-dis.c => disas/alpha.c (99%)
rename arm-dis.c => disas/arm.c (99%)
rename cris-dis.c => disas/cris.c (99%)
rename hppa-dis.c => disas/hppa.c (99%)
rename i386-dis.c => disas/i386.c (99%)
rename ia64-dis.c => disas/ia64.c (99%)
rename lm32-dis.c => disas/lm32.c (99%)
rename m68k-dis.c => disas/m68k.c (99%)
rename microblaze-dis.c => disas/microblaze.c (99%)
rename mips-dis.c => disas/mips.c (99%)
rename ppc-dis.c => disas/ppc.c (99%)
rename s390-dis.c => disas/s390.c (99%)
rename sh4-dis.c => disas/sh4.c (99%)
rename sparc-dis.c => disas/sparc.c (99%)
rename tci-dis.c => disas/tci.c (98%)
create mode 100644 hw/pci/Makefile.objs
rename hw/{ => pci}/msi.c (99%)
rename hw/{ => pci}/msi.h (98%)
rename hw/{ => pci}/msix.c (99%)
rename hw/{ => pci}/msix.h (98%)
rename hw/{ => pci}/pci-hotplug.c (96%)
rename hw/{ => pci}/pci-stub.c (94%)
rename hw/{ => pci}/pci.c (99%)
rename hw/{ => pci}/pci.h (99%)
rename hw/{ => pci}/pci_bridge.c (99%)
rename hw/{ => pci}/pci_bridge.h (98%)
rename hw/{pci_internals.h => pci/pci_bus.h} (79%)
rename hw/{ => pci}/pci_host.c (99%)
rename hw/{ => pci}/pci_host.h (99%)
rename hw/{ => pci}/pci_ids.h (98%)
rename hw/{ => pci}/pci_regs.h (100%)
rename hw/{ => pci}/pcie.c (99%)
rename hw/{ => pci}/pcie.h (98%)
rename hw/{ => pci}/pcie_aer.c (99%)
rename hw/{ => pci}/pcie_aer.h (99%)
rename hw/{ => pci}/pcie_host.c (97%)
rename hw/{ => pci}/pcie_host.h (96%)
rename hw/{ => pci}/pcie_port.c (99%)
rename hw/{ => pci}/pcie_port.h (96%)
rename hw/{ => pci}/pcie_regs.h (100%)
rename hw/{ => pci}/shpc.c (99%)
rename hw/{ => pci}/shpc.h (95%)
rename hw/{ => pci}/slotid_cap.c (95%)
rename hw/{ => pci}/slotid_cap.h (100%)
rename uboot_image.h => hw/uboot_image.h (100%)
rename aes.h => include/block/aes.h (100%)
rename qemu-aio.h => include/block/aio.h (99%)
rename block.h => include/block/block.h (99%)
rename block_int.h => include/block/block_int.h (98%)
rename blockjob.h => include/block/blockjob.h (99%)
rename qemu-coroutine.h => include/block/coroutine.h (99%)
rename qemu-coroutine-int.h => include/block/coroutine_int.h (96%)
rename nbd.h => include/block/nbd.h (100%)
rename thread-pool.h => include/block/thread-pool.h (88%)
create mode 100644 include/bt/bt.h
rename qemu-char.h => include/char/char.h (97%)
rename config.h => include/config.h (100%)
rename dis-asm.h => include/disas/bfd.h (100%)
rename disas.h => include/disas/disas.h (100%)
rename elf.h => include/elf.h (100%)
rename exec-memory.h => include/exec/address-spaces.h (97%)
rename cpu-all.h => include/exec/cpu-all.h (99%)
rename cpu-common.h => include/exec/cpu-common.h (97%)
rename cpu-defs.h => include/exec/cpu-defs.h (99%)
rename cputlb.h => include/exec/cputlb.h (100%)
rename def-helper.h => include/exec/def-helper.h (100%)
rename exec-all.h => include/exec/exec-all.h (98%)
rename gdbstub.h => include/exec/gdbstub.h (100%)
rename gen-icount.h => include/exec/gen-icount.h (94%)
rename hwaddr.h => include/exec/hwaddr.h (100%)
rename ioport.h => include/exec/ioport.h (99%)
rename iorange.h => include/exec/iorange.h (100%)
rename memory-internal.h => include/exec/memory-internal.h (100%)
rename memory.h => include/exec/memory.h (99%)
rename poison.h => include/exec/poison.h (100%)
rename softmmu-semi.h => include/exec/softmmu-semi.h (97%)
rename softmmu_defs.h => include/exec/softmmu_defs.h (100%)
rename softmmu_exec.h => include/exec/softmmu_exec.h (72%)
rename softmmu_header.h => include/exec/softmmu_header.h (100%)
rename softmmu_template.h => include/exec/softmmu_template.h (99%)
rename qemu-lock.h => include/exec/spinlock.h (100%)
rename qemu-user-types.h => include/exec/user/abitypes.h (100%)
rename thunk.h => include/exec/user/thunk.h (100%)
rename {fpu => include/fpu}/softfloat.h (99%)
rename libfdt_env.h => include/libfdt_env.h (97%)
rename block-migration.h => include/migration/block.h (100%)
rename migration.h => include/migration/migration.h (97%)
rename include/{qemu => migration}/page_cache.h (100%)
rename qemu-file.h => include/migration/qemu-file.h (100%)
rename vmstate.h => include/migration/vmstate.h (100%)
rename monitor.h => include/monitor/monitor.h (96%)
rename readline.h => include/monitor/readline.h (100%)
rename {net => include/net}/checksum.h (100%)
rename net.h => include/net/net.h (90%)
rename {net => include/net}/queue.h (100%)
rename {net => include/net}/slirp.h (96%)
create mode 100644 include/net/tap.h
rename qapi/qapi-dealloc-visitor.h => include/qapi/dealloc-visitor.h (95%)
rename error.h => include/qapi/error.h (98%)
rename {qapi => include/qapi}/opts-visitor.h (93%)
rename {qapi => include/qapi}/qmp-input-visitor.h (91%)
rename {qapi => include/qapi}/qmp-output-visitor.h (91%)
rename qapi/qmp-core.h => include/qapi/qmp/dispatch.h (93%)
rename json-lexer.h => include/qapi/qmp/json-lexer.h (94%)
rename json-parser.h => include/qapi/qmp/json-parser.h (90%)
rename json-streamer.h => include/qapi/qmp/json-streamer.h (93%)
rename qbool.h => include/qapi/qmp/qbool.h (94%)
rename qdict.h => include/qapi/qmp/qdict.h (96%)
rename qerror.h => include/qapi/qmp/qerror.h (98%)
rename qfloat.h => include/qapi/qmp/qfloat.h (94%)
rename qint.h => include/qapi/qmp/qint.h (94%)
rename qjson.h => include/qapi/qmp/qjson.h (88%)
rename qlist.h => include/qapi/qmp/qlist.h (95%)
rename qobject.h => include/qapi/qmp/qobject.h (100%)
rename qstring.h => include/qapi/qmp/qstring.h (96%)
rename qemu-objects.h => include/qapi/qmp/types.h (60%)
rename {qapi => include/qapi}/string-input-visitor.h (95%)
rename {qapi => include/qapi}/string-output-visitor.h (95%)
create mode 100644 include/qapi/visitor-impl.h
rename qapi/qapi-visit-core.h => include/qapi/visitor.h (52%)
rename qemu-common.h => include/qemu-common.h (98%)
rename acl.h => include/qemu/acl.h (98%)
rename qemu-barrier.h => include/qemu/atomic.h (96%)
rename bitmap.h => include/qemu/bitmap.h (99%)
rename bitops.h => include/qemu/bitops.h (100%)
rename bswap.h => include/qemu/bswap.h (99%)
rename cache-utils.h => include/qemu/cache-utils.h (100%)
rename compatfd.h => include/qemu/compatfd.h (100%)
rename compiler.h => include/qemu/compiler.h (100%)
rename qemu-config.h => include/qemu/config-file.h (91%)
rename envlist.h => include/qemu/envlist.h (100%)
rename qemu-error.h => include/qemu/error-report.h (100%)
rename event_notifier.h => include/qemu/event_notifier.h (100%)
rename host-utils.h => include/qemu/host-utils.h (98%)
rename int128.h => include/qemu/int128.h (100%)
rename iov.h => include/qemu/iov.h (99%)
rename qemu-log.h => include/qemu/log.h (99%)
rename main-loop.h => include/qemu/main-loop.h (99%)
rename module.h => include/qemu/module.h (100%)
rename notify.h => include/qemu/notify.h (97%)
rename qemu-option.h => include/qemu/option.h (98%)
rename qemu-option-internal.h => include/qemu/option_int.h (96%)
rename osdep.h => include/qemu/osdep.h (100%)
rename qemu-queue.h => include/qemu/queue.h (99%)
rename range.h => include/qemu/range.h (100%)
rename qemu_socket.h => include/qemu/sockets.h (96%)
rename qemu-thread-posix.h => include/qemu/thread-posix.h (100%)
rename qemu-thread-win32.h => include/qemu/thread-win32.h (100%)
rename qemu-thread.h => include/qemu/thread.h (96%)
rename qemu-timer.h => include/qemu/timer.h (99%)
rename qemu-tls.h => include/qemu/tls.h (100%)
rename qemu-types.h => include/qemu/typedefs.h (100%)
rename uri.h => include/qemu/uri.h (100%)
rename qemu-xattr.h => include/qemu/xattr.h (100%)
rename include/{qemu => qom}/cpu.h (98%)
rename include/{qemu => qom}/object.h (99%)
rename include/{qemu => qom}/qom-qobject.h (97%)
rename arch_init.h => include/sysemu/arch_init.h (100%)
rename balloon.h => include/sysemu/balloon.h (95%)
rename blockdev.h => include/sysemu/blockdev.h (96%)
rename cpus.h => include/sysemu/cpus.h (100%)
rename device_tree.h => include/sysemu/device_tree.h (100%)
rename dma.h => include/sysemu/dma.h (99%)
rename dump.h => include/sysemu/dump.h (100%)
rename kvm.h => include/sysemu/kvm.h (99%)
rename memory_mapping.h => include/sysemu/memory_mapping.h (98%)
rename qemu-os-posix.h => include/sysemu/os-posix.h (100%)
rename qemu-os-win32.h => include/sysemu/os-win32.h (100%)
rename qtest.h => include/sysemu/qtest.h (100%)
rename qemu-seccomp.h => include/sysemu/seccomp.h (95%)
rename sysemu.h => include/sysemu/sysemu.h (97%)
rename xen-mapcache.h => include/sysemu/xen-mapcache.h (100%)
rename console.h => include/ui/console.h (99%)
rename {hw => include/ui}/pixel_ops.h (100%)
rename qemu-pixman.h => include/ui/qemu-pixman.h (100%)
rename {ui => include/ui}/qemu-spice.h (95%)
rename {ui => include/ui}/spice-display.h (98%)
rename alpha.ld => ldscripts/alpha.ld (100%)
rename arm.ld => ldscripts/arm.ld (100%)
rename hppa.ld => ldscripts/hppa.ld (100%)
rename i386.ld => ldscripts/i386.ld (100%)
rename ia64.ld => ldscripts/ia64.ld (100%)
rename m68k.ld => ldscripts/m68k.ld (100%)
rename mips.ld => ldscripts/mips.ld (100%)
rename ppc.ld => ldscripts/ppc.ld (100%)
rename ppc64.ld => ldscripts/ppc64.ld (100%)
rename s390.ld => ldscripts/s390.ld (100%)
rename sparc.ld => ldscripts/sparc.ld (100%)
rename sparc64.ld => ldscripts/sparc64.ld (100%)
rename x86_64.ld => ldscripts/x86_64.ld (100%)
rename net.c => net/net.c (99%)
rename net/{tap.h => tap_int.h} (77%)
delete mode 100644 qapi/qapi-types-core.h
delete mode 100644 qapi/qapi-visit-impl.h
rename qemu-ga.c => qga/main.c (99%)
rename qapi-schema-guest.json => qga/qapi-schema.json (100%)
rename console.c => ui/console.c (99%)
rename cursor.c => ui/cursor.c (99%)
rename cursor_hidden.xpm => ui/cursor_hidden.xpm (100%)
rename cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm (100%)
rename input.c => ui/input.c (99%)
rename qemu-pixman.c => ui/qemu-pixman.c (98%)
rename qemu-x509.h => ui/qemu-x509.h (100%)
rename vgafont.h => ui/vgafont.h (100%)---
1.8.0.2
PATCH 1/32 libcacard: simplify rules for recursive build
--- Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
Makefile +1 -9
@@ -169,19 +169,11 @@ libqemustub.a: $(stub-obj-y) # Support building shared library libcacard .PHONY: libcacard.la install-libcacard -ifeq ($(LIBTOOL),) -libcacard.la: - @echo "libtool is missing, please install and rerun configure"; exit 1 - -install-libcacard: - @echo "libtool is missing, please install and rerun configure"; exit 1 -else -libcacard.la: $(oslib-obj-y) qemu-timer-common.o $(addsuffix .lo, $(basename $(trace-obj-y))) +libcacard.la: $(oslib-obj-y) qemu-timer-common.o $(trace-obj-y) $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libcacard V="$(V)" TARGET_DIR="$*/" libcacard.la,) install-libcacard: libcacard.la $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libcacard V="$(V)" TARGET_DIR="$*/" install-libcacard,) -endif ######################################################################
Signature · 1 line
1.8.0.2
PATCH 2/32 vscclient: use per-target variables
In reply to Paolo Bonzini--- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
@@ -189,8 +189,9 @@ qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) libqemustub.a qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o +vscclient$(EXESUF): LIBS += $(libcacard_libs) vscclient$(EXESUF): $(libcacard-y) $(oslib-obj-y) $(trace-obj-y) libcacard/vscclient.o libqemustub.a - $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(libcacard_libs) $(LIBS)," LINK $@") + $(call LINK, $^) fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o fsdev/virtio-9p-marshal.o oslib-posix.o $(trace-obj-y) fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap
Signature · 1 line
1.8.0.2
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
@@ -145,8 +145,6 @@ audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS) QEMU_CFLAGS+=$(CURL_CFLAGS) -QEMU_CFLAGS += -I$(SRC_PATH)/include - ui/cocoa.o: ui/cocoa.m ui/sdl.o audio/sdlaudio.o ui/sdl_zoom.o hw/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
configure +1 -2
@@ -278,7 +278,7 @@ QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS" QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS" QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS" QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS" -QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/fpu" +QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include -I\$(SRC_PATH)/fpu" if test "$debug_info" = "yes"; then CFLAGS="-g $CFLAGS" LDFLAGS="-g $LDFLAGS"
@@ -3343,7 +3343,6 @@ fi if test "$slirp" = "yes" ; then echo "CONFIG_SLIRP=y" >> $config_host_mak echo "CONFIG_SMBD_COMMAND=\"$smbd\"" >> $config_host_mak - QEMU_INCLUDES="-I\$(SRC_PATH)/slirp $QEMU_INCLUDES" fi if test "$vde" = "yes" ; then echo "CONFIG_VDE=y" >> $config_host_mak
rules.mak +3 -0
@@ -14,6 +14,9 @@ MAKEFLAGS += -rR # Flags for dependency generation QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d +# Same as -I$(SRC_PATH) -I., but for the nested source/object directories +QEMU_CFLAGS += -I$(<D) -I$(@D) + %.o: %.c $(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
Signature · 1 line
1.8.0.2
PATCH 4/32 build: add $(TARGET_DIR) to "GEN config-target.h" lines
In reply to Paolo Bonzini--- rules.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rules.mak +1 -1
@@ -71,7 +71,7 @@ TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py @test -f $@ || cp $< $@ %.h-timestamp: %.mak - $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, " GEN $*.h") + $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@, " GEN $(TARGET_DIR)$*.h") @cmp $@ $*.h >/dev/null 2>&1 || cp $@ $*.h # will delete the target of a rule if commands exit with a nonzero exit status
Signature · 1 line
1.8.0.2
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
@@ -141,16 +141,6 @@ ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS)) recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) -audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS) - -QEMU_CFLAGS+=$(CURL_CFLAGS) - -ui/cocoa.o: ui/cocoa.m - -ui/sdl.o audio/sdlaudio.o ui/sdl_zoom.o hw/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS) - -ui/vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS) - bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS) version.o: $(SRC_PATH)/version.rc config-host.h
audio/Makefile.objs +3 -0
@@ -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
@@ -18,3 +18,5 @@ endif common-obj-y += stream.o common-obj-y += commit.o common-obj-y += mirror.o + +$(obj)/curl.o: QEMU_CFLAGS+=$(CURL_CFLAGS)
hw/Makefile.objs +2 -0
@@ -204,3 +204,5 @@ ifeq ($(CONFIG_PCI), y) obj-$(CONFIG_KVM) += ivshmem.o obj-$(CONFIG_LINUX) += vfio_pci.o endif + +$(obj)/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
ui/Makefile.objs +5 -0
@@ -12,3 +12,8 @@ common-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o common-obj-$(CONFIG_COCOA) += cocoa.o common-obj-$(CONFIG_CURSES) += curses.o common-obj-$(CONFIG_VNC) += $(vnc-obj-y) + +$(obj)/sdl.o $(obj)/sdl_zoom.o: QEMU_CFLAGS += $(SDL_CFLAGS) +$(obj)/vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS) + +$(obj)/cocoa.o: $(SRC_PATH)/$(obj)/cocoa.m
Signature · 1 line
1.8.0.2
PATCH 6/32 build: create ldscripts/
In reply to Paolo Bonzini--- configure | 2 +- alpha.ld => ldscripts/alpha.ld | 0 arm.ld => ldscripts/arm.ld | 0 hppa.ld => ldscripts/hppa.ld | 0 i386.ld => ldscripts/i386.ld | 0 ia64.ld => ldscripts/ia64.ld | 0 m68k.ld => ldscripts/m68k.ld | 0 mips.ld => ldscripts/mips.ld | 0 ppc.ld => ldscripts/ppc.ld | 0 ppc64.ld => ldscripts/ppc64.ld | 0 s390.ld => ldscripts/s390.ld | 0 sparc.ld => ldscripts/sparc.ld | 0 sparc64.ld => ldscripts/sparc64.ld | 0 x86_64.ld => ldscripts/x86_64.ld | 0 14 files changed, 1 insertion(+), 1 deletion(-) rename alpha.ld => ldscripts/alpha.ld (100%) rename arm.ld => ldscripts/arm.ld (100%) rename hppa.ld => ldscripts/hppa.ld (100%) rename i386.ld => ldscripts/i386.ld (100%) rename ia64.ld => ldscripts/ia64.ld (100%) rename m68k.ld => ldscripts/m68k.ld (100%) rename mips.ld => ldscripts/mips.ld (100%) rename ppc.ld => ldscripts/ppc.ld (100%) rename ppc64.ld => ldscripts/ppc64.ld (100%) rename s390.ld => ldscripts/s390.ld (100%) rename sparc.ld => ldscripts/sparc.ld (100%) rename sparc64.ld => ldscripts/sparc64.ld (100%) rename x86_64.ld => ldscripts/x86_64.ld (100%)
configure +1 -1
@@ -4158,7 +4158,7 @@ fi if test "$ARCH" = "tci"; then linker_script="" else - linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld" + linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld" fi if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
ldscripts/alpha.ld renamed from alpha.ld +0 -0
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.8.0.2
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-disas.* config-host.* config-target.* trace.h
Makefile +5 -4
@@ -99,6 +99,7 @@ defconfig: rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK) -include config-all-devices.mak +-include config-all-disas.mak all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all
@@ -129,9 +130,9 @@ $(SRC_PATH)/pixman/configure: $(SUBDIR_RULES): libqemustub.a -$(filter %-softmmu,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(common-obj-y) $(extra-obj-y) subdir-libdis +$(filter %-softmmu,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(common-obj-y) $(extra-obj-y) -$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) subdir-libdis-user subdir-libuser +$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) subdir-libuser ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) romsubdir-%:
@@ -223,7 +224,7 @@ $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN) qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a -QEMULIBS=libuser libdis libdis-user +QEMULIBS=libuser clean: # avoid old build problems by removing potentially incorrect old files
@@ -255,7 +256,7 @@ qemu-%.tar.bz2: distclean: clean rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi - rm -f config-all-devices.mak + rm -f config-all-devices.mak config-all-disas.mak rm -f roms/seabios/config.mak roms/vgabios/config.mak rm -f qemu-doc.info qemu-doc.aux qemu-doc.cp qemu-doc.cps qemu-doc.dvi rm -f qemu-doc.fn qemu-doc.fns qemu-doc.info qemu-doc.ky qemu-doc.kys
Makefile.dis deleted +0 -20
@@ -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
@@ -127,24 +127,10 @@ user-obj-y += $(trace-obj-y) user-obj-y += qom/ ###################################################################### -# libdis +# disassemblers # NOTE: the disassembler code is only needed for debugging -libdis-y = -libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o -libdis-$(CONFIG_ARM_DIS) += arm-dis.o -libdis-$(CONFIG_CRIS_DIS) += cris-dis.o -libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o -libdis-$(CONFIG_I386_DIS) += i386-dis.o -libdis-$(CONFIG_IA64_DIS) += ia64-dis.o -libdis-$(CONFIG_M68K_DIS) += m68k-dis.o -libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o -libdis-$(CONFIG_MIPS_DIS) += mips-dis.o -libdis-$(CONFIG_PPC_DIS) += ppc-dis.o -libdis-$(CONFIG_S390_DIS) += s390-dis.o -libdis-$(CONFIG_SH4_DIS) += sh4-dis.o -libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o -libdis-$(CONFIG_LM32_DIS) += lm32-dis.o +universal-obj-y += disas/ ###################################################################### # trace
@@ -252,5 +238,6 @@ nested-vars += \ block-obj-y \ user-obj-y \ common-obj-y \ + universal-obj-y \ extra-obj-y dummy := $(call unnest-vars)
Makefile.target +1 -4
@@ -70,9 +70,8 @@ obj-y = exec.o translate-all.o cpu-exec.o obj-y += tcg/tcg.o tcg/optimize.o obj-$(CONFIG_TCG_INTERPRETER) += tci.o obj-y += fpu/softfloat.o -obj-y += disas.o -obj-$(CONFIG_TCI_DIS) += tci-dis.o obj-y += target-$(TARGET_BASE_ARCH)/ +obj-y += disas.o obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o tci-dis.o: QEMU_CFLAGS += -I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/tci
@@ -156,11 +155,9 @@ all-obj-y += $(addprefix ../, $(universal-obj-y)) ifdef CONFIG_SOFTMMU all-obj-y += $(addprefix ../, $(common-obj-y)) -all-obj-y += $(addprefix ../libdis/, $(libdis-y)) all-obj-y += $(addprefix ../, $(trace-obj-y)) else all-obj-y += $(addprefix ../libuser/, $(user-obj-y)) -all-obj-y += $(addprefix ../libdis-user/, $(libdis-y)) endif #CONFIG_LINUX_USER ifdef QEMU_PROGW
bsd-user/elfload.c +1 -1
@@ -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" typedef struct CPUDebug { struct disassemble_info info;
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
@@ -22,7 +22,7 @@*/ #include "cpu.h" -#include "disas.h" +#include "disas/disas.h" #include "tcg-op.h" #include "helper.h"
target-openrisc/translate.c +1 -1
@@ -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
@@ -33,7 +33,7 @@#include "qemu-common.h" #define NO_CPU_IO_DEFS #include "cpu.h" -#include "disas.h" +#include "disas/disas.h" #include "tcg.h" #include "qemu-timer.h" #include "memory.h"
user-exec.c +1 -1
@@ -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.8.0.2
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
@@ -132,7 +132,7 @@ $(SUBDIR_RULES): libqemustub.a $(filter %-softmmu,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(common-obj-y) $(extra-obj-y) -$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) subdir-libuser +$(filter %-user,$(SUBDIR_RULES)): $(universal-obj-y) $(trace-obj-y) $(user-obj-y) ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) romsubdir-%:
@@ -224,8 +224,6 @@ $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN) qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a -QEMULIBS=libuser - clean: # avoid old build problems by removing potentially incorrect old files rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
@@ -242,7 +240,7 @@ clean: rm -rf qapi-generated rm -rf qga/qapi-generated $(MAKE) -C tests/tcg clean - for d in $(ALL_SUBDIRS) $(QEMULIBS) libcacard; do \ + for d in $(ALL_SUBDIRS) libcacard; do \ if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \ rm -f $$d/qemu-options.def; \ done
@@ -265,7 +263,7 @@ distclean: clean rm -f config.log rm -f linux-headers/asm rm -f qemu-tech.info qemu-tech.aux qemu-tech.cp qemu-tech.dvi qemu-tech.fn qemu-tech.info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg qemu-tech.toc qemu-tech.tp qemu-tech.vr - for d in $(TARGET_DIRS) $(QEMULIBS); do \ + for d in $(TARGET_DIRS); do \ rm -rf $$d || exit 1 ; \ done if test -f pixman/config.log; then make -C pixman distclean; fi
Makefile.objs +2 -1
@@ -123,7 +123,6 @@ user-obj-y += tcg-runtime.o host-utils.o user-obj-y += cache-utils.o user-obj-y += module.o user-obj-y += qemu-user.o -user-obj-y += $(trace-obj-y) user-obj-y += qom/ ######################################################################
@@ -196,6 +195,8 @@ trace-obj-y += trace/control.o $(trace-obj-y): $(GENERATED_HEADERS) +universal-obj-y += $(trace-obj-y) + ###################################################################### # smartcard
Makefile.target +1 -2
@@ -155,9 +155,8 @@ all-obj-y += $(addprefix ../, $(universal-obj-y)) ifdef CONFIG_SOFTMMU all-obj-y += $(addprefix ../, $(common-obj-y)) -all-obj-y += $(addprefix ../, $(trace-obj-y)) else -all-obj-y += $(addprefix ../libuser/, $(user-obj-y)) +all-obj-y += $(addprefix ../, $(user-obj-y)) endif #CONFIG_LINUX_USER ifdef QEMU_PROGW
Makefile.user deleted +0 -24
@@ -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
@@ -4212,9 +4212,6 @@ for rom in seabios vgabios ; do echo "LD=$ld" >> $config_mak done -d=libuser -symlink "$source_path/Makefile.user" "$d/Makefile" - if test "$docs" = "yes" ; then mkdir -p QMP fi
Signature · 1 line
1.8.0.2
PATCH 9/32 janitor: do not rely on indirect inclusions of or 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 add missing inclusions of qemu-char.h itself.
--- arch_init.c | 1 + audio/alsaaudio.c | 1 + audio/ossaudio.c | 1 + block/blkdebug.c | 1 + block/iscsi.c | 1 + bt-host.c | 1 + bt-vhci.c | 1 + event_notifier-posix.c | 1 + exec.c | 1 + hw/arm_boot.c | 1 + hw/dma.c | 1 + hw/fw_cfg.c | 1 + hw/jazz_led.c | 1 + hw/mac_dbdma.c | 1 + hw/puv3.c | 2 ++ hw/qdev-monitor.c | 1 + hw/qdev-properties.c | 1 + hw/s390x/sclpconsole.c | 1 + hw/tcx.c | 1 + hw/usb/dev-network.c | 1 + net.c | 1 + qemu-config.h | 1 + spice-qemu-char.c | 1 + target-i386/kvm.c | 1 + 24 files changed, 25 insertions(+)
arch_init.c +1 -0
@@ -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-posix.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 "dma.h" #include "exec-memory.h"
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/jazz_led.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu-common.h" #include "console.h" #include "pixel_ops.h" #include "trace.h"
hw/mac_dbdma.c +1 -0
@@ -39,6 +39,7 @@#include "hw.h" #include "isa.h" #include "mac_dbdma.h" +#include "main-loop.h" /* debug DBDMA */ //#define DEBUG_DBDMA
hw/puv3.c +2 -0
@@ -8,6 +8,8 @@* published by the Free Software Foundation, or any later version. * See the COPYING file in the top-level directory. */ + +#include "qemu-common.h" #include "console.h" #include "elf.h" #include "exec-memory.h"
hw/qdev-monitor.c +1 -0
@@ -21,6 +21,7 @@#include "monitor.h" #include "qmp-commands.h" #include "arch_init.h" +#include "qemu-config.h" /* * Aliases were a bad idea from the start. Let's keep them
hw/qdev-properties.c +1 -0
@@ -5,6 +5,7 @@#include "hw/block-common.h" #include "net/hub.h" #include "qapi/qapi-visit-core.h" +#include "qemu-char.h" void *qdev_get_prop_ptr (DeviceState *dev,Property *prop) {
hw/s390x/sclpconsole.c +1 -0
@@ -17,6 +17,7 @@#include "sclp.h" #include "event-facility.h" +#include "qemu-char.h" typedef struct ASCIIConsoleData { EventBufferHeader ebh;
hw/tcx.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#include "qemu-common.h" #include "console.h" #include "pixel_ops.h" #include "sysbus.h"
hw/usb/dev-network.c +1 -0
@@ -28,6 +28,7 @@#include "hw/usb/desc.h" #include "net.h" #include "qemu-queue.h" +#include "qemu-config.h" #include "sysemu.h" #include "iov.h"
net.c +1 -0
@@ -32,6 +32,7 @@#include "monitor.h" #include "qemu-common.h" #include "qemu_socket.h" +#include "qemu-config.h" #include "qmp-commands.h" #include "hw/qdev.h" #include "iov.h"
qemu-config.h +1 -0
@@ -4,6 +4,7 @@#include <stdio.h> #include "qemu-option.h" #include "error.h" +#include "qemu-option.h" extern QemuOptsList qemu_fsdev_opts;extern QemuOptsList qemu_virtfs_opts;
spice-qemu-char.c +1 -0
@@ -1,6 +1,7 @@#include "config-host.h" #include "trace.h" #include "ui/qemu-spice.h" +#include "qemu-char.h" #include <spice.h> #include <spice-experimental.h>
target-i386/kvm.c +1 -0
@@ -27,6 +27,7 @@#include "cpu.h" #include "gdbstub.h" #include "host-utils.h" +#include "qemu-config.h" #include "hw/pc.h" #include "hw/apic.h" #include "ioport.h"
Signature · 1 line
1.8.0.2
PATCH 10/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 - hmp.c | 1 + hw/9pfs/virtio-9p-coth.c | 1 - hw/ivshmem.c | 1 + hw/spapr_hcall.c | 2 -- hw/strongarm.c | 1 + hw/xen_disk.c | 1 - hw/xen_nic.c | 1 - hw/xilinx_axidma.c | 1 - hw/xilinx_axienet.c | 1 - hw/xtensa_lx60.c | 1 + iohandler.c | 1 - migration-exec.c | 1 - migration-fd.c | 1 - migration-tcp.c | 1 - migration-unix.c | 1 - monitor.h | 1 - net/slirp.c | 1 + net/socket.c | 1 - net/tap.c | 1 - net/vde.c | 1 - qmp.c | 1 + savevm.c | 1 - ui/qemu-spice.h | 1 - 31 files changed, 7 insertions(+), 25 deletions(-)
audio/alsaaudio.c +0 -1
@@ -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 "qemu-pixman.h" #include "qdict.h" #include "notify.h"
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/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 "qemu-aio.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"
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.8.0.2
PATCH 11/32 net: move Bluetooth stuff out of net.h
In reply to Paolo Bonzini--- bt-host.c | 1 - bt-host.h | 13 ++++++++++++- bt-vhci.c | 2 +- hw/bt-hci-csr.c | 2 +- hw/bt-hci.c | 2 +- hw/bt.c | 2 +- hw/usb/dev-bluetooth.c | 2 +- net.h | 14 -------------- 8 files changed, 17 insertions(+), 21 deletions(-)
bt-host.c +0 -1
@@ -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.8.0.2
PATCH 12/32 net: do not include net.h everywhere
In reply to Paolo Bonzini--- arch_init.c | 1 - hw/alpha_sys.h | 1 - hw/device-hotplug.c | 1 - hw/lm32_boards.c | 1 - hw/milkymist-hw.h | 1 + hw/milkymist.c | 1 - hw/s390-virtio-bus.c | 1 - hw/spapr_vscsi.c | 1 - hw/virtex_ml507.c | 1 - hw/virtio-net.h | 1 - hw/virtio-pci.c | 1 - hw/virtio-scsi.h | 1 - hw/xen_backend.h | 1 - hw/xen_platform.c | 1 - input.c | 1 - qemu-char.c | 1 - qemu-timer.c | 1 - 17 files changed, 1 insertion(+), 16 deletions(-)
arch_init.c +0 -1
@@ -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/pci.h" #include "pci/pci_host.h" #include "ide.h" -#include "net.h" #include "pc.h" #include "irq.h"
hw/device-hotplug.c +0 -1
@@ -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 (hwaddr 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/pci.h" #define ETH_ALEN 6
hw/virtio-pci.c +0 -1
@@ -26,7 +26,6 @@#include "qemu-error.h" #include "pci/msi.h" #include "pci/msix.h" -#include "net.h" #include "loader.h" #include "kvm.h" #include "blockdev.h"
hw/virtio-scsi.h +0 -1
@@ -15,7 +15,6 @@#define _QEMU_VIRTIO_SCSI_H#include "virtio.h" -#include "net.h" #include "pci/pci.h" /* The ID for virtio_scsi */
hw/xen_backend.h +0 -1
@@ -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/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.8.0.2
PATCH 13/32 net: move net.c to net/
In reply to Paolo Bonzini--- Makefile.objs | 2 +- net/Makefile.objs | 2 +- net.c => net/net.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename net.c => net/net.c (99%)
Makefile.objs +1 -1
@@ -66,7 +66,7 @@ endif # single QEMU executable should support all CPUs and machines. common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/ -common-obj-y += net.o net/ +common-obj-y += net/ common-obj-y += qom/ common-obj-y += readline.o console.o cursor.o common-obj-y += qemu-pixman.o
net/Makefile.objs +1 -1
@@ -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.8.0.2
PATCH 14/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/pci-hotplug.c | 2 +-
hw/pci/pci.c | 2 +-
hw/pcnet-pci.c | 2 +-
hw/pcnet.c | 2 +-
hw/petalogix_ml605_mmu.c | 2 +-
hw/petalogix_s3adsp1800_mmu.c | 2 +-
hw/ppc440_bamboo.c | 2 +-
hw/ppc_newworld.c | 2 +-
hw/ppc_oldworld.c | 2 +-
hw/ppc_prep.c | 2 +-
hw/qdev-properties.c | 2 +-
hw/qdev.c | 2 +-
hw/r2d.c | 2 +-
hw/realview.c | 2 +-
hw/rtl8139.c | 2 +-
hw/s390-virtio.c | 2 +-
hw/smc91c111.c | 2 +-
hw/spapr.c | 2 +-
hw/spapr_llan.c | 2 +-
hw/stellaris.c | 2 +-
hw/stellaris_enet.c | 2 +-
hw/sun4m.c | 2 +-
hw/sun4u.c | 2 +-
hw/usb/dev-network.c | 2 +-
hw/versatilepb.c | 2 +-
hw/vexpress.c | 2 +-
hw/vhost_net.c | 2 +-
hw/vhost_net.h | 2 +-
hw/virtio-net.c | 2 +-
hw/virtio-net.h | 27 -----------------
hw/virtio.h | 2 +-
hw/xen_backend.h | 2 +-
hw/xen_nic.c | 2 +-
hw/xgmac.c | 2 +-
hw/xilinx.h | 2 +-
hw/xilinx_axienet.c | 2 +-
hw/xilinx_ethlite.c | 2 +-
hw/xilinx_zynq.c | 2 +-
hw/xtensa_lx60.c | 2 +-
{net => include/net}/checksum.h | 0
net.h => include/net/net.h | 3 ++
{net => include/net}/queue.h | 0
{net => include/net}/slirp.h | 0
include/net/tap.h | 67 +++++++++++++++++++++++++++++++++++++++++
monitor.c | 2 +-
net/clients.h | 2 +-
net/hub.c | 2 +-
net/hub.h | 2 --
net/net.c | 4 +--
net/queue.c | 2 +-
net/slirp.c | 2 +-
net/socket.c | 2 +-
net/tap-aix.c | 2 +-
net/tap-bsd.c | 2 +-
net/tap-haiku.c | 2 +-
net/tap-linux.c | 3 +-
net/tap-linux.h | 20 ++----------
net/tap-solaris.c | 2 +-
net/tap-win32.c | 4 +--
net/tap.c | 6 ++--
net/{tap.h => tap_int.h} | 18 ++---------
net/util.c | 2 +-
net/vde.c | 2 +-
savevm.c | 2 +-
vl.c | 2 +-
98 files changed, 169 insertions(+), 155 deletions(-)
rename {net => include/net}/checksum.h (100%)
rename net.h => include/net/net.h (98%)
rename {net => include/net}/queue.h (100%)
rename {net => include/net}/slirp.h (100%)
create mode 100644 include/net/tap.h
rename net/{tap.h => tap_int.h} (77%)hmp.c +1 -1
@@ -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/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/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 (hwaddr 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/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/pci.h" #include "pci/pci_ids.h" #include "usb.h" -#include "net.h" +#include "net/net.h" #include "boards.h" #include "ide.h" #include "kvm.h"
hw/pci/pci-hotplug.c +1 -1
@@ -25,7 +25,7 @@#include "hw/hw.h" #include "hw/boards.h" #include "hw/pci/pci.h" -#include "net.h" +#include "net/net.h" #include "hw/pc.h" #include "monitor.h" #include "hw/scsi.h"
hw/pci/pci.c +1 -1
@@ -26,7 +26,7 @@#include "hw/pci/pci_bridge.h" #include "hw/pci/pci_bus.h" #include "monitor.h" -#include "net.h" +#include "net/net.h" #include "sysemu.h" #include "hw/loader.h" #include "range.h"
hw/pcnet-pci.c +1 -1
@@ -28,7 +28,7 @@*/ #include "pci/pci.h" -#include "net.h" +#include "net/net.h" #include "loader.h" #include "qemu-timer.h" #include "dma.h"
hw/pcnet.c +1 -1
@@ -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/pci.h" #include "boards.h"
hw/ppc_newworld.c +1 -1
@@ -53,7 +53,7 @@#include "mac_dbdma.h" #include "nvram.h" #include "pci/pci.h" -#include "net.h" +#include "net/net.h" #include "sysemu.h" #include "boards.h" #include "fw_cfg.h"
hw/ppc_oldworld.c +1 -1
@@ -30,7 +30,7 @@#include "mac_dbdma.h" #include "nvram.h" #include "sysemu.h" -#include "net.h" +#include "net/net.h" #include "isa.h" #include "pci/pci.h" #include "boards.h"
hw/ppc_prep.c +1 -1
@@ -26,7 +26,7 @@#include "pc.h" #include "serial.h" #include "fdc.h" -#include "net.h" +#include "net/net.h" #include "sysemu.h" #include "isa.h" #include "pci/pci.h"
hw/qdev-properties.c +1 -1
@@ -1,4 +1,4 @@ -#include "net.h" +#include "net/net.h" #include "qdev.h" #include "qerror.h" #include "blockdev.h"
hw/qdev.c +1 -1
@@ -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/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/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/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/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 (hwaddr 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 new file +67 -0
67 lines not on this page · raw message
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.8.0.2
PATCH 15/32 qemu-ga: move qemu-ga files to qga/
In reply to Paolo Bonzini--- Makefile | 9 +++++---- Makefile.objs | 2 +- qga/Makefile.objs | 2 +- qemu-ga.c => qga/main.c | 0 qapi-schema-guest.json => qga/qapi-schema.json | 0 5 files changed, 7 insertions(+), 6 deletions(-) rename qemu-ga.c => qga/main.c (100%) rename qapi-schema-guest.json => qga/qapi-schema.json (100%)
Makefile +5 -4
@@ -200,13 +200,13 @@ endif qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py qga/qapi-generated/qga-qapi-types.c qga/qapi-generated/qga-qapi-types.h :\ -$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) +$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o qga/qapi-generated -p "qga-" < $<, " GEN $@") qga/qapi-generated/qga-qapi-visit.c qga/qapi-generated/qga-qapi-visit.h :\ -$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) +$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o qga/qapi-generated -p "qga-" < $<, " GEN $@") qga/qapi-generated/qga-qmp-commands.h qga/qapi-generated/qga-qmp-marshal.c :\ -$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) +$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -o qga/qapi-generated -p "qga-" < $<, " GEN $@") qapi-types.c qapi-types.h :\
@@ -222,7 +222,8 @@ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) QGALIB_GEN=$(addprefix qga/qapi-generated/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h) $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN) -qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a +qemu-ga$(EXESUF): $(qga-obj-y) $(oslib-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemustub.a + $(call LINK, $^) clean: # avoid old build problems by removing potentially incorrect old files
Makefile.objs +1 -1
@@ -222,7 +222,7 @@ universal-obj-y += $(qapi-obj-y) ###################################################################### # guest agent -qga-obj-y = qga/ qemu-ga.o module.o qemu-tool.o +qga-obj-y = qga/ module.o qemu-tool.o qga-obj-$(CONFIG_POSIX) += qemu-sockets.o qemu-option.o vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
qga/Makefile.objs +1 -1
@@ -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.8.0.2
PATCH 16/32 ui: move files to ui/ and include/ui/
In reply to Paolo Bonzini---
Makefile.objs | 4 +---
hmp.c | 2 +-
hw/adb.c | 2 +-
hw/ads7846.c | 2 +-
hw/applesmc.c | 2 +-
hw/blizzard.c | 4 ++--
hw/bt-hid.c | 2 +-
hw/cirrus_vga.c | 2 +-
hw/escc.c | 2 +-
hw/exynos4210_fimd.c | 4 ++--
hw/framebuffer.c | 2 +-
hw/g364fb.c | 4 ++--
hw/hid.c | 2 +-
hw/hpet.c | 2 +-
hw/jazz_led.c | 4 ++--
hw/kvm/pci-assign.c | 2 +-
hw/lm832x.c | 2 +-
hw/milkymist-softusb.c | 2 +-
hw/milkymist-vgafb.c | 4 ++--
hw/msmouse.c | 6 +++---
hw/musicpal.c | 5 ++---
hw/nseries.c | 2 +-
hw/omap_dss.c | 2 +-
hw/omap_lcdc.c | 5 ++---
hw/omap_sx1.c | 2 +-
hw/palm.c | 2 +-
hw/pl110.c | 5 ++---
hw/ps2.c | 2 +-
hw/puv3.c | 2 +-
hw/pxa2xx_keypad.c | 2 +-
hw/pxa2xx_lcd.c | 4 ++--
hw/qxl.h | 2 +-
hw/sm501.c | 5 ++---
hw/spitz.c | 2 +-
hw/ssd0303.c | 2 +-
hw/ssd0323.c | 2 +-
hw/stellaris_input.c | 2 +-
hw/tc6393xb.c | 4 ++--
hw/tcx.c | 4 ++--
hw/tsc2005.c | 2 +-
hw/tsc210x.c | 2 +-
hw/twl92230.c | 2 +-
hw/usb/dev-hid.c | 2 +-
hw/usb/dev-storage.c | 2 +-
hw/usb/dev-wacom.c | 2 +-
hw/usb/host-stub.c | 2 +-
hw/vga-isa-mm.c | 4 ++--
hw/vga-isa.c | 4 ++--
hw/vga-pci.c | 4 ++--
hw/vga.c | 4 ++--
hw/vmmouse.c | 2 +-
hw/vmware_vga.c | 2 +-
hw/xenfb.c | 2 +-
hw/z2.c | 2 +-
console.h => include/ui/console.h | 2 +-
{hw => include/ui}/pixel_ops.h | 0
qemu-pixman.h => include/ui/qemu-pixman.h | 0
{ui => include/ui}/qemu-spice.h | 0
{ui => include/ui}/spice-display.h | 2 +-
monitor.c | 2 +-
qemu-char.c | 2 +-
qemu-timer.c | 2 +-
target-unicore32/helper.c | 2 +-
ui/Makefile.objs | 2 +-
ui/cocoa.m | 2 +-
console.c => ui/console.c | 2 +-
ui/curses.c | 2 +-
cursor.c => ui/cursor.c | 2 +-
cursor_hidden.xpm => ui/cursor_hidden.xpm | 0
cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm | 0
input.c => ui/input.c | 2 +-
qemu-pixman.c => ui/qemu-pixman.c | 2 +-
qemu-x509.h => ui/qemu-x509.h | 0
ui/sdl.c | 2 +-
ui/spice-core.c | 4 ++--
ui/spice-display.c | 6 +++---
ui/spice-input.c | 4 ++--
vgafont.h => ui/vgafont.h | 0
ui/vnc.h | 2 +-
vl.c | 2 +-
80 files changed, 95 insertions(+), 101 deletions(-)
rename console.h => include/ui/console.h (99%)
rename {hw => include/ui}/pixel_ops.h (100%)
rename qemu-pixman.h => include/ui/qemu-pixman.h (100%)
rename {ui => include/ui}/qemu-spice.h (100%)
rename {ui => include/ui}/spice-display.h (99%)
rename console.c => ui/console.c (99%)
rename cursor.c => ui/cursor.c (99%)
rename cursor_hidden.xpm => ui/cursor_hidden.xpm (100%)
rename cursor_left_ptr.xpm => ui/cursor_left_ptr.xpm (100%)
rename input.c => ui/input.c (99%)
rename qemu-pixman.c => ui/qemu-pixman.c (98%)
rename qemu-x509.h => ui/qemu-x509.h (100%)
rename vgafont.h => ui/vgafont.h (100%)Makefile.objs +1 -3
@@ -68,8 +68,7 @@ endif common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/ common-obj-y += net/ common-obj-y += qom/ -common-obj-y += readline.o console.o cursor.o -common-obj-y += qemu-pixman.o +common-obj-y += readline.o common-obj-y += $(oslib-obj-y) common-obj-$(CONFIG_WIN32) += os-win32.o common-obj-$(CONFIG_POSIX) += os-posix.o
@@ -78,7 +77,6 @@ common-obj-$(CONFIG_LINUX) += fsdev/ extra-obj-$(CONFIG_LINUX) += fsdev/ common-obj-y += tcg-runtime.o host-utils.o main-loop.o -common-obj-y += input.o common-obj-y += buffered_file.o migration.o migration-tcp.o common-obj-y += qemu-char.o #aio.o common-obj-y += block-migration.o iohandler.o
hmp.c +1 -1
@@ -21,7 +21,7 @@#include "qmp-commands.h" #include "qemu_socket.h" #include "monitor.h" -#include "console.h" +#include "ui/console.h" static void hmp_handle_error (Monitor *mon,Error **errp) {
hw/adb.c +1 -1
@@ -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 +2 -2
@@ -19,10 +19,10 @@*/ #include "qemu-common.h" -#include "console.h" +#include "ui/console.h" #include "devices.h" #include "vga_int.h" -#include "pixel_ops.h" +#include "ui/pixel_ops.h" typedef void (*blizzard_fn_t )(uint8_t *,const uint8_t *,unsigned int );
hw/bt-hid.c +1 -1
@@ -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/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 +2 -2
@@ -25,8 +25,8 @@#include "qemu-common.h" #include "cpu-all.h" #include "sysbus.h" -#include "console.h" -#include "pixel_ops.h" +#include "ui/console.h" +#include "ui/pixel_ops.h" #include "bswap.h" /* Debug messages configuration */
hw/framebuffer.c +1 -1
@@ -18,7 +18,7 @@*/ #include "hw.h" -#include "console.h" +#include "ui/console.h" #include "framebuffer.h" /* Render an image from a shared memory framebuffer. */
hw/g364fb.c +2 -2
@@ -18,8 +18,8 @@*/ #include "hw.h" -#include "console.h" -#include "pixel_ops.h" +#include "ui/console.h" +#include "ui/pixel_ops.h" #include "trace.h" #include "sysbus.h"
hw/hid.c +1 -1
@@ -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 +2 -2
@@ -23,8 +23,8 @@*/ #include "qemu-common.h" -#include "console.h" -#include "pixel_ops.h" +#include "ui/console.h" +#include "ui/pixel_ops.h" #include "trace.h" #include "sysbus.h"
hw/kvm/pci-assign.c +1 -1
@@ -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 +2 -2
@@ -25,9 +25,9 @@#include "hw.h" #include "sysbus.h" #include "trace.h" -#include "console.h" +#include "ui/console.h" #include "framebuffer.h" -#include "pixel_ops.h" +#include "ui/pixel_ops.h" #include "qemu-error.h" #define BITS 8
hw/msmouse.c +3 -3
@@ -22,9 +22,9 @@* THE SOFTWARE. */ #include <stdlib.h> -#include "../qemu-common.h" -#include "../qemu-char.h" -#include "../console.h" +#include "qemu-common.h" +#include "qemu-char.h" +#include "ui/console.h" #include "msmouse.h" #define MSMOUSE_LO6 (n) ((n) & 0x3f)
hw/musicpal.c +2 -3
@@ -20,10 +20,11 @@#include "ptimer.h" #include "block.h" #include "flash.h" -#include "console.h" +#include "ui/console.h" #include "i2c.h" #include "blockdev.h" #include "exec-memory.h" +#include "ui/pixel_ops.h" #define MP_MISC_BASE 0x80002000#define MP_MISC_SIZE 0x00001000
@@ -492,8 +493,6 @@ SET_LCD_PIXEL(8, uint8_t) SET_LCD_PIXEL(16, uint16_t) SET_LCD_PIXEL(32, uint32_t) -#include "pixel_ops.h" -static void lcd_refresh (void *opaque) {musicpal_lcd_state *s = opaque;
hw/nseries.c +1 -1
@@ -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 +2 -3
@@ -17,9 +17,10 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "hw.h" -#include "console.h" +#include "ui/console.h" #include "omap.h" #include "framebuffer.h" +#include "ui/pixel_ops.h" struct omap_lcd_panel_s {MemoryRegion *sysmem;
@@ -66,8 +67,6 @@ static void omap_lcd_interrupts(struct omap_lcd_panel_s *s)qemu_irq_lower (s->irq); } -#include "pixel_ops.h" -#define draw_line_func drawfn#define DEPTH 8
hw/omap_sx1.c +1 -1
@@ -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 +2 -3
@@ -8,8 +8,9 @@*/ #include "sysbus.h" -#include "console.h" +#include "ui/console.h" #include "framebuffer.h" +#include "ui/pixel_ops.h" #define PL110_CR_EN 0x001#define PL110_CR_BGR 0x100
@@ -109,8 +110,6 @@ static const unsigned char *idregs[] = { pl111_id }; -#include "pixel_ops.h" -#define BITS 8#include "pl110_template.h" #define BITS 15
hw/ps2.c +1 -1
@@ -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
@@ -10,7 +10,7 @@*/ #include "qemu-common.h" -#include "console.h" +#include "ui/console.h" #include "elf.h" #include "exec-memory.h" #include "sysbus.h"
hw/pxa2xx_keypad.c +1 -1
@@ -13,7 +13,7 @@#include "hw.h" #include "pxa.h" -#include "console.h" +#include "ui/console.h" /* * Keypad
hw/pxa2xx_lcd.c +2 -2
@@ -11,9 +11,9 @@*/ #include "hw.h" -#include "console.h" +#include "ui/console.h" #include "pxa.h" -#include "pixel_ops.h" +#include "ui/pixel_ops.h" /* FIXME: For graphic_rotate. Should probably be done in common code. */ #include "sysemu.h" #include "framebuffer.h"
hw/qxl.h +1 -1
@@ -1,6 +1,6 @@#include "qemu-common.h" -#include "console.h" +#include "ui/console.h" #include "hw.h" #include "pci/pci.h" #include "vga_int.h"
hw/sm501.c +2 -3
@@ -25,11 +25,12 @@#include <stdio.h> #include "hw.h" #include "serial.h" -#include "console.h" +#include "ui/console.h" #include "devices.h" #include "sysbus.h" #include "qdev-addr.h" #include "range.h" +#include "ui/pixel_ops.h" /* * Status: 2010/05/07
@@ -1163,8 +1164,6 @@ static const MemoryRegionOps sm501_2d_engine_ops = {/* draw line functions for all console modes */ -#include "pixel_ops.h" -typedef void draw_line_func (uint8_t *d,const uint8_t *s,int width,const uint32_t *pal);
hw/spitz.c +1 -1
@@ -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 +2 -2
@@ -13,8 +13,8 @@#include "hw.h" #include "devices.h" #include "flash.h" -#include "console.h" -#include "pixel_ops.h" +#include "ui/console.h" +#include "ui/pixel_ops.h" #include "blockdev.h" #define IRQ_TC6393_NAND 0
hw/tcx.c +2 -2
@@ -23,8 +23,8 @@*/ #include "qemu-common.h" -#include "console.h" -#include "pixel_ops.h" +#include "ui/console.h" +#include "ui/pixel_ops.h" #include "sysbus.h" #include "qdev-addr.h"
hw/tsc2005.c +1 -1
@@ -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 +2 -2
@@ -22,10 +22,10 @@* THE SOFTWARE. */ #include "hw.h" -#include "console.h" +#include "ui/console.h" #include "pc.h" #include "vga_int.h" -#include "pixel_ops.h" +#include "ui/pixel_ops.h" #include "qemu-timer.h" #define VGA_RAM_SIZE (8192 * 1024)
hw/vga-isa.c +2 -2
@@ -24,10 +24,10 @@* THE SOFTWARE. */ #include "hw.h" -#include "console.h" +#include "ui/console.h" #include "pc.h" #include "vga_int.h" -#include "pixel_ops.h" +#include "ui/pixel_ops.h" #include "qemu-timer.h" #include "loader.h"
hw/vga-pci.c +2 -2
@@ -24,10 +24,10 @@* THE SOFTWARE. */ #include "hw.h" -#include "console.h" +#include "ui/console.h" #include "pci/pci.h" #include "vga_int.h" -#include "pixel_ops.h" +#include "ui/pixel_ops.h" #include "qemu-timer.h" #include "loader.h"
hw/vga.c +2 -2
@@ -23,11 +23,11 @@*/ #include "hw.h" #include "vga.h" -#include "console.h" +#include "ui/console.h" #include "pc.h" #include "pci/pci.h" #include "vga_int.h" -#include "pixel_ops.h" +#include "ui/pixel_ops.h" #include "qemu-timer.h" #include "xen.h" #include "trace.h"
hw/vmmouse.c +1 -1
@@ -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/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 +1 -1
@@ -1,7 +1,7 @@#ifndef CONSOLE_H #define CONSOLE_H -#include "qemu-pixman.h" +#include "ui/qemu-pixman.h" #include "qdict.h" #include "notify.h" #include "monitor.h"
include/ui/pixel_ops.h renamed from hw/pixel_ops.h +0 -0
include/ui/qemu-pixman.h renamed from qemu-pixman.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 "qemu-pixman.h" +#include "ui/qemu-pixman.h" #include "sysemu.h" #define NUM_MEMSLOTS 8
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 qemu-pixman.o common-obj-$(CONFIG_SPICE) += spice-core.o spice-input.o spice-display.o common-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o common-obj-$(CONFIG_COCOA) += cocoa.o
ui/cocoa.m +1 -1
@@ -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
@@ -29,7 +29,7 @@#endif #include "qemu-common.h" -#include "console.h" +#include "ui/console.h" #include "sysemu.h" #define FONT_HEIGHT 16
ui/cursor.c renamed from cursor.c +1 -1
@@ -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/qemu-pixman.c renamed from qemu-pixman.c +1 -1
@@ -3,7 +3,7 @@* See the COPYING file in the top-level directory. */ -#include "qemu-pixman.h" +#include "ui/qemu-pixman.h" int qemu_pixman_get_type (int rshift,int gshift,int bshift) {
ui/qemu-x509.h renamed from qemu-x509.h +0 -0
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.8.0.2
PATCH 17/32 qapi: move inclusions of qemu-common.h from headers to .c files
In reply to Paolo Bonzini--- qapi/opts-visitor.c | 1 + qapi/qapi-types-core.h | 1 - qapi/qapi-visit-core.c | 1 + scripts/qapi-commands.py | 1 + scripts/qapi-visit.py | 1 + 5 files changed, 4 insertions(+), 1 deletion(-)
qapi/opts-visitor.c +1 -0
@@ -10,6 +10,7 @@* */ +#include "qemu-common.h" #include "opts-visitor.h" #include "qemu-queue.h" #include "qemu-option-internal.h"
qapi/qapi-types-core.h +0 -1
@@ -14,7 +14,6 @@#ifndef QAPI_TYPES_CORE_H #define QAPI_TYPES_CORE_H -#include "qemu-common.h" #include "error.h" #include "qerror.h"
qapi/qapi-visit-core.c +1 -0
@@ -11,6 +11,7 @@* */ +#include "qemu-common.h" #include "qapi/qapi-visit-core.h" #include "qapi/qapi-visit-impl.h"
scripts/qapi-commands.py +1 -0
@@ -366,6 +366,7 @@ def gen_command_def_prologue(prefix="", proxy=False): * */ +#include "qemu-common.h" #include "qemu-objects.h" #include "qapi/qmp-core.h" #include "qapi/qapi-visit-core.h"
scripts/qapi-visit.py +1 -0
@@ -298,6 +298,7 @@ fdef.write(mcgen(''' * */ +#include "qemu-common.h" #include "%(header)s" ''', header=basename(h_file)))
Signature · 1 line
1.8.0.2
PATCH 18/32 qapi: remove qapi/qapi-types-core.h
In reply to Paolo BonziniThe file is only including error.h and qerror.h. Prefer explicit inclusion of whatever files are needed.
--- qapi/opts-visitor.c | 1 + qapi/qapi-dealloc-visitor.c | 1 + qapi/qapi-types-core.h | 20 -------------------- qapi/qapi-visit-core.c | 1 + qapi/qapi-visit-core.h | 2 +- qapi/qapi-visit-impl.h | 2 +- qemu-option-internal.h | 1 + qom/object.c | 1 + scripts/qapi-commands.py | 2 ++ target-i386/cpu.c | 1 + 10 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 qapi/qapi-types-core.h
qapi/opts-visitor.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu-common.h" +#include "qerror.h" #include "opts-visitor.h" #include "qemu-queue.h" #include "qemu-option-internal.h"
qapi/qapi-dealloc-visitor.c +1 -0
@@ -15,6 +15,7 @@#include "qemu-queue.h" #include "qemu-common.h" #include "qemu-objects.h" +#include "qapi-visit-impl.h" typedef struct StackEntry {
qapi/qapi-types-core.h deleted +0 -20
@@ -1,20 +0,0 @@ -/* -* Core Definitions for QAPI-generated Types -* -* Copyright IBM, Corp. 2011 -* -* Authors: -* Anthony Liguori <[email protected]> -* -* This work is licensed under the terms of the GNU LGPL, version 2.1 or later. -* See the COPYING.LIB file in the top-level directory. -* -*/ - -#ifndef QAPI_TYPES_CORE_H -#define QAPI_TYPES_CORE_H - -#include "error.h" -#include "qerror.h" - -#endif
qapi/qapi-visit-core.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu-common.h" +#include "qerror.h" #include "qapi/qapi-visit-core.h" #include "qapi/qapi-visit-impl.h"
qapi/qapi-visit-core.h +1 -1
@@ -13,7 +13,7 @@#ifndef QAPI_VISITOR_CORE_H #define QAPI_VISITOR_CORE_H -#include "qapi/qapi-types-core.h" +#include "error.h" #include <stdlib.h> typedef struct GenericList
qapi/qapi-visit-impl.h +1 -1
@@ -12,7 +12,7 @@#ifndef QAPI_VISITOR_IMPL_H #define QAPI_VISITOR_IMPL_H -#include "qapi/qapi-types-core.h" +#include "error.h" #include "qapi/qapi-visit-core.h" void input_type_enum(Visitor *v, int *obj, const char *strings[],
qemu-option-internal.h +1 -0
@@ -27,6 +27,7 @@#define QEMU_OPTIONS_INTERNAL_H #include "qemu-option.h" +#include "qemu-error.h" struct QemuOpt {const char *name;
qom/object.c +1 -0
@@ -15,6 +15,7 @@#include "qapi/qapi-visit-core.h" #include "qapi/string-input-visitor.h" #include "qapi/string-output-visitor.h" +#include "qerror.h" /* TODO: replace QObject with a simpler visitor to avoid a dependency * of the QOM core on QObject? */
scripts/qapi-commands.py +2 -0
@@ -367,6 +367,8 @@ def gen_command_def_prologue(prefix="", proxy=False): */ #include "qemu-common.h" +#include "module.h" +#include "qerror.h" #include "qemu-objects.h" #include "qapi/qmp-core.h" #include "qapi/qapi-visit-core.h"
target-i386/cpu.c +1 -0
@@ -26,6 +26,7 @@#include "qemu-option.h" #include "qemu-config.h" +#include "qerror.h" #include "qapi/qapi-visit-core.h" #include "arch_init.h"
Signature · 1 line
1.8.0.2
PATCH 19/32 qapi: make struct Visitor opaque
In reply to Paolo BonziniMove its definition from qapi-visit-core.h to qapi-visit-impl.h.
--- qapi/qapi-visit-core.h | 40 ---------------------------------------- qapi/qapi-visit-impl.h | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 40 deletions(-)
qapi/qapi-visit-core.h +0 -40
@@ -24,46 +24,6 @@ typedef struct GenericListtypedef struct Visitor Visitor ; -struct Visitor -{ -/* Must be set */ -void (*start_struct)(Visitor *v,void **obj,const char *kind, -const char *name,size_t size,Error **errp); -void (*end_struct)(Visitor *v,Error **errp); - -void (*start_list)(Visitor *v,const char *name,Error **errp); -GenericList *(*next_list)(Visitor *v,GenericList **list,Error **errp); -void (*end_list)(Visitor *v,Error **errp); - -void (*type_enum)(Visitor *v,int *obj,const char *strings[], -const char *kind,const char *name,Error **errp); - -void (*type_int)(Visitor *v,int64_t *obj,const char *name,Error **errp); -void (*type_bool)(Visitor *v,bool *obj,const char *name,Error **errp); -void (*type_str)(Visitor *v,char **obj,const char *name,Error **errp); -void (*type_number)(Visitor *v,double *obj,const char *name, -Error **errp); - -/* May be NULL */ -void (*start_optional)(Visitor *v,bool *present,const char *name, -Error **errp); -void (*end_optional)(Visitor *v,Error **errp); - -void (*start_handle)(Visitor *v,void **obj,const char *kind, -const char *name,Error **errp); -void (*end_handle)(Visitor *v,Error **errp); -void (*type_uint8)(Visitor *v,uint8_t *obj,const char *name,Error **errp); -void (*type_uint16)(Visitor *v,uint16_t *obj,const char *name,Error **errp); -void (*type_uint32)(Visitor *v,uint32_t *obj,const char *name,Error **errp); -void (*type_uint64)(Visitor *v,uint64_t *obj,const char *name,Error **errp); -void (*type_int8)(Visitor *v,int8_t *obj,const char *name,Error **errp); -void (*type_int16)(Visitor *v,int16_t *obj,const char *name,Error **errp); -void (*type_int32)(Visitor *v,int32_t *obj,const char *name,Error **errp); -void (*type_int64)(Visitor *v,int64_t *obj,const char *name,Error **errp); -/* visit_type_size() falls back to (*type_uint64)() if type_size is unset */ -void (*type_size)(Visitor *v,uint64_t *obj,const char *name,Error **errp); -}; -void visit_start_handle (Visitor *v,void **obj,const char *kind,const char *name,Error **errp);void visit_end_handle (Visitor *v,Error **errp);
qapi/qapi-visit-impl.h +40 -0
@@ -15,6 +15,46 @@#include "error.h" #include "qapi/qapi-visit-core.h" +struct Visitor +{ +/* Must be set */ +void (*start_struct)(Visitor *v,void **obj,const char *kind, +const char *name,size_t size,Error **errp); +void (*end_struct)(Visitor *v,Error **errp); + +void (*start_list)(Visitor *v,const char *name,Error **errp); +GenericList *(*next_list)(Visitor *v,GenericList **list,Error **errp); +void (*end_list)(Visitor *v,Error **errp); + +void (*type_enum)(Visitor *v,int *obj,const char *strings[], +const char *kind,const char *name,Error **errp); + +void (*type_int)(Visitor *v,int64_t *obj,const char *name,Error **errp); +void (*type_bool)(Visitor *v,bool *obj,const char *name,Error **errp); +void (*type_str)(Visitor *v,char **obj,const char *name,Error **errp); +void (*type_number)(Visitor *v,double *obj,const char *name, +Error **errp); + +/* May be NULL */ +void (*start_optional)(Visitor *v,bool *present,const char *name, +Error **errp); +void (*end_optional)(Visitor *v,Error **errp); + +void (*start_handle)(Visitor *v,void **obj,const char *kind, +const char *name,Error **errp); +void (*end_handle)(Visitor *v,Error **errp); +void (*type_uint8)(Visitor *v,uint8_t *obj,const char *name,Error **errp); +void (*type_uint16)(Visitor *v,uint16_t *obj,const char *name,Error **errp); +void (*type_uint32)(Visitor *v,uint32_t *obj,const char *name,Error **errp); +void (*type_uint64)(Visitor *v,uint64_t *obj,const char *name,Error **errp); +void (*type_int8)(Visitor *v,int8_t *obj,const char *name,Error **errp); +void (*type_int16)(Visitor *v,int16_t *obj,const char *name,Error **errp); +void (*type_int32)(Visitor *v,int32_t *obj,const char *name,Error **errp); +void (*type_int64)(Visitor *v,int64_t *obj,const char *name,Error **errp); +/* visit_type_size() falls back to (*type_uint64)() if type_size is unset */ +void (*type_size)(Visitor *v,uint64_t *obj,const char *name,Error **errp); +}; +void input_type_enum (Visitor *v,int *obj,const char *strings[],const char *kind,const char *name,Error **errp); void output_type_enum(Visitor *v, int *obj, const char *strings[],
Signature · 1 line
1.8.0.2
PATCH 20/32 janitor: add guards to headers
In reply to Paolo Bonzini--- gen-icount.h | 5 +++++ host-utils.h | 4 ++++ hw/9pfs/virtio-9p-synth.h | 4 ++++ hw/audiodev.h | 5 +++++ hw/baum.h | 4 ++++ hw/bt.h | 5 +++++ hw/cris-boot.h | 4 ++++ hw/empty_slot.h | 5 +++++ hw/escc.h | 5 +++++ hw/etraxfs.h | 5 +++++ hw/etraxfs_dma.h | 5 +++++ hw/flash.h | 5 +++++ hw/lm32.h | 5 +++++ hw/mac_dbdma.h | 4 ++++ hw/msmouse.h | 5 +++++ hw/ne2000.h | 5 +++++ hw/pci/pci_ids.h | 4 ++++ hw/pcmcia.h | 5 +++++ hw/pcnet.h | 5 +++++ hw/ppc.h | 5 +++++ hw/qdev-addr.h | 5 +++++ hw/qxl.h | 5 +++++ hw/s390-virtio-bus.h | 4 ++++ hw/scsi-defs.h | 4 ++++ hw/serial.h | 4 ++++ hw/soc_dma.h | 6 ++++++ hw/usb/hcd-ehci.h | 4 ++++ hw/vga_int.h | 4 ++++ hw/xilinx.h | 6 ++++++ iov.h | 5 +++++ linux-user/cris/syscall.h | 5 +++++ linux-user/microblaze/syscall.h | 6 ++++++ linux-user/syscall_defs.h | 6 ++++++ slirp/bootp.h | 4 ++++ slirp/main.h | 4 ++++ slirp/tftp.h | 4 ++++ softmmu-semi.h | 4 ++++ target-cris/crisv32-decode.h | 4 ++++ tcg/arm/tcg-target.h | 3 +++ tcg/hppa/tcg-target.h | 3 +++ tcg/i386/tcg-target.h | 3 +++ tcg/ia64/tcg-target.h | 3 +++ tcg/mips/tcg-target.h | 3 +++ tcg/ppc/tcg-target.h | 3 +++ tcg/ppc64/tcg-target.h | 3 +++ tcg/s390/tcg-target.h | 3 +++ tcg/sparc/tcg-target.h | 3 +++ tests/tcg/cris/crisutils.h | 5 +++++ ui/curses_keys.h | 5 +++++ ui/d3des.h | 4 ++++ 50 files changed, 219 insertions(+)
gen-icount.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef GEN_ICOUNT_H +#define GEN_ICOUNT_H 1 +#include "qemu-timer.h" /* Helpers for instruction counting code generation. */
@@ -46,3 +49,5 @@ static inline void gen_io_end(void)tcg_gen_st_i32 (tmp, cpu_env, offsetof(CPUArchState , can_do_io)); tcg_temp_free_i32(tmp); } + +#endif
host-utils.h +4 -0
@@ -22,6 +22,8 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef HOST_UTILS_H +#define HOST_UTILS_H 1#include "compiler.h" /* QEMU_GNUC_PREREQ */
@@ -234,3 +236,5 @@ static inline int ctpop64(uint64_t val)return val; #endif } + +#endif
hw/9pfs/virtio-9p-synth.h +4 -0
@@ -10,6 +10,8 @@* the COPYING file in the top-level directory. * */ +#ifndef HW_9PFS_VIRTIO9P_SYNTH_H +#define HW_9PFS_VIRTIO9P_SYNTH_H 1#include <unistd.h> #include <sys/types.h>
@@ -48,3 +50,5 @@ extern int qemu_v9fs_synth_mkdir(V9fsSynthNode *parent, int mode,extern int qemu_v9fs_synth_add_file (V9fsSynthNode *parent,int mode,const char *name,v9fs_synth_read read,v9fs_synth_write write,void *arg); + +#endif
hw/audiodev.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_AUDIODEV_H +#define HW_AUDIODEV_H 1 +/* es1370.c */ int es1370_init (PCIBus *bus);
@@ -18,3 +21,5 @@ int cs4231a_init(ISABus *bus);/* intel-hda.c + hda-audio.c */ int intel_hda_and_codec_init (PCIBus *bus); + +#endif
hw/baum.h +4 -0
@@ -21,6 +21,10 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef HW_BAUM_H +#define HW_BAUM_H 1/* char device */ CharDriverState *chr_baum_init (QemuOpts *opts); + +#endif
hw/bt.h +5 -0
@@ -23,6 +23,9 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#ifndef HW_BT_H +#define HW_BT_H 1 +#include "hw/irq.h" /* BD Address */
@@ -2183,3 +2186,5 @@ enum bt_sdp_attribute_id {SDP_ATTR_NORMALLY_CONNECTABLE =0x020d , SDP_ATTR_BOOT_DEVICE = 0x020e, }; + +#endif
hw/cris-boot.h +4 -0
@@ -1,3 +1,5 @@ +#ifndef _CRIS_BOOT_H +#define HW_CRIS_BOOT_H 1struct cris_load_info {
@@ -9,3 +11,5 @@ struct cris_load_info };void cris_load_image (CRISCPU *cpu,struct cris_load_info *li); + +#endif
hw/empty_slot.h +5 -0
@@ -1,2 +1,7 @@ +#ifndef HW_EMPTY_SLOT_H +#define HW_EMPTY_SLOT_H 1 +/* empty_slot.c */ void empty_slot_init (hwaddr addr,uint64_t slot_size); + +#endif
hw/escc.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_ESCC_H +#define HW_ESCC_H 1 +/* escc.c */ #define ESCC_SIZE 4 MemoryRegion *escc_init(hwaddr base, qemu_irq irqA, qemu_irq irqB,
@@ -6,3 +9,5 @@ MemoryRegion *escc_init(hwaddr base, qemu_irq irqA, qemu_irq irqB,void slavio_serial_ms_kbd_init (hwaddr base,qemu_irq irq,int disabled,int clock,int it_shift); + +#endif
hw/etraxfs.h +5 -0
@@ -22,6 +22,9 @@* THE SOFTWARE. */ +#ifndef HW_EXTRAXFS_H +#define HW_EXTRAXFS_H 1 +#include "net/net.h" #include "etraxfs_dma.h"
@@ -44,3 +47,5 @@ etraxfs_eth_init(NICInfo *nd, hwaddr base, int phyaddr,sysbus_mmio_map (sysbus_from_qdev (dev),0 , base); return dev; } + +#endif
hw/etraxfs_dma.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_ETRAXFS_DMA_H +#define HW_ETRAXFS_DMA_H 1 + struct dma_context_metadata { /* data descriptor md */ uint16_t metadata;
@@ -27,3 +30,5 @@ void etraxfs_dmac_connect_client(void *opaque, int c, struct etraxfs_dma_client *cl);int etraxfs_dmac_input (struct etraxfs_dma_client *client,void *buf,int len,int eop); + +#endif
hw/flash.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_FLASH_H +#define HW_FLASH_H 1 +/* NOR flash devices */ #include "memory.h"
@@ -57,3 +60,5 @@ typedef struct {uint8_t ecc_digest (ECCState *s,uint8_t sample);void ecc_reset (ECCState *s);extern VMStateDescription vmstate_ecc_state; + +#endif
hw/lm32.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_LM32_H +#define HW_LM32_H 1 +#include "qemu-common.h"
@@ -23,3 +26,5 @@ static inline DeviceState *lm32_juart_init(void) return dev; } + +#endif
hw/mac_dbdma.h +4 -0
@@ -19,6 +19,8 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef HW_MAC_DBDMA_H +#define HW_MAC_DBDMA_H 1#include "memory.h"
@@ -42,3 +44,5 @@ void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq, DBDMA_rw rw, DBDMA_flush flush, void *opaque);void *DBDMA_init (MemoryRegion **dbdma_mem); + +#endif
hw/msmouse.h +5 -0
@@ -1,2 +1,7 @@ +#ifndef HW_MSMOUSE_H +#define HW_MSMOUSE_H 1 +/* msmouse.c */ CharDriverState *qemu_chr_open_msmouse (QemuOpts *opts); + +#endif
hw/ne2000.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_NE2000_H +#define HW_NE2000_H 1 +#define NE2000_PMEM_SIZE (32*1024)#define NE2000_PMEM_START (16*1024)#define NE2000_PMEM_END (NE2000_PMEM_SIZE+NE2000_PMEM_START)
@@ -33,3 +36,5 @@ extern const VMStateDescription vmstate_ne2000;void ne2000_reset (NE2000State *s);int ne2000_can_receive (NetClientState *nc);ssize_t ne2000_receive (NetClientState *nc,const uint8_t *buf,size_t size_); + +#endif
hw/pci/pci_ids.h +4 -0
@@ -7,6 +7,8 @@* * QEMU-specific definitions belong in pci.h */ +#ifndef HW_PCI_IDS_H +#define HW_PCI_IDS_H 1/* Device classes and subclasses */
@@ -145,3 +147,5 @@#define PCI_VENDOR_ID_NEC 0x1033#define PCI_DEVICE_ID_NEC_UPD720200 0x0194 + +#endif
hw/pcmcia.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_PCMCIA_H +#define HW_PCMCIA_H 1 +/* PCMCIA/Cardbus */ #include "qemu-common.h"
@@ -49,3 +52,5 @@ struct PCMCIACardState {/* dscm1xxxx.c */ PCMCIACardState *dscm1xxxx_init (DriveInfo *bdrv); + +#endif
hw/pcnet.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_PCNET_H +#define HW_PCNET_H 1 +#define PCNET_IOPORT_SIZE 0x20#define PCNET_PNPMMIO_SIZE 0x20
@@ -63,3 +66,5 @@ void pcnet_set_link_status(NetClientState *nc);void pcnet_common_cleanup (PCNetState *d);int pcnet_common_init (DeviceState *dev,PCNetState *s,NetClientInfo *info);extern const VMStateDescription vmstate_pcnet; + +#endif
hw/ppc.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_PPC_H +#define HW_PPC_H 1 +void ppc_set_irq (CPUPPCState *env,int n_IRQ,int level);/* PowerPC hardware exceptions management helpers */
@@ -90,3 +93,5 @@ enum {/* ppc_booke.c */ void ppc_booke_timers_init (CPUPPCState *env,uint32_t freq,uint32_t flags); + +#endif
hw/qdev-addr.h +5 -0
@@ -1,5 +1,10 @@ +#ifndef HW_QDEV_ADDR_H +#define HW_QDEV_ADDR_H 1 +#define DEFINE_PROP_TADDR (_n, _s, _f, _d) \ DEFINE_PROP_DEFAULT(_n, _s, _f, _d, qdev_prop_taddr, hwaddr)extern PropertyInfo qdev_prop_taddr;void qdev_prop_set_taddr (DeviceState *dev,const char *name,hwaddr value); + +#endif
hw/qxl.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef HW_QXL_H +#define HW_QXL_H 1 +#include "qemu-common.h" #include "ui/console.h"
@@ -158,3 +161,5 @@ void qxl_render_update(PCIQXLDevice *qxl);int qxl_render_cursor (PCIQXLDevice *qxl,QXLCommandExt *ext);void qxl_render_update_area_done (PCIQXLDevice *qxl,QXLCookie *cookie);void qxl_render_update_area_bh (void *opaque); + +#endif
hw/s390-virtio-bus.h +4 -0
@@ -16,6 +16,8 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#ifndef HW_S390_VIRTIO_BUS_H +#define HW_S390_VIRTIO_BUS_H 1#include "virtio-blk.h" #include "virtio-net.h"
@@ -100,3 +102,5 @@ VirtIOS390Device *s390_virtio_bus_find_mem(VirtIOS390Bus *bus, ram_addr_t mem);void s390_virtio_device_sync (VirtIOS390Device *dev);void s390_virtio_reset_idx (VirtIOS390Device *dev); + +#endif
hw/scsi-defs.h +4 -0
@@ -19,6 +19,8 @@* This header file contains public constants and structures used by * the scsi code for linux. */ +#ifndef HW_SCSI_DEFS_H +#define HW_SCSI_DEFS_H 1/* * SCSI opcodes
@@ -301,3 +303,5 @@#define MMC_PROFILE_HDDVD_R_DL 0x0058#define MMC_PROFILE_HDDVD_RW_DL 0x005A#define MMC_PROFILE_INVALID 0xFFFF + +#endif
hw/serial.h +4 -0
@@ -22,6 +22,8 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef HW_SERIAL_H +#define HW_SERIAL_H 1#include "hw.h" #include "sysemu.h"
@@ -97,3 +99,5 @@ SerialState *serial_mm_init(MemoryRegion *address_space,/* serial-isa.c */ bool serial_isa_init (ISABus *bus,int index,CharDriverState *chr); + +#endif
hw/soc_dma.h +6 -0
@@ -18,6 +18,10 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ +#ifndef HW_SOC_DMA_H +#define HW_SOC_DMA_H 1 + +#include "memory.h" #include "hw/irq.h"
@@ -108,3 +112,5 @@ static inline void soc_dma_port_add_fifo_out(struct soc_dma_s *dma, {return soc_dma_port_add_fifo (dma, virt_base, fn, opaque,1 ); } + +#endif
hw/usb/hcd-ehci.h +4 -0
@@ -14,6 +14,8 @@* You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#ifndef HW_USB_EHCI_H +#define HW_USB_EHCI_H 1#include "hw/hw.h" #include "qemu-timer.h"
@@ -318,3 +320,5 @@ struct EHCIState {extern const VMStateDescription vmstate_ehci;void usb_ehci_initfn (EHCIState *s,DeviceState *dev); + +#endif
hw/vga_int.h +4 -0
@@ -21,6 +21,8 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef HW_VGA_INT_H +#define HW_VGA_INT_H 1#include <hw/hw.h> #include "error.h"
@@ -212,3 +214,5 @@ extern const uint8_t gr_mask[16];#define VGABIOS_CIRRUS_FILENAME "vgabios-cirrus.bin"extern const MemoryRegionOps vga_mem_ops; + +#endif
hw/xilinx.h +6 -0
@@ -1,3 +1,7 @@ +#ifndef HW_XILINX_H +#define HW_XILINX_H 1 + +#include "stream.h" #include "qemu-common.h" #include "net/net.h"
@@ -90,3 +94,5 @@ xilinx_axiethernetdma_init(DeviceState *dev, StreamSlave *peer,sysbus_connect_irq (sysbus_from_qdev (dev),0 , irq); sysbus_connect_irq(sysbus_from_qdev(dev), 1, irq2); } + +#endif
iov.h +5 -0
@@ -11,6 +11,9 @@* the COPYING file in the top-level directory. */ +#ifndef IOV_H +#define IOV_H +#include "qemu-common.h" /**
@@ -95,3 +98,5 @@ void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt,unsigned iov_copy (struct iovec *dst_iov,unsigned int dst_iov_cnt,const struct iovec *iov,unsigned int iov_cnt,size_t offset,size_t bytes); + +#endif
linux-user/cris/syscall.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef CRIS_SYSCALL_H +#define CRIS_SYSCALL_H 1 +#define UNAME_MACHINE "cris"
@@ -34,3 +37,5 @@ struct target_pt_regs {unsigned long exs; unsigned long eda; }; + +#endif
linux-user/microblaze/syscall.h +6 -0
@@ -1,3 +1,7 @@ +#ifndef MICROBLAZE_SYSCALLS_H +#define MICROBLAZE_SYSCALLS_H 1 + +#define UNAME_MACHINE "microblaze"/* We use microblaze_reg_t to keep things similar to the kernel sources. */
@@ -43,3 +47,5 @@ struct target_pt_regs {microblaze_reg_t fsr; uint32_t kernel_mode; }; + +#endif
linux-user/syscall_defs.h +6 -0
@@ -4,6 +4,10 @@most of them stay the same, so we handle it by putting ifdefs if necessary */ +#ifndef SYSCALL_DEFS_H +#define SYSCALL_DEFS_H 1 + +#include "syscall_nr.h" #define SOCKOP_socket 1
@@ -2425,3 +2429,5 @@ struct target_ucred {uint32_t uid; uint32_t gid; }; + +#endif
slirp/bootp.h +4 -0
@@ -1,4 +1,6 @@/* bootp/dhcp defines */ +#ifndef SLIRP_BOOTP_H +#define SLIRP_BOOTP_H 1#define BOOTP_SERVER 67#define BOOTP_CLIENT 68
@@ -120,3 +122,5 @@ typedef struct {#define NB_BOOTP_CLIENTS 16void bootp_input (struct mbuf *m); + +#endif
slirp/main.h +4 -0
@@ -4,6 +4,8 @@* Please read the file COPYRIGHT for the * terms and conditions of the copyright. */ +#ifndef SLIRP_MAIN_H +#define SLIRP_MAIN_H 1#ifdef HAVE_SYS_SELECT_H #include <sys/select.h>
@@ -45,3 +47,5 @@ extern int tcp_keepintvl;int if_encap (Slirp *slirp,struct mbuf *ifm);ssize_t slirp_send (struct socket *so,const void *buf,size_t len,int flags); + +#endif
slirp/tftp.h +4 -0
@@ -1,4 +1,6 @@/* tftp defines */ +#ifndef SLIRP_TFTP_H +#define SLIRP_TFTP_H 1#define TFTP_SESSIONS_MAX 3
@@ -43,3 +45,5 @@ struct tftp_session { };void tftp_input (struct mbuf *m); + +#endif
softmmu-semi.h +4 -0
@@ -6,6 +6,8 @@* * This code is licensed under the GPL */ +#ifndef SOFTMMU_SEMI_H +#define SOFTMMU_SEMI_H 1static inline uint32_t softmmu_tget32 (CPUArchState *env,uint32_t addr) {
@@ -71,3 +73,5 @@ static void softmmu_unlock_user(CPUArchState *env, void *p, target_ulong addr, free(p); }#define unlock_user (s, args, len) softmmu_unlock_user(env, s, args, len) + +#endif
target-cris/crisv32-decode.h +4 -0
@@ -17,6 +17,8 @@* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#ifndef CRISV32_DECODE_H +#define CRISV32_DECODE_H 1/* Convenient binary macros. */ #define HEX__ (n) 0x##n##LU
@@ -126,3 +128,5 @@#define DEC_FTAG_FIDX_D_M {B8(10101011), B8(11111111)}#define DEC_FTAG_FIDX_I_M {B8(11010011), B8(11111111)} + +#endif
tcg/arm/tcg-target.h +3 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_ARM #define TCG_TARGET_ARM 1#undef TCG_TARGET_WORDS_BIGENDIAN
@@ -91,3 +92,5 @@ static inline void flush_icache_range(tcg_target_ulong start, __asm __volatile__ ("swi 0x9f0002" : :"r" (_beg),"r" (_end),"r" (_flg)); #endif } + +#endif
tcg/hppa/tcg-target.h +3 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ +#ifndef TCG_TARGET_HPPA #define TCG_TARGET_HPPA 1#if TCG_TARGET_REG_BITS !=32
@@ -119,3 +120,5 @@ static inline void flush_icache_range(tcg_target_ulong start, start += 32; } } + +#endif
tcg/i386/tcg-target.h +3 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_I386 #define TCG_TARGET_I386 1//#define TCG_TARGET_WORDS_BIGENDIAN
@@ -135,3 +136,5 @@ static inline void flush_icache_range(tcg_target_ulong start, tcg_target_ulong stop) { } + +#endif
tcg/ia64/tcg-target.h +3 -0
@@ -22,6 +22,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_IA64 #define TCG_TARGET_IA64 1/* We only map the first 64 registers */
@@ -158,3 +159,5 @@ static inline void flush_icache_range(tcg_target_ulong start, } asmvolatile (";;sync.i;;srlz.i;;" ); } + +#endif
tcg/mips/tcg-target.h +3 -0
@@ -23,6 +23,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_MIPS #define TCG_TARGET_MIPS 1#ifdef __MIPSEB__
@@ -127,3 +128,5 @@ static inline void flush_icache_range(tcg_target_ulong start, {cacheflush ((void *)start, stop-start,ICACHE ); } + +#endif
tcg/ppc/tcg-target.h +3 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_PPC #define TCG_TARGET_PPC 1#define TCG_TARGET_WORDS_BIGENDIAN
@@ -99,3 +100,5 @@ typedef enum {#define tcg_qemu_tb_exec (env, tb_ptr) \ ((long __attribute__ ((longcall)) \ (*)(void *, void *))code_gen_prologue)(env, tb_ptr) + +#endif
tcg/ppc64/tcg-target.h +3 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_PPC64 #define TCG_TARGET_PPC64 1#define TCG_TARGET_WORDS_BIGENDIAN
@@ -109,3 +110,5 @@ typedef enum {#define TCG_AREG0 TCG_REG_R27#define TCG_TARGET_EXTEND_ARGS 1 + +#endif
tcg/s390/tcg-target.h +3 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_S390 #define TCG_TARGET_S390 1#define TCG_TARGET_WORDS_BIGENDIAN
@@ -103,3 +104,5 @@ static inline void flush_icache_range(tcg_target_ulong start, tcg_target_ulong stop) { } + +#endif
tcg/sparc/tcg-target.h +3 -0
@@ -21,6 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef TCG_TARGET_SPARC #define TCG_TARGET_SPARC 1#define TCG_TARGET_WORDS_BIGENDIAN
@@ -138,3 +139,5 @@ static inline void flush_icache_range(tcg_target_ulong start,for (; p < stop; p +=8 ) __asm__ __volatile__("flush\t%0" : : "r" (p)); } + +#endif
tests/tcg/cris/crisutils.h +5 -0
@@ -1,3 +1,6 @@ +#ifndef CRISUTILS_H +#define CRISUTILS_H 1 +static char *tst_cc_loc =NULL ;#define cris_tst_cc_init () \
@@ -69,3 +72,5 @@ static inline void cris_tst_cc(const int n, const int z,if (c)cris_tst_cc_c1 ();else cris_tst_cc_c0 (); asm volatile ("" : : "g" (_err)); } + +#endif
ui/curses_keys.h +5 -0
@@ -22,6 +22,9 @@* THE SOFTWARE. */ +#ifndef QEMU_CURSES_KEYS_H +#define QEMU_CURSES_KEYS_H 1 +#include <curses.h> #include "keymaps.h"
@@ -507,3 +510,5 @@ static const name2keysym_t name2keysym[] = { { NULL, 0 }, }; + +#endif
ui/d3des.h +4 -0
@@ -9,6 +9,8 @@* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ +#ifndef D3DES_H +#define D3DES_H 1/* d3des.h - *
@@ -49,3 +51,5 @@ void des(unsigned char *, unsigned char *);/* d3des.h V5.09 rwo 9208.04 15:06 Graven Imagery ********************************************************************/ + +#endif
Signature · 1 line
1.8.0.2
PATCH 21/32 qapi: move include files to include/qobject/
In reply to Paolo Bonzini---
backends/rng-egd.c | 2 +-
backends/rng-random.c | 2 +-
backends/rng.c | 2 +-
balloon.c | 2 +-
block.c | 2 +-
block.h | 2 +-
block/qcow2.c | 2 +-
block/qed.c | 2 +-
block_int.h | 2 +-
blockdev-nbd.c | 2 +-
blockdev.c | 4 ++--
blockdev.h | 2 +-
blockjob.c | 2 +-
dump-stub.c | 2 +-
dump.c | 2 +-
error.c | 8 ++++----
hmp.h | 2 +-
hw/ivshmem.c | 2 +-
hw/mc146818rtc.c | 2 +-
hw/pci/pci-hotplug.c | 2 +-
hw/pci/pcie_aer.c | 2 +-
hw/qdev-addr.c | 2 +-
hw/qdev-core.h | 2 +-
hw/qdev-properties.c | 4 ++--
hw/qdev.c | 4 ++--
hw/vga_int.h | 2 +-
hw/watchdog.c | 2 +-
include/net/net.h | 2 +-
include/net/slirp.h | 2 +-
.../qapi/dealloc-visitor.h | 2 +-
error.h => include/qapi/error.h | 0
{qapi => include/qapi}/opts-visitor.h | 2 +-
{qapi => include/qapi}/qmp-input-visitor.h | 4 ++--
{qapi => include/qapi}/qmp-output-visitor.h | 4 ++--
qapi/qmp-core.h => include/qapi/qmp/dispatch.h | 6 +++---
json-lexer.h => include/qapi/qmp/json-lexer.h | 4 ++--
json-parser.h => include/qapi/qmp/json-parser.h | 4 ++--
json-streamer.h => include/qapi/qmp/json-streamer.h | 4 ++--
qbool.h => include/qapi/qmp/qbool.h | 2 +-
qdict.h => include/qapi/qmp/qdict.h | 4 ++--
qerror.h => include/qapi/qmp/qerror.h | 6 +++---
qfloat.h => include/qapi/qmp/qfloat.h | 2 +-
qint.h => include/qapi/qmp/qint.h | 2 +-
qjson.h => include/qapi/qmp/qjson.h | 4 ++--
qlist.h => include/qapi/qmp/qlist.h | 2 +-
qobject.h => include/qapi/qmp/qobject.h | 0
qstring.h => include/qapi/qmp/qstring.h | 2 +-
qemu-objects.h => include/qapi/qmp/types.h | 16 ++++++++--------
{qapi => include/qapi}/string-input-visitor.h | 2 +-
{qapi => include/qapi}/string-output-visitor.h | 2 +-
qapi/qapi-visit-impl.h => include/qapi/visitor-impl.h | 4 ++--
qapi/qapi-visit-core.h => include/qapi/visitor.h | 2 +-
include/qemu/rng.h | 2 +-
include/ui/console.h | 4 ++--
json-lexer.c | 10 +++++-----
json-parser.c | 18 +++++++++---------
json-streamer.c | 10 +++++-----
migration.h | 4 ++--
monitor.c | 16 ++++++++--------
monitor.h | 4 ++--
net/net.c | 2 +-
pixman | 2 +-
qapi/opts-visitor.c | 6 +++---
qapi/qapi-dealloc-visitor.c | 6 +++---
qapi/qapi-visit-core.c | 6 +++---
qapi/qmp-dispatch.c | 10 +++++-----
qapi/qmp-input-visitor.c | 8 ++++----
qapi/qmp-output-visitor.c | 8 ++++----
qapi/qmp-registry.c | 2 +-
qapi/string-input-visitor.c | 6 +++---
qapi/string-output-visitor.c | 6 +++---
qbool.c | 4 ++--
qdict.c | 12 ++++++------
qemu-char.h | 4 ++--
qemu-config.c | 2 +-
qemu-config.h | 2 +-
qemu-img.c | 2 +-
qemu-option.c | 6 +++---
qemu-option.h | 4 ++--
qemu_socket.h | 4 ++--
qerror.c | 4 ++--
qfloat.c | 4 ++--
qga/commands-posix.c | 2 +-
qga/commands-win32.c | 2 +-
qga/commands.c | 2 +-
qga/guest-agent-core.h | 2 +-
qga/main.c | 12 ++++++------
qint.c | 4 ++--
qjson.c | 18 +++++++++---------
qlist.c | 4 ++--
qom/object.c | 12 ++++++------
qom/qom-qobject.c | 2 +-
qstring.c | 4 ++--
scripts/qapi-commands.py | 14 +++++++-------
scripts/qapi-types.py | 2 +-
scripts/qapi-visit.py | 2 +-
stubs/arch-query-cpu-def.c | 2 +-
target-i386/cpu-qom.h | 2 +-
target-i386/cpu.c | 4 ++--
target-openrisc/cpu.h | 2 +-
tests/check-qdict.c | 6 +++---
tests/check-qfloat.c | 2 +-
tests/check-qint.c | 2 +-
tests/check-qjson.c | 14 +++++++-------
tests/check-qlist.c | 4 ++--
tests/check-qstring.c | 2 +-
tests/test-qmp-commands.c | 4 ++--
tests/test-qmp-input-strict.c | 2 +-
tests/test-qmp-input-visitor.c | 2 +-
tests/test-qmp-output-visitor.c | 2 +-
tests/test-string-input-visitor.c | 2 +-
tests/test-string-output-visitor.c | 2 +-
tests/test-visitor-serialization.c | 2 +-
ui/input.c | 2 +-
ui/spice-core.c | 8 ++++----
ui/vnc-enc-tight.c | 2 +-
ui/vnc-palette.h | 2 +-
ui/vnc.c | 2 +-
vl.c | 2 +-
119 files changed, 242 insertions(+), 242 deletions(-)
rename qapi/qapi-dealloc-visitor.h => include/qapi/dealloc-visitor.h (95%)
rename error.h => include/qapi/error.h (100%)
rename {qapi => include/qapi}/opts-visitor.h (96%)
rename {qapi => include/qapi}/qmp-input-visitor.h (91%)
rename {qapi => include/qapi}/qmp-output-visitor.h (91%)
rename qapi/qmp-core.h => include/qapi/qmp/dispatch.h (93%)
rename json-lexer.h => include/qapi/qmp/json-lexer.h (94%)
rename json-parser.h => include/qapi/qmp/json-parser.h (90%)
rename json-streamer.h => include/qapi/qmp/json-streamer.h (93%)
rename qbool.h => include/qapi/qmp/qbool.h (94%)
rename qdict.h => include/qapi/qmp/qdict.h (97%)
rename qerror.h => include/qapi/qmp/qerror.h (99%)
rename qfloat.h => include/qapi/qmp/qfloat.h (94%)
rename qint.h => include/qapi/qmp/qint.h (94%)
rename qjson.h => include/qapi/qmp/qjson.h (91%)
rename qlist.h => include/qapi/qmp/qlist.h (98%)
rename qobject.h => include/qapi/qmp/qobject.h (100%)
rename qstring.h => include/qapi/qmp/qstring.h (96%)
rename qemu-objects.h => include/qapi/qmp/types.h (60%)
rename {qapi => include/qapi}/string-input-visitor.h (95%)
rename {qapi => include/qapi}/string-output-visitor.h (95%)
rename qapi/qapi-visit-impl.h => include/qapi/visitor-impl.h (98%)
rename qapi/qapi-visit-core.h => include/qapi/visitor.h (99%)backends/rng-egd.c +1 -1
@@ -12,7 +12,7 @@#include "qemu/rng.h" #include "qemu-char.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "hw/qdev.h" /* just for DEFINE_PROP_CHR */ #define TYPE_RNG_EGD "rng-egd"
backends/rng-random.c +1 -1
@@ -12,7 +12,7 @@#include "qemu/rng-random.h" #include "qemu/rng.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "main-loop.h" struct RndRandom
backends/rng.c +1 -1
@@ -11,7 +11,7 @@*/ #include "qemu/rng.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" void rng_backend_request_entropy(RngBackend *s, size_t size, EntropyReceiveFunc *receive_entropy,
balloon.c +1 -1
@@ -30,7 +30,7 @@#include "balloon.h" #include "trace.h" #include "qmp-commands.h" -#include "qjson.h" +#include "qapi/qmp/qjson.h" static QEMUBalloonEvent *balloon_event_fn;static QEMUBalloonStatus *balloon_stat_fn;
block.c +1 -1
@@ -28,7 +28,7 @@#include "block_int.h" #include "blockjob.h" #include "module.h" -#include "qjson.h" +#include "qapi/qmp/qjson.h" #include "sysemu.h" #include "notify.h" #include "qemu-coroutine.h"
block.h +1 -1
@@ -5,7 +5,7 @@#include "qemu-common.h" #include "qemu-option.h" #include "qemu-coroutine.h" -#include "qobject.h" +#include "qapi/qmp/qobject.h" #include "qapi-types.h" /* block.c */
block/qcow2.c +1 -1
@@ -28,7 +28,7 @@#include "aes.h" #include "block/qcow2.h" #include "qemu-error.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "trace.h" /*
block/qed.c +1 -1
@@ -15,7 +15,7 @@#include "qemu-timer.h" #include "trace.h" #include "qed.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "migration.h" static void qed_aio_cancel (BlockDriverAIOCB *blockacb)
block_int.h +1 -1
@@ -30,7 +30,7 @@#include "qemu-coroutine.h" #include "qemu-timer.h" #include "qapi-types.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "monitor.h" #define BLOCK_FLAG_ENCRYPT 1
blockdev-nbd.c +1 -1
@@ -12,7 +12,7 @@#include "blockdev.h" #include "hw/block-common.h" #include "monitor.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "sysemu.h" #include "qmp-commands.h" #include "trace.h"
blockdev.c +2 -2
@@ -11,10 +11,10 @@#include "hw/block-common.h" #include "blockjob.h" #include "monitor.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "qemu-option.h" #include "qemu-config.h" -#include "qemu-objects.h" +#include "qapi/qmp/types.h" #include "sysemu.h" #include "block_int.h" #include "qmp-commands.h"
blockdev.h +1 -1
@@ -11,7 +11,7 @@#define BLOCKDEV_H #include "block.h" -#include "error.h" +#include "qapi/error.h" #include "qemu-queue.h" void blockdev_mark_auto_del (BlockDriverState *bs);
blockjob.c +1 -1
@@ -30,7 +30,7 @@#include "block.h" #include "blockjob.h" #include "block_int.h" -#include "qjson.h" +#include "qapi/qmp/qjson.h" #include "qemu-coroutine.h" #include "qmp-commands.h" #include "qemu-timer.h"
dump-stub.c +1 -1
@@ -13,7 +13,7 @@#include "qemu-common.h" #include "dump.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "qmp-commands.h" /* we need this function in hmp.c */
dump.c +1 -1
@@ -21,7 +21,7 @@#include "dump.h" #include "sysemu.h" #include "memory_mapping.h" -#include "error.h" +#include "qapi/error.h" #include "qmp-commands.h" #include "gdbstub.h"
error.c +4 -4
@@ -11,11 +11,11 @@*/ #include "qemu-common.h" -#include "error.h" -#include "qjson.h" -#include "qdict.h" +#include "qapi/error.h" +#include "qapi/qmp/qjson.h" +#include "qapi/qmp/qdict.h" #include "qapi-types.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" struct Error {
hmp.h +1 -1
@@ -16,7 +16,7 @@#include "qemu-common.h" #include "qapi-types.h" -#include "qdict.h" +#include "qapi/qmp/qdict.h" void hmp_info_name (Monitor *mon);void hmp_info_version (Monitor *mon);
hw/ivshmem.c +1 -1
@@ -22,7 +22,7 @@#include "pci/msix.h" #include "kvm.h" #include "migration.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "event_notifier.h" #include "qemu-char.h"
hw/mc146818rtc.c +1 -1
@@ -25,7 +25,7 @@#include "qemu-timer.h" #include "sysemu.h" #include "mc146818rtc.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/visitor.h" #ifdef TARGET_I386 #include "apic.h"
hw/pci/pci-hotplug.c +1 -1
@@ -32,7 +32,7 @@#include "hw/virtio-blk.h" #include "qemu-config.h" #include "blockdev.h" -#include "error.h" +#include "qapi/error.h" #if defined(TARGET_I386 ) static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
hw/pci/pcie_aer.c +1 -1
@@ -19,7 +19,7 @@*/ #include "sysemu.h" -#include "qemu-objects.h" +#include "qapi/qmp/types.h" #include "monitor.h" #include "hw/pci/pci_bridge.h" #include "hw/pci/pcie.h"
hw/qdev-addr.c +1 -1
@@ -1,7 +1,7 @@#include "qdev.h" #include "qdev-addr.h" #include "hwaddr.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/visitor.h" /* --- target physical address --- */
hw/qdev-core.h +1 -1
@@ -6,7 +6,7 @@#include "qemu-types.h" #include "qemu/object.h" #include "hw/irq.h" -#include "error.h" +#include "qapi/error.h" enum DevState {DEV_STATE_CREATED =1 ,
hw/qdev-properties.c +2 -2
@@ -1,10 +1,10 @@#include "net/net.h" #include "qdev.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "blockdev.h" #include "hw/block-common.h" #include "net/hub.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/visitor.h" #include "qemu-char.h" void *qdev_get_prop_ptr (DeviceState *dev,Property *prop)
hw/qdev.c +2 -2
@@ -28,8 +28,8 @@#include "net/net.h" #include "qdev.h" #include "sysemu.h" -#include "error.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/error.h" +#include "qapi/visitor.h" int qdev_hotplug =0 ;static bool qdev_hot_added = false;
hw/vga_int.h +1 -1
@@ -25,7 +25,7 @@#define HW_VGA_INT_H 1#include <hw/hw.h> -#include "error.h" +#include "qapi/error.h" #include "memory.h" #define ST01_V_RETRACE 0x08
hw/watchdog.c +1 -1
@@ -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 "qapi/qmp/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 "qapi/qmp/qdict.h" #include "qemu-option.h" #include "qapi-types.h"
include/qapi/dealloc-visitor.h renamed from qapi/qapi-dealloc-visitor.h +1 -1
@@ -14,7 +14,7 @@#ifndef QAPI_DEALLOC_VISITOR_H #define QAPI_DEALLOC_VISITOR_H -#include "qapi-visit-core.h" +#include "qapi/visitor.h" typedef struct QapiDeallocVisitor QapiDeallocVisitor ;
include/qapi/error.h renamed from error.h +0 -0
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/visitor.h" #include "qemu-option.h" typedef struct OptsVisitor OptsVisitor ;
include/qapi/qmp-input-visitor.h renamed from qapi/qmp-input-visitor.h +2 -2
@@ -14,8 +14,8 @@#ifndef QMP_INPUT_VISITOR_H #define QMP_INPUT_VISITOR_H -#include "qapi-visit-core.h" -#include "qobject.h" +#include "qapi/visitor.h" +#include "qapi/qmp/qobject.h" typedef struct QmpInputVisitor QmpInputVisitor ;
include/qapi/qmp-output-visitor.h renamed from qapi/qmp-output-visitor.h +2 -2
@@ -14,8 +14,8 @@#ifndef QMP_OUTPUT_VISITOR_H #define QMP_OUTPUT_VISITOR_H -#include "qapi-visit-core.h" -#include "qobject.h" +#include "qapi/visitor.h" +#include "qapi/qmp/qobject.h" typedef struct QmpOutputVisitor QmpOutputVisitor ;
include/qapi/qmp/dispatch.h renamed from qapi/qmp-core.h +3 -3
@@ -14,9 +14,9 @@#ifndef QMP_CORE_H #define QMP_CORE_H -#include "qobject.h" -#include "qdict.h" -#include "error.h" +#include "qapi/qmp/qobject.h" +#include "qapi/qmp/qdict.h" +#include "qapi/error.h" typedef void (QmpCommandFunc )(QDict *,QObject **,Error **);
include/qapi/qmp/json-lexer.h renamed from json-lexer.h +2 -2
@@ -14,8 +14,8 @@ #ifndef QEMU_JSON_LEXER_H #define QEMU_JSON_LEXER_H -#include "qstring.h" -#include "qlist.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qlist.h" typedef enum json_token_type { JSON_OPERATOR = 100,
include/qapi/qmp/json-parser.h renamed from json-parser.h +2 -2
@@ -15,8 +15,8 @@#define QEMU_JSON_PARSER_H #include "qemu-common.h" -#include "qlist.h" -#include "error.h" +#include "qapi/qmp/qlist.h" +#include "qapi/error.h" QObject *json_parser_parse (QList *tokens,va_list *ap);QObject *json_parser_parse_err (QList *tokens,va_list *ap,Error **errp);
include/qapi/qmp/json-streamer.h renamed from json-streamer.h +2 -2
@@ -14,8 +14,8 @@ #ifndef QEMU_JSON_STREAMER_H #define QEMU_JSON_STREAMER_H -#include "qlist.h" -#include "json-lexer.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/json-lexer.h" typedef struct JSONMessageParser {
include/qapi/qmp/qbool.h renamed from qbool.h +1 -1
@@ -15,7 +15,7 @@#define QBOOL_H #include <stdint.h> -#include "qobject.h" +#include "qapi/qmp/qobject.h" typedef struct QBool { QObject_HEAD;
include/qapi/qmp/qdict.h renamed from qdict.h +2 -2
@@ -13,8 +13,8 @@#ifndef QDICT_H #define QDICT_H -#include "qobject.h" -#include "qlist.h" +#include "qapi/qmp/qobject.h" +#include "qapi/qmp/qlist.h" #include "qemu-queue.h" #include <stdint.h>
include/qapi/qmp/qerror.h renamed from qerror.h +3 -3
@@ -12,10 +12,10 @@#ifndef QERROR_H #define QERROR_H -#include "qdict.h" -#include "qstring.h" +#include "qapi/qmp/qdict.h" +#include "qapi/qmp/qstring.h" #include "qemu-error.h" -#include "error.h" +#include "qapi/error.h" #include "qapi-types.h" #include <stdarg.h>
include/qapi/qmp/qfloat.h renamed from qfloat.h +1 -1
@@ -15,7 +15,7 @@#define QFLOAT_H #include <stdint.h> -#include "qobject.h" +#include "qapi/qmp/qobject.h" typedef struct QFloat { QObject_HEAD;
include/qapi/qmp/qint.h renamed from qint.h +1 -1
@@ -14,7 +14,7 @@#define QINT_H #include <stdint.h> -#include "qobject.h" +#include "qapi/qmp/qobject.h" typedef struct QInt { QObject_HEAD;
include/qapi/qmp/qjson.h renamed from qjson.h +2 -2
@@ -16,8 +16,8 @@#include <stdarg.h> #include "compiler.h" -#include "qobject.h" -#include "qstring.h" +#include "qapi/qmp/qobject.h" +#include "qapi/qmp/qstring.h" QObject *qobject_from_json (const char *string)GCC_FMT_ATTR (1 ,0 );QObject *qobject_from_jsonf (const char *string, ...)GCC_FMT_ATTR (1 ,2 );
include/qapi/qmp/qlist.h renamed from qlist.h +1 -1
@@ -13,7 +13,7 @@#ifndef QLIST_H #define QLIST_H -#include "qobject.h" +#include "qapi/qmp/qobject.h" #include "qemu-queue.h" #include "qemu-queue.h"
include/qapi/qmp/qobject.h renamed from qobject.h +0 -0
include/qapi/qmp/qstring.h renamed from qstring.h +1 -1
@@ -14,7 +14,7 @@#define QSTRING_H #include <stdint.h> -#include "qobject.h" +#include "qapi/qmp/qobject.h" typedef struct QString { QObject_HEAD;
include/qapi/qmp/types.h renamed from qemu-objects.h +8 -8
@@ -13,13 +13,13 @@#ifndef QEMU_OBJECTS_H #define QEMU_OBJECTS_H -#include "qobject.h" -#include "qint.h" -#include "qfloat.h" -#include "qbool.h" -#include "qstring.h" -#include "qdict.h" -#include "qlist.h" -#include "qjson.h" +#include "qapi/qmp/qobject.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qfloat.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qdict.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qjson.h" #endif /* QEMU_OBJECTS_H */
include/qapi/string-input-visitor.h renamed from qapi/string-input-visitor.h +1 -1
@@ -13,7 +13,7 @@#ifndef STRING_INPUT_VISITOR_H #define STRING_INPUT_VISITOR_H -#include "qapi-visit-core.h" +#include "qapi/visitor.h" typedef struct StringInputVisitor StringInputVisitor ;
include/qapi/string-output-visitor.h renamed from qapi/string-output-visitor.h +1 -1
@@ -13,7 +13,7 @@#ifndef STRING_OUTPUT_VISITOR_H #define STRING_OUTPUT_VISITOR_H -#include "qapi-visit-core.h" +#include "qapi/visitor.h" typedef struct StringOutputVisitor StringOutputVisitor ;
include/qapi/visitor-impl.h renamed from qapi/qapi-visit-impl.h +2 -2
@@ -12,8 +12,8 @@#ifndef QAPI_VISITOR_IMPL_H #define QAPI_VISITOR_IMPL_H -#include "error.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/error.h" +#include "qapi/visitor.h" struct Visitor {
include/qapi/visitor.h renamed from qapi/qapi-visit-core.h +1 -1
@@ -13,7 +13,7 @@#ifndef QAPI_VISITOR_CORE_H #define QAPI_VISITOR_CORE_H -#include "error.h" +#include "qapi/error.h" #include <stdlib.h> typedef struct GenericList
include/qemu/rng.h +1 -1
@@ -15,7 +15,7 @@#include "qemu/object.h" #include "qemu-common.h" -#include "error.h" +#include "qapi/error.h" #define TYPE_RNG_BACKEND "rng-backend"#define RNG_BACKEND (obj) \
include/ui/console.h +2 -2
@@ -2,12 +2,12 @@#define CONSOLE_H #include "ui/qemu-pixman.h" -#include "qdict.h" +#include "qapi/qmp/qdict.h" #include "notify.h" #include "monitor.h" #include "trace.h" #include "qapi-types.h" -#include "error.h" +#include "qapi/error.h" /* keyboard/mouse support */
json-lexer.c +5 -5
@@ -11,12 +11,12 @@* */ -#include "qstring.h" -#include "qlist.h" -#include "qdict.h" -#include "qint.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qdict.h" +#include "qapi/qmp/qint.h" #include "qemu-common.h" -#include "json-lexer.h" +#include "qapi/qmp/json-lexer.h" #define MAX_TOKEN_SIZE (64ULL << 20)
json-parser.c +9 -9
@@ -14,15 +14,15 @@#include <stdarg.h> #include "qemu-common.h" -#include "qstring.h" -#include "qint.h" -#include "qdict.h" -#include "qlist.h" -#include "qfloat.h" -#include "qbool.h" -#include "json-parser.h" -#include "json-lexer.h" -#include "qerror.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qdict.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qfloat.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/json-parser.h" +#include "qapi/qmp/json-lexer.h" +#include "qapi/qmp/qerror.h" typedef struct JSONParserContext {
json-streamer.c +5 -5
@@ -11,12 +11,12 @@* */ -#include "qlist.h" -#include "qint.h" -#include "qdict.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qdict.h" #include "qemu-common.h" -#include "json-lexer.h" -#include "json-streamer.h" +#include "qapi/qmp/json-lexer.h" +#include "qapi/qmp/json-streamer.h" #define MAX_TOKEN_SIZE (64ULL << 20)#define MAX_NESTING (1ULL << 10)
migration.h +2 -2
@@ -14,10 +14,10 @@#ifndef QEMU_MIGRATION_H #define QEMU_MIGRATION_H -#include "qdict.h" +#include "qapi/qmp/qdict.h" #include "qemu-common.h" #include "notify.h" -#include "error.h" +#include "qapi/error.h" #include "vmstate.h" #include "qapi-types.h"
monitor.c +8 -8
@@ -47,14 +47,14 @@#include "migration.h" #include "kvm.h" #include "acl.h" -#include "qint.h" -#include "qfloat.h" -#include "qlist.h" -#include "qbool.h" -#include "qstring.h" -#include "qjson.h" -#include "json-streamer.h" -#include "json-parser.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qfloat.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qjson.h" +#include "qapi/qmp/json-streamer.h" +#include "qapi/qmp/json-parser.h" #include "osdep.h" #include "cpu.h" #include "trace.h"
monitor.h +2 -2
@@ -2,8 +2,8 @@#define MONITOR_H #include "qemu-common.h" -#include "qerror.h" -#include "qdict.h" +#include "qapi/qmp/qerror.h" +#include "qapi/qmp/qdict.h" #include "block.h" #include "readline.h"
net/net.c +1 -1
@@ -38,7 +38,7 @@#include "iov.h" #include "qapi-visit.h" #include "qapi/opts-visitor.h" -#include "qapi/qapi-dealloc-visitor.h" +#include "qapi/dealloc-visitor.h" /* Net bridge is currently not supported for W32. */ #if !defined(_WIN32)
pixman +1 -1
@@ -1 +1 @@ -Subproject commit a5e5179b5624c99c812e9bf6e7b907e355a811e8 +Subproject commit 97336fad32acf802003855cd8bd6477fa49a12e3
qapi/opts-visitor.c +3 -3
@@ -11,11 +11,11 @@*/ #include "qemu-common.h" -#include "qerror.h" -#include "opts-visitor.h" +#include "qapi/qmp/qerror.h" +#include "qapi/opts-visitor.h" #include "qemu-queue.h" #include "qemu-option-internal.h" -#include "qapi-visit-impl.h" +#include "qapi/visitor-impl.h" struct OptsVisitor
qapi/qapi-dealloc-visitor.c +3 -3
@@ -11,11 +11,11 @@* */ -#include "qapi-dealloc-visitor.h" +#include "qapi/dealloc-visitor.h" #include "qemu-queue.h" #include "qemu-common.h" -#include "qemu-objects.h" -#include "qapi-visit-impl.h" +#include "qapi/qmp/types.h" +#include "qapi/visitor-impl.h" typedef struct StackEntry {
qapi/qapi-visit-core.c +3 -3
@@ -12,9 +12,9 @@*/ #include "qemu-common.h" -#include "qerror.h" -#include "qapi/qapi-visit-core.h" -#include "qapi/qapi-visit-impl.h" +#include "qapi/qmp/qerror.h" +#include "qapi/visitor.h" +#include "qapi/visitor-impl.h" void visit_start_handle (Visitor *v,void **obj,const char *kind,const char *name,Error **errp)
qapi/qmp-dispatch.c +5 -5
@@ -11,12 +11,12 @@* */ -#include "qemu-objects.h" -#include "qapi/qmp-core.h" -#include "json-parser.h" +#include "qapi/qmp/types.h" +#include "qapi/qmp/dispatch.h" +#include "qapi/qmp/json-parser.h" #include "qapi-types.h" -#include "error.h" -#include "qerror.h" +#include "qapi/error.h" +#include "qapi/qmp/qerror.h" static QDict *qmp_dispatch_check_obj (const QObject *request,Error **errp) {
qapi/qmp-input-visitor.c +4 -4
@@ -11,12 +11,12 @@* */ -#include "qmp-input-visitor.h" -#include "qapi/qapi-visit-impl.h" +#include "qapi/qmp-input-visitor.h" +#include "qapi/visitor-impl.h" #include "qemu-queue.h" #include "qemu-common.h" -#include "qemu-objects.h" -#include "qerror.h" +#include "qapi/qmp/types.h" +#include "qapi/qmp/qerror.h" #define QIV_STACK_SIZE 1024
qapi/qmp-output-visitor.c +4 -4
@@ -11,12 +11,12 @@* */ -#include "qmp-output-visitor.h" -#include "qapi/qapi-visit-impl.h" +#include "qapi/qmp-output-visitor.h" +#include "qapi/visitor-impl.h" #include "qemu-queue.h" #include "qemu-common.h" -#include "qemu-objects.h" -#include "qerror.h" +#include "qapi/qmp/types.h" +#include "qapi/qmp/qerror.h" typedef struct QStackEntry {
qapi/qmp-registry.c +1 -1
@@ -14,7 +14,7 @@#include <glib.h> #include <string.h> -#include "qapi/qmp-core.h" +#include "qapi/qmp/dispatch.h" static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =QTAILQ_HEAD_INITIALIZER (qmp_commands);
qapi/string-input-visitor.c +3 -3
@@ -11,9 +11,9 @@*/ #include "qemu-common.h" -#include "string-input-visitor.h" -#include "qapi/qapi-visit-impl.h" -#include "qerror.h" +#include "qapi/string-input-visitor.h" +#include "qapi/visitor-impl.h" +#include "qapi/qmp/qerror.h" struct StringInputVisitor {
qapi/string-output-visitor.c +3 -3
@@ -11,9 +11,9 @@*/ #include "qemu-common.h" -#include "string-output-visitor.h" -#include "qapi/qapi-visit-impl.h" -#include "qerror.h" +#include "qapi/string-output-visitor.h" +#include "qapi/visitor-impl.h" +#include "qapi/qmp/qerror.h" struct StringOutputVisitor {
qbool.c +2 -2
@@ -11,8 +11,8 @@* */ -#include "qbool.h" -#include "qobject.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qobject.h" #include "qemu-common.h" static void qbool_destroy_obj (QObject *obj);
qdict.c +6 -6
@@ -10,12 +10,12 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qint.h" -#include "qfloat.h" -#include "qdict.h" -#include "qbool.h" -#include "qstring.h" -#include "qobject.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qfloat.h" +#include "qapi/qmp/qdict.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qobject.h" #include "qemu-queue.h" #include "qemu-common.h"
qemu-char.h +2 -2
@@ -6,8 +6,8 @@#include "qemu-option.h" #include "qemu-config.h" #include "qemu-aio.h" -#include "qobject.h" -#include "qstring.h" +#include "qapi/qmp/qobject.h" +#include "qapi/qmp/qstring.h" #include "main-loop.h" /* character device */
qemu-config.c +1 -1
@@ -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
@@ -3,7 +3,7 @@#include <stdio.h> #include "qemu-option.h" -#include "error.h" +#include "qapi/error.h" #include "qemu-option.h" extern QemuOptsList qemu_fsdev_opts;
qemu-img.c +1 -1
@@ -23,7 +23,7 @@*/ #include "qapi-visit.h" #include "qapi/qmp-output-visitor.h" -#include "qjson.h" +#include "qapi/qmp/qjson.h" #include "qemu-common.h" #include "qemu-option.h" #include "qemu-error.h"
qemu-option.c +3 -3
@@ -28,9 +28,9 @@#include "qemu-common.h" #include "qemu-error.h" -#include "qemu-objects.h" -#include "error.h" -#include "qerror.h" +#include "qapi/qmp/types.h" +#include "qapi/error.h" +#include "qapi/qmp/qerror.h" #include "qemu-option-internal.h" /*
qemu-option.h +2 -2
@@ -28,8 +28,8 @@#include <stdint.h> #include "qemu-queue.h" -#include "error.h" -#include "qdict.h" +#include "qapi/error.h" +#include "qapi/qmp/qdict.h" enum QEMUOptionParType {OPT_FLAG ,
qemu_socket.h +2 -2
@@ -27,8 +27,8 @@ int inet_aton(const char *cp, struct in_addr *ia);#endif /* !_WIN32 */ #include "qemu-option.h" -#include "error.h" -#include "qerror.h" +#include "qapi/error.h" +#include "qapi/qmp/qerror.h" /* misc helpers */ int qemu_socket (int domain,int type,int protocol);
qerror.c +2 -2
@@ -11,8 +11,8 @@*/ #include "monitor.h" -#include "qjson.h" -#include "qerror.h" +#include "qapi/qmp/qjson.h" +#include "qapi/qmp/qerror.h" #include "qemu-common.h" static void qerror_destroy_obj (QObject *obj);
qfloat.c +2 -2
@@ -11,8 +11,8 @@* */ -#include "qfloat.h" -#include "qobject.h" +#include "qapi/qmp/qfloat.h" +#include "qapi/qmp/qobject.h" #include "qemu-common.h" static void qfloat_destroy_obj (QObject *obj);
qga/commands-posix.c +1 -1
@@ -17,7 +17,7 @@#include <sys/wait.h> #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #include "qemu-queue.h" #include "host-utils.h"
qga/commands-win32.c +1 -1
@@ -16,7 +16,7 @@#include <powrprof.h> #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" #ifndef SHTDN_REASON_FLAG_PLANNED #define SHTDN_REASON_FLAG_PLANNED 0x80000000
qga/commands.c +1 -1
@@ -13,7 +13,7 @@#include <glib.h> #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" /* Note: in some situations, like with the fsfreeze, logging may be * temporarilly disabled. if it is necessary that a command be able
qga/guest-agent-core.h +1 -1
@@ -10,7 +10,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#include "qapi/qmp-core.h" +#include "qapi/qmp/dispatch.h" #include "qemu-common.h" #define QGA_READ_COUNT_DEFAULT 4096
qga/main.c +6 -6
@@ -20,15 +20,15 @@#include <sys/wait.h> #include <sys/stat.h> #endif -#include "json-streamer.h" -#include "json-parser.h" -#include "qint.h" -#include "qjson.h" +#include "qapi/qmp/json-streamer.h" +#include "qapi/qmp/json-parser.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qjson.h" #include "qga/guest-agent-core.h" #include "module.h" #include "signal.h" -#include "qerror.h" -#include "qapi/qmp-core.h" +#include "qapi/qmp/qerror.h" +#include "qapi/qmp/dispatch.h" #include "qga/channel.h" #ifdef _WIN32#include "qga/service-win32.h"
qint.c +2 -2
@@ -10,8 +10,8 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qint.h" -#include "qobject.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qobject.h" #include "qemu-common.h" static void qint_destroy_obj (QObject *obj);
qjson.c +9 -9
@@ -11,15 +11,15 @@* */ -#include "json-lexer.h" -#include "json-parser.h" -#include "json-streamer.h" -#include "qjson.h" -#include "qint.h" -#include "qlist.h" -#include "qbool.h" -#include "qfloat.h" -#include "qdict.h" +#include "qapi/qmp/json-lexer.h" +#include "qapi/qmp/json-parser.h" +#include "qapi/qmp/json-streamer.h" +#include "qapi/qmp/qjson.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qfloat.h" +#include "qapi/qmp/qdict.h" typedef struct JSONParsingState {
qlist.c +2 -2
@@ -10,8 +10,8 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qlist.h" -#include "qobject.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qobject.h" #include "qemu-queue.h" #include "qemu-common.h"
qom/object.c +6 -6
@@ -12,18 +12,18 @@#include "qemu/object.h" #include "qemu-common.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/visitor.h" #include "qapi/string-input-visitor.h" #include "qapi/string-output-visitor.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" /* TODO: replace QObject with a simpler visitor to avoid a dependency * of the QOM core on QObject? */ #include "qemu/qom-qobject.h" -#include "qobject.h" -#include "qbool.h" -#include "qint.h" -#include "qstring.h" +#include "qapi/qmp/qobject.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qstring.h" #define MAX_INTERFACES 32
qom/qom-qobject.c +1 -1
@@ -12,7 +12,7 @@#include "qemu-common.h" #include "qemu/object.h" #include "qemu/qom-qobject.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/visitor.h" #include "qapi/qmp-input-visitor.h" #include "qapi/qmp-output-visitor.h"
qstring.c +2 -2
@@ -10,8 +10,8 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qobject.h" -#include "qstring.h" +#include "qapi/qmp/qobject.h" +#include "qapi/qmp/qstring.h" #include "qemu-common.h" static void qstring_destroy_obj (QObject *obj);
scripts/qapi-commands.py +7 -7
@@ -342,8 +342,8 @@ def gen_command_decl_prologue(header, guard, prefix=""): #define %(guard)s #include "%(prefix)sqapi-types.h" -#include "qdict.h" -#include "error.h" +#include "qapi/qmp/qdict.h" +#include "qapi/error.h" ''', header=basename(header), guard=guardname(header), prefix=prefix)
@@ -368,13 +368,13 @@ def gen_command_def_prologue(prefix="", proxy=False): #include "qemu-common.h" #include "module.h" -#include "qerror.h" -#include "qemu-objects.h" -#include "qapi/qmp-core.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/qmp/qerror.h" +#include "qapi/qmp/types.h" +#include "qapi/qmp/dispatch.h" +#include "qapi/visitor.h" #include "qapi/qmp-output-visitor.h" #include "qapi/qmp-input-visitor.h" -#include "qapi/qapi-dealloc-visitor.h" +#include "qapi/dealloc-visitor.h" #include "%(prefix)sqapi-types.h" #include "%(prefix)sqapi-visit.h"
scripts/qapi-types.py +1 -1
@@ -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
@@ -322,7 +322,7 @@ fdecl.write(mcgen(''' #ifndef %(guard)s #define %(guard)s -#include "qapi/qapi-visit-core.h" +#include "qapi/visitor.h" #include "%(prefix)sqapi-types.h" ''', prefix=prefix, guard=guardname(h_file)))
stubs/arch-query-cpu-def.c +1 -1
@@ -1,6 +1,6 @@#include "qemu-common.h" #include "arch_init.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" CpuDefinitionInfoList *arch_query_cpu_definitions (Error **errp) {
target-i386/cpu-qom.h +1 -1
@@ -22,7 +22,7 @@#include "qemu/cpu.h" #include "cpu.h" -#include "error.h" +#include "qapi/error.h" #ifdef TARGET_X86_64 #define TYPE_X86_CPU "x86_64-cpu"
target-i386/cpu.c +2 -2
@@ -26,9 +26,9 @@#include "qemu-option.h" #include "qemu-config.h" -#include "qerror.h" +#include "qapi/qmp/qerror.h" -#include "qapi/qapi-visit-core.h" +#include "qapi/visitor.h" #include "arch_init.h" #include "hyperv.h"
target-openrisc/cpu.h +1 -1
@@ -33,7 +33,7 @@ struct OpenRISCCPU;#include "cpu-defs.h" #include "softfloat.h" #include "qemu/cpu.h" -#include "error.h" +#include "qapi/error.h" #define TYPE_OPENRISC_CPU "or32-cpu"
tests/check-qdict.c +3 -3
@@ -11,9 +11,9 @@*/ #include <glib.h> -#include "qint.h" -#include "qdict.h" -#include "qstring.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qdict.h" +#include "qapi/qmp/qstring.h" #include "qemu-common.h" /*
tests/check-qfloat.c +1 -1
@@ -12,7 +12,7 @@*/ #include <glib.h> -#include "qfloat.h" +#include "qapi/qmp/qfloat.h" #include "qemu-common.h" /*
tests/check-qint.c +1 -1
@@ -11,7 +11,7 @@*/ #include <glib.h> -#include "qint.h" +#include "qapi/qmp/qint.h" #include "qemu-common.h" /*
tests/check-qjson.c +7 -7
@@ -10,13 +10,13 @@*/ #include <glib.h> -#include "qstring.h" -#include "qint.h" -#include "qdict.h" -#include "qlist.h" -#include "qfloat.h" -#include "qbool.h" -#include "qjson.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qdict.h" +#include "qapi/qmp/qlist.h" +#include "qapi/qmp/qfloat.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qjson.h" #include "qemu-common.h"
tests/check-qlist.c +2 -2
@@ -11,8 +11,8 @@*/ #include <glib.h> -#include "qint.h" -#include "qlist.h" +#include "qapi/qmp/qint.h" +#include "qapi/qmp/qlist.h" /* * Public Interface test-cases
tests/check-qstring.c +1 -1
@@ -11,7 +11,7 @@*/ #include <glib.h> -#include "qstring.h" +#include "qapi/qmp/qstring.h" #include "qemu-common.h" /*
tests/test-qmp-commands.c +2 -2
@@ -1,7 +1,7 @@#include <glib.h> -#include "qemu-objects.h" +#include "qapi/qmp/types.h" #include "test-qmp-commands.h" -#include "qapi/qmp-core.h" +#include "qapi/qmp/dispatch.h" #include "module.h" #include "qapi/qmp-input-visitor.h" #include "tests/test-qapi-types.h"
tests/test-qmp-input-strict.c +1 -1
@@ -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/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"
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 "qapi/qmp/qint.h" +#include "qapi/qmp/qbool.h" +#include "qapi/qmp/qstring.h" +#include "qapi/qmp/qjson.h" #include "notify.h" #include "migration.h" #include "monitor.h"
ui/vnc-enc-tight.c +1 -1
@@ -45,7 +45,7 @@#endif #include "bswap.h" -#include "qint.h" +#include "qapi/qmp/qint.h" #include "vnc.h" #include "vnc-enc-tight.h" #include "vnc-palette.h"
ui/vnc-palette.h +1 -1
@@ -29,7 +29,7 @@#ifndef VNC_PALETTE_H #define VNC_PALETTE_H -#include "qlist.h" +#include "qapi/qmp/qlist.h" #include "qemu-queue.h" #include <stdint.h> #include <stdbool.h>
ui/vnc.c +1 -1
@@ -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 "qapi/qmp/qjson.h" #include "qemu-option.h" #include "qemu-config.h" #include "qemu-options.h"
Signature · 1 line
1.8.0.2
PATCH 22/32 block: move include files to include/block/
In reply to Paolo Bonzini--- aes.c | 2 +- aio-posix.c | 2 +- aio-win32.c | 2 +- async.c | 2 +- block-migration.c | 2 +- block.c | 6 +++--- block/blkdebug.c | 2 +- block/blkverify.c | 2 +- block/bochs.c | 2 +- block/cloop.c | 2 +- block/commit.c | 4 ++-- block/cow.c | 2 +- block/curl.c | 2 +- block/dmg.c | 2 +- block/gluster.c | 2 +- block/iscsi.c | 2 +- block/linux-aio.c | 2 +- block/mirror.c | 4 ++-- block/nbd.c | 4 ++-- block/parallels.c | 2 +- block/qcow.c | 4 ++-- block/qcow2-cache.c | 2 +- block/qcow2-cluster.c | 2 +- block/qcow2-refcount.c | 2 +- block/qcow2-snapshot.c | 2 +- block/qcow2.c | 4 ++-- block/qcow2.h | 4 ++-- block/qed.h | 2 +- block/raw-posix.c | 4 ++-- block/raw-win32.c | 4 ++-- block/raw.c | 2 +- block/rbd.c | 2 +- block/sheepdog.c | 2 +- block/stream.c | 4 ++-- block/vdi.c | 2 +- block/vmdk.c | 2 +- block/vpc.c | 2 +- block/vvfat.c | 2 +- block/win32-aio.c | 4 ++-- blockdev-nbd.c | 2 +- blockdev.c | 4 ++-- blockdev.h | 2 +- blockjob.c | 8 ++++---- cmd.c | 2 +- coroutine-gthread.c | 2 +- coroutine-sigaltstack.c | 2 +- coroutine-ucontext.c | 2 +- coroutine-win32.c | 2 +- dma.h | 2 +- hw/9pfs/codir.c | 2 +- hw/9pfs/cofile.c | 2 +- hw/9pfs/cofs.c | 2 +- hw/9pfs/coxattr.c | 2 +- hw/9pfs/virtio-9p-coth.c | 2 +- hw/9pfs/virtio-9p-coth.h | 2 +- hw/9pfs/virtio-9p.h | 2 +- hw/hd-geometry.c | 2 +- hw/hw.h | 2 +- hw/ide/cmd646.c | 2 +- hw/ide/ich.c | 2 +- hw/ide/isa.c | 2 +- hw/ide/macio.c | 2 +- hw/ide/microdrive.c | 2 +- hw/ide/mmio.c | 2 +- hw/ide/pci.c | 2 +- hw/ide/via.c | 2 +- hw/mips_fulong2e.c | 2 +- hw/mips_malta.c | 2 +- hw/musicpal.c | 2 +- hw/pflash_cfi01.c | 2 +- hw/pflash_cfi02.c | 2 +- hw/ppc405_boards.c | 2 +- hw/s390-virtio-bus.c | 2 +- hw/s390-virtio.c | 2 +- hw/scsi.h | 2 +- hw/sd.c | 2 +- hw/spitz.c | 2 +- hw/tosa.c | 2 +- aes.h => include/block/aes.h | 0 qemu-aio.h => include/block/aio.h | 0 block.h => include/block/block.h | 4 ++-- block_int.h => include/block/block_int.h | 4 ++-- blockjob.h => include/block/blockjob.h | 2 +- qemu-coroutine.h => include/block/coroutine.h | 0 qemu-coroutine-int.h => include/block/coroutine_int.h | 2 +- nbd.h => include/block/nbd.h | 0 thread-pool.h => include/block/thread-pool.h | 4 ++-- iohandler.c | 2 +- main-loop.c | 2 +- main-loop.h | 2 +- migration-exec.c | 2 +- migration-fd.c | 2 +- migration-tcp.c | 2 +- migration-unix.c | 2 +- migration.c | 2 +- monitor.h | 2 +- nbd.c | 6 +++--- qemu-char.h | 2 +- qemu-coroutine-io.c | 2 +- qemu-coroutine-lock.c | 6 +++--- qemu-coroutine-sleep.c | 2 +- qemu-coroutine.c | 4 ++-- qemu-img.c | 2 +- qemu-io.c | 2 +- qemu-nbd.c | 4 ++-- tests/test-aio.c | 2 +- tests/test-coroutine.c | 2 +- tests/test-thread-pool.c | 6 +++--- thread-pool.c | 6 +++--- 109 files changed, 134 insertions(+), 134 deletions(-) rename aes.h => include/block/aes.h (100%) rename qemu-aio.h => include/block/aio.h (100%) rename block.h => include/block/block.h (99%) rename block_int.h => include/block/block_int.h (99%) rename blockjob.h => include/block/blockjob.h (99%) rename qemu-coroutine.h => include/block/coroutine.h (100%) rename qemu-coroutine-int.h => include/block/coroutine_int.h (98%) rename nbd.h => include/block/nbd.h (100%) rename thread-pool.h => include/block/thread-pool.h (93%)
aes.c +1 -1
@@ -28,7 +28,7 @@* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "qemu-common.h" -#include "aes.h" +#include "block/aes.h" #ifndef NDEBUG #define NDEBUG
aio-posix.c +1 -1
@@ -14,7 +14,7 @@*/ #include "qemu-common.h" -#include "block.h" +#include "block/block.h" #include "qemu-queue.h" #include "qemu_socket.h"
aio-win32.c +1 -1
@@ -16,7 +16,7 @@*/ #include "qemu-common.h" -#include "block.h" +#include "block/block.h" #include "qemu-queue.h" #include "qemu_socket.h"
async.c +1 -1
@@ -23,7 +23,7 @@*/ #include "qemu-common.h" -#include "qemu-aio.h" +#include "block/aio.h" #include "main-loop.h" /***********************************************************/
block-migration.c +1 -1
@@ -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 "qapi/qmp/qjson.h" #include "sysemu.h" #include "notify.h" -#include "qemu-coroutine.h" +#include "block/coroutine.h" #include "qmp-commands.h" #include "qemu-timer.h"
block/blkdebug.c +1 -1
@@ -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/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-aio.h" #include "event_notifier.h"
block/mirror.c +2 -2
@@ -12,8 +12,8 @@*/ #include "trace.h" -#include "blockjob.h" -#include "block_int.h" +#include "block/blockjob.h" +#include "block/block_int.h" #include "qemu/ratelimit.h" enum {
block/nbd.c +2 -2
@@ -27,9 +27,9 @@*/ #include "qemu-common.h" -#include "nbd.h" +#include "block/nbd.h" #include "uri.h" -#include "block_int.h" +#include "block/block_int.h" #include "module.h" #include "qemu_socket.h"
block/parallels.c +1 -1
@@ -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 "qapi/qmp/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 +2 -2
@@ -24,10 +24,10 @@#include "qemu-common.h" #include "qemu-timer.h" #include "qemu-log.h" -#include "block_int.h" +#include "block/block_int.h" #include "module.h" #include "trace.h" -#include "thread-pool.h" +#include "block/thread-pool.h" #include "iov.h" #include "raw-aio.h"
block/raw-win32.c +2 -2
@@ -23,11 +23,11 @@*/ #include "qemu-common.h" #include "qemu-timer.h" -#include "block_int.h" +#include "block/block_int.h" #include "module.h" #include "raw-aio.h" #include "trace.h" -#include "thread-pool.h" +#include "block/thread-pool.h" #include "iov.h" #include <windows.h> #include <winioctl.h>
block/raw.c +1 -1
@@ -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" #if defined(CONFIG_UUID )
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"
block/win32-aio.c +2 -2
@@ -23,10 +23,10 @@*/ #include "qemu-common.h" #include "qemu-timer.h" -#include "block_int.h" +#include "block/block_int.h" #include "module.h" #include "qemu-common.h" -#include "qemu-aio.h" +#include "block/aio.h" #include "raw-aio.h" #include "event_notifier.h" #include <windows.h>
blockdev-nbd.c +1 -1
@@ -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 "qapi/qmp/qerror.h" #include "qemu-option.h" #include "qemu-config.h" #include "qapi/qmp/types.h" #include "sysemu.h" -#include "block_int.h" +#include "block/block_int.h" #include "qmp-commands.h" #include "trace.h" #include "arch_init.h"
blockdev.h +1 -1
@@ -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 "qapi/qmp/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/hw.h +1 -1
@@ -10,7 +10,7 @@#include "ioport.h" #include "irq.h" -#include "qemu-aio.h" +#include "block/aio.h" #include "qemu-file.h" #include "vmstate.h" #include "qemu-log.h"
hw/ide/cmd646.c +1 -1
@@ -26,7 +26,7 @@#include <hw/pc.h> #include <hw/pci/pci.h> #include <hw/isa.h> -#include "block.h" +#include "block/block.h" #include "sysemu.h" #include "dma.h"
hw/ide/ich.c +1 -1
@@ -65,7 +65,7 @@#include <hw/pc.h> #include <hw/pci/pci.h> #include <hw/isa.h> -#include "block.h" +#include "block/block.h" #include "dma.h" #include <hw/ide/pci.h>
hw/ide/isa.c +1 -1
@@ -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/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/pci.h> #include <hw/isa.h> -#include "block.h" +#include "block/block.h" #include "sysemu.h" #include "dma.h"
hw/mips_fulong2e.c +1 -1
@@ -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" #include "sysbus.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 "qapi/qmp/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 "qapi/qmp/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
include/block/thread-pool.h renamed from thread-pool.h +2 -2
@@ -21,8 +21,8 @@#include "qemu-common.h" #include "qemu-queue.h" #include "qemu-thread.h" -#include "qemu-coroutine.h" -#include "block_int.h" +#include "block/coroutine.h" +#include "block/block_int.h" typedef int ThreadPoolFunc (void *opaque);
iohandler.c +1 -1
@@ -25,7 +25,7 @@#include "config-host.h" #include "qemu-common.h" #include "qemu-queue.h" -#include "qemu-aio.h" +#include "block/aio.h" #include "main-loop.h" #ifndef _WIN32
main-loop.c +1 -1
@@ -26,7 +26,7 @@#include "qemu-timer.h" #include "slirp/slirp.h" #include "main-loop.h" -#include "qemu-aio.h" +#include "block/aio.h" #ifndef _WIN32
main-loop.h +1 -1
@@ -25,7 +25,7 @@#ifndef QEMU_MAIN_LOOP_H #define QEMU_MAIN_LOOP_H 1 -#include "qemu-aio.h" +#include "block/aio.h" #define SIG_IPI SIGUSR1
migration-exec.c +1 -1
@@ -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 "qapi/qmp/qerror.h" #include "qapi/qmp/qdict.h" -#include "block.h" +#include "block/block.h" #include "readline.h" extern Monitor *cur_mon;
nbd.c +3 -3
@@ -16,10 +16,10 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include "nbd.h" -#include "block.h" +#include "block/nbd.h" +#include "block/block.h" -#include "qemu-coroutine.h" +#include "block/coroutine.h" #include <errno.h> #include <string.h>
qemu-char.h +1 -1
@@ -5,7 +5,7 @@#include "qemu-queue.h" #include "qemu-option.h" #include "qemu-config.h" -#include "qemu-aio.h" +#include "block/aio.h" #include "qapi/qmp/qobject.h" #include "qapi/qmp/qstring.h" #include "main-loop.h"
qemu-coroutine-io.c +1 -1
@@ -24,7 +24,7 @@*/ #include "qemu-common.h" #include "qemu_socket.h" -#include "qemu-coroutine.h" +#include "block/coroutine.h" #include "iov.h" ssize_t coroutine_fn
qemu-coroutine-lock.c +3 -3
@@ -23,10 +23,10 @@*/ #include "qemu-common.h" -#include "qemu-coroutine.h" -#include "qemu-coroutine-int.h" +#include "block/coroutine.h" +#include "block/coroutine_int.h" #include "qemu-queue.h" -#include "qemu-aio.h" +#include "block/aio.h" #include "trace.h" static QTAILQ_HEAD(, Coroutine) unlock_bh_queue =
qemu-coroutine-sleep.c +1 -1
@@ -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-aio.c +1 -1
@@ -11,7 +11,7 @@*/ #include <glib.h> -#include "qemu-aio.h" +#include "block/aio.h" AioContext *ctx;
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
tests/test-thread-pool.c +3 -3
@@ -1,8 +1,8 @@#include <glib.h> #include "qemu-common.h" -#include "qemu-aio.h" -#include "thread-pool.h" -#include "block.h" +#include "block/aio.h" +#include "block/thread-pool.h" +#include "block/block.h" static int active;
thread-pool.c +3 -3
@@ -18,11 +18,11 @@#include "qemu-queue.h" #include "qemu-thread.h" #include "osdep.h" -#include "qemu-coroutine.h" +#include "block/coroutine.h" #include "trace.h" -#include "block_int.h" +#include "block/block_int.h" #include "event_notifier.h" -#include "thread-pool.h" +#include "block/thread-pool.h" static void do_spawn_thread (void );
Signature · 1 line
1.8.0.2