Clean up around osdep.h and qemu-common.h
Subsystems (12)
cover Clean up around osdep.h and qemu-common.h
This series tackles two issues:
* qapi/error.h and therefore qapi-types.h get included into every file via qemu/osdep.h. Touch the QAPI schema, recompile the world. As the QAPI maintainer, I get to touch it regularly, so this is an itch I need to scratch. PATCH 01-04 drop qapi/error.h from qemu/osdep.h. Unfortunately, the number of .o depending on qapi-types.h barely changes, because it gets included by so many other headers. More work is needed here.
* qemu-common.h explicitly asks not to be included in headers, but we do it anyway. PATCH 05-15 clean that up. Cuts the number of .o depending on qemu-common.h from ~95% to ~35%.
For additional motivation, see the "Our use of #include is undisciplined, and what to do about it" thread.
Markus Armbruster (15):
include/qemu/osdep.h: Don't include qapi/error.h
Use scripts/clean-includes to drop redundant qemu/typedefs.h include/config.h: Unused, remove
Clean up includes some more
fw_cfg: Split fw_cfg_keys.h off fw_cfg.h include/qemu/iov.h: Don't include qemu-common.h include/hw/hw.h: Don't include qemu-common.h hw/pci/pci.h: Don't include qemu-common.h
Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h Move QEMU_ALIGN_*() from qemu-common.h to qemu/osdep.h Move ParallelIOArg from qemu-common.h to sysemu/char.h
isa: Move DMA_transfer_handler from qemu-common.h to hw/isa/isa.h include/crypto: Include qapi-types.h instead of qemu-common.h Don't include qemu-common.h in headers
Drop superfluous qemu-common.h inclusions
aio-posix.c | 1 - aio-win32.c | 1 - arch_init.c | 2 + async.c | 2 +- audio/alsaaudio.c | 1 - audio/audio.c | 2 + audio/audio_pt_int.c | 1 - audio/audio_win_int.c | 1 - audio/coreaudio.c | 1 - audio/dsoundaudio.c | 1 - audio/noaudio.c | 1 - audio/ossaudio.c | 1 - audio/paaudio.c | 1 - audio/sdlaudio.c | 1 - backends/baum.c | 2 +- backends/hostmem-file.c | 1 + backends/hostmem-ram.c | 3 ++ backends/hostmem.c | 1 + backends/rng-egd.c | 1 + backends/rng-random.c | 2 + backends/rng.c | 2 + backends/tpm.c | 2 + block/archipelago.c | 1 - block/backup.c | 3 +- block/blkdebug.c | 1 + block/blkverify.c | 2 + block/block-backend.c | 1 + block/bochs.c | 2 +- block/cloop.c | 2 +- block/commit.c | 1 + block/curl.c | 1 + block/dmg.c | 2 +- block/gluster.c | 3 ++ block/io.c | 2 + block/linux-aio.c | 1 - block/mirror.c | 1 + block/nbd-client.h | 1 - block/nbd.c | 2 + block/nfs.c | 1 - block/null.c | 2 + block/parallels.c | 2 +- block/qapi.c | 1 + block/qcow.c | 2 +- block/qcow2-cache.c | 1 - block/qcow2-cluster.c | 2 +- block/qcow2-refcount.c | 2 +- block/qcow2-snapshot.c | 1 + block/qed.c | 2 + block/quorum.c | 1 + block/raw-aio.h | 2 + block/raw-posix.c | 1 + block/raw-win32.c | 1 - block/raw_bsd.c | 2 + block/rbd.c | 1 + block/sheepdog.c | 1 + block/snapshot.c | 1 + block/ssh.c | 4 +- block/stream.c | 1 + block/throttle-groups.c | 1 + block/vdi.c | 1 + block/vhdx-endian.c | 1 - block/vhdx-log.c | 2 +- block/vhdx.c | 2 +- block/vmdk.c | 1 + block/vpc.c | 2 +- block/vvfat.c | 1 + block/win32-aio.c | 1 - blockdev.c | 1 + blockjob.c | 1 - bootdevice.c | 1 + bsd-user/main.c | 1 - bsd-user/mmap.c | 1 - bsd-user/syscall.c | 1 - bt-vhci.c | 1 - contrib/ivshmem-client/ivshmem-client.c | 1 - contrib/ivshmem-client/main.c | 1 - contrib/ivshmem-server/main.c | 1 + cpu-exec.c | 1 + cpus.c | 3 +- cputlb.c | 1 + crypto/aes.c | 1 - crypto/cipher.c | 1 + crypto/hash.c | 1 + crypto/init.c | 1 + crypto/secret.c | 2 + crypto/tlscreds.c | 2 + crypto/tlscredsanon.c | 2 + crypto/tlscredsx509.c | 2 + crypto/tlssession.c | 1 + device_tree.c | 2 +- disas.c | 1 - disas/cris.c | 1 - disas/s390.c | 1 - disas/tci.c | 1 - exec.c | 1 + fsdev/qemu-fsdev.c | 1 - fsdev/virtfs-proxy-helper.c | 1 - gdbstub.c | 1 + hmp.c | 1 + hmp.h | 1 - hw/9pfs/9p-handle.c | 1 + hw/9pfs/9p-local.c | 1 + hw/9pfs/9p-proxy.c | 1 + hw/9pfs/9p-synth.c | 1 + hw/9pfs/9p.c | 1 + hw/9pfs/coth.c | 1 - hw/acpi/bios-linker-loader.c | 1 - hw/acpi/cpu_hotplug.c | 1 + hw/acpi/ich9.c | 1 + hw/acpi/pcihp.c | 1 + hw/acpi/piix4.c | 1 + hw/acpi/tco.c | 1 - hw/alpha/dp264.c | 1 + hw/alpha/typhoon.c | 1 + hw/arm/allwinner-a10.c | 1 + hw/arm/armv7m.c | 1 + hw/arm/bcm2835_peripherals.c | 1 + hw/arm/bcm2836.c | 1 + hw/arm/boot.c | 2 + hw/arm/cubieboard.c | 1 + hw/arm/digic.c | 1 + hw/arm/digic_boards.c | 2 + hw/arm/exynos4210.c | 1 + hw/arm/fsl-imx25.c | 1 + hw/arm/fsl-imx31.c | 1 + hw/arm/highbank.c | 2 + hw/arm/imx25_pdk.c | 1 + hw/arm/integratorcp.c | 1 + hw/arm/kzm.c | 1 + hw/arm/mainstone.c | 1 + hw/arm/musicpal.c | 1 + hw/arm/netduino2.c | 1 + hw/arm/nseries.c | 1 + hw/arm/omap1.c | 2 + hw/arm/omap2.c | 1 + hw/arm/omap_sx1.c | 1 + hw/arm/palm.c | 1 + hw/arm/pxa2xx.c | 2 + hw/arm/raspi.c | 1 + hw/arm/realview.c | 1 + hw/arm/spitz.c | 1 + hw/arm/stellaris.c | 1 + hw/arm/stm32f205_soc.c | 1 + hw/arm/strongarm.c | 1 + hw/arm/sysbus-fdt.c | 2 +- hw/arm/tosa.c | 1 + hw/arm/versatilepb.c | 1 + hw/arm/vexpress.c | 2 + hw/arm/virt-acpi-build.c | 1 + hw/arm/virt.c | 2 + hw/arm/xilinx_zynq.c | 1 + hw/arm/xlnx-ep108.c | 1 + hw/arm/xlnx-zynqmp.c | 1 + hw/audio/adlib.c | 1 + hw/audio/gus.c | 1 + hw/block/block.c | 1 + hw/block/cdrom.c | 1 - hw/block/dataplane/virtio-blk.c | 1 + hw/block/fdc.c | 1 + hw/block/nand.c | 1 + hw/block/nvme.c | 2 + hw/block/onenand.c | 2 +- hw/block/pflash_cfi01.c | 1 + hw/block/pflash_cfi02.c | 1 + hw/block/virtio-blk.c | 2 +- hw/block/xen_disk.c | 1 + hw/bt/core.c | 1 - hw/bt/hci-csr.c | 1 - hw/bt/hci.c | 1 + hw/bt/hid.c | 1 - hw/bt/l2cap.c | 1 - hw/char/debugcon.c | 1 + hw/char/parallel.c | 1 + hw/char/serial-isa.c | 1 + hw/char/serial-pci.c | 1 + hw/char/serial.c | 1 + hw/char/spapr_vty.c | 1 + hw/char/virtio-serial-bus.c | 1 + hw/core/fw-path-provider.c | 1 + hw/core/loader.c | 2 + hw/core/machine.c | 2 + hw/core/nmi.c | 2 + hw/core/null-machine.c | 1 - hw/core/ptimer.c | 2 + hw/core/qdev-properties-system.c | 1 + hw/core/qdev-properties.c | 3 ++ hw/core/qdev.c | 1 + hw/core/stream.c | 1 + hw/cpu/a15mpcore.c | 1 + hw/cpu/a9mpcore.c | 1 + hw/cpu/arm11mpcore.c | 1 + hw/cpu/realview_mpcore.c | 1 + hw/cris/axis_dev88.c | 1 + hw/display/blizzard.c | 1 - hw/display/cg3.c | 1 + hw/display/cirrus_vga.c | 1 + hw/display/exynos4210_fimd.c | 1 - hw/display/jazz_led.c | 1 - hw/display/qxl.c | 1 - hw/display/qxl.h | 2 - hw/display/sm501.c | 1 + hw/display/tc6393xb.c | 1 + hw/display/tcx.c | 1 + hw/display/vga.c | 1 + hw/display/virtio-gpu-3d.c | 1 - hw/display/virtio-gpu.c | 1 - hw/display/vmware_vga.c | 1 + hw/dma/etraxfs_dma.c | 1 - hw/dma/i8257.c | 2 +- hw/dma/omap_dma.c | 1 - hw/dma/pl330.c | 2 + hw/dma/soc_dma.c | 1 - hw/dma/xilinx_axidma.c | 1 + hw/i386/acpi-build.c | 2 +- hw/i386/acpi-build.h | 2 - hw/i386/kvm/clock.c | 1 - hw/i386/kvm/i8254.c | 1 + hw/i386/kvm/pci-assign.c | 1 + hw/i386/pc.c | 2 + hw/i386/pc_sysfw.c | 2 + hw/i386/pci-assign-load-rom.c | 1 + hw/i386/xen/xen_platform.c | 1 + hw/i386/xen/xen_pvdevice.c | 1 + hw/ide/core.c | 1 + hw/ide/qdev.c | 1 + hw/input/milkymist-softusb.c | 1 + hw/input/virtio-input-host.c | 2 +- hw/input/virtio-input.c | 1 + hw/intc/apic_common.c | 1 + hw/intc/arm_gic.c | 1 + hw/intc/arm_gic_common.c | 1 + hw/intc/arm_gicv2m.c | 1 + hw/intc/arm_gicv3_common.c | 1 + hw/intc/armv7m_nvic.c | 1 + hw/intc/exynos4210_gic.c | 1 - hw/intc/ioapic_common.c | 1 + hw/intc/openpic.c | 1 + hw/intc/realview_gic.c | 1 + hw/intc/xics.c | 1 + hw/ipack/ipack.c | 1 + hw/ipmi/ipmi_bmc_extern.c | 1 + hw/ipmi/isa_ipmi_bt.c | 1 + hw/ipmi/isa_ipmi_kcs.c | 1 + hw/isa/isa-bus.c | 1 + hw/isa/lpc_ich9.c | 1 - hw/isa/pc87312.c | 1 + hw/lm32/lm32_boards.c | 1 + hw/lm32/lm32_hwsetup.h | 1 - hw/lm32/milkymist.c | 1 + hw/m68k/an5206.c | 1 + hw/m68k/mcf5208.c | 1 + hw/mem/pc-dimm.c | 1 + hw/microblaze/petalogix_ml605_mmu.c | 1 + hw/microblaze/petalogix_s3adsp1800_mmu.c | 1 + hw/mips/mips_fulong2e.c | 2 + hw/mips/mips_jazz.c | 1 + hw/mips/mips_malta.c | 1 + hw/mips/mips_mipssim.c | 3 ++ hw/mips/mips_r4k.c | 3 ++ hw/misc/bcm2835_mbox.c | 1 + hw/misc/bcm2835_property.c | 1 + hw/misc/cbus.c | 2 +- hw/misc/ivshmem.c | 3 ++ hw/misc/macio/cuda.c | 1 + hw/misc/macio/macio.c | 1 + hw/misc/tmp105.c | 1 + hw/moxie/moxiesim.c | 1 + hw/net/dp8393x.c | 1 + hw/net/milkymist-minimac2.c | 1 + hw/net/ne2000-isa.c | 1 + hw/net/rocker/qmp-norocker.c | 1 - hw/net/vmxnet3.c | 1 - hw/net/vmxnet_rx_pkt.c | 1 - hw/net/vmxnet_rx_pkt.h | 2 - hw/net/vmxnet_tx_pkt.c | 1 - hw/net/vmxnet_tx_pkt.h | 2 - hw/net/xilinx_axienet.c | 1 + hw/nvram/fw_cfg.c | 1 + hw/nvram/mac_nvram.c | 2 + hw/nvram/spapr_nvram.c | 1 + hw/openrisc/openrisc_sim.c | 1 + hw/pci-bridge/dec.h | 2 - hw/pci-bridge/pci_bridge_dev.c | 1 + hw/pci-host/piix.c | 1 + hw/pci-host/prep.c | 2 + hw/pci-host/q35.c | 1 + hw/pci/pci.c | 2 + hw/pci/pcie.c | 2 +- hw/pci/shpc.c | 2 +- hw/pcmcia/pcmcia.c | 1 - hw/ppc/e500.c | 1 + hw/ppc/e500plat.c | 1 - hw/ppc/mac_newworld.c | 3 ++ hw/ppc/mac_oldworld.c | 3 ++ hw/ppc/mpc8544ds.c | 1 - hw/ppc/ppc405_boards.c | 3 ++ hw/ppc/ppc405_uc.c | 1 + hw/ppc/spapr.c | 1 + hw/ppc/spapr_drc.c | 2 + hw/ppc/spapr_events.c | 3 ++ hw/ppc/spapr_hcall.c | 1 + hw/ppc/spapr_pci.c | 1 + hw/ppc/spapr_pci_vfio.c | 1 + hw/ppc/spapr_rng.c | 1 + hw/ppc/spapr_rtas.c | 2 + hw/ppc/spapr_rtc.c | 2 + hw/ppc/spapr_vio.c | 1 + hw/ppc/virtex_ml507.c | 1 + hw/s390x/event-facility.c | 1 + hw/s390x/ipl.c | 2 + hw/s390x/s390-virtio-ccw.c | 1 + hw/s390x/s390-virtio.c | 1 + hw/s390x/sclp.c | 1 + hw/s390x/virtio-ccw.c | 1 + hw/scsi/esp-pci.c | 1 + hw/scsi/esp.c | 1 + hw/scsi/megasas.c | 1 + hw/scsi/scsi-bus.c | 2 + hw/scsi/scsi-disk.c | 1 + hw/scsi/scsi-generic.c | 2 +- hw/scsi/vhost-scsi.c | 2 + hw/scsi/virtio-scsi-dataplane.c | 1 - hw/scsi/virtio-scsi.c | 1 + hw/scsi/vmw_pvscsi.c | 1 + hw/sd/core.c | 1 + hw/sd/pxa2xx_mmci.c | 1 + hw/sd/sd.c | 1 + hw/sh4/r2d.c | 1 + hw/sh4/shix.c | 1 + hw/smbios/smbios.c | 2 + hw/sparc/leon3.c | 3 ++ hw/sparc/sun4m.c | 3 ++ hw/sparc64/sun4u.c | 3 ++ hw/timer/a9gtimer.c | 1 + hw/timer/arm_mptimer.c | 1 + hw/timer/arm_timer.c | 1 - hw/timer/ds1338.c | 1 + hw/timer/exynos4210_mct.c | 1 - hw/timer/exynos4210_pwm.c | 1 - hw/timer/hpet.c | 1 + hw/timer/m48t59.c | 2 + hw/timer/mc146818rtc.c | 2 + hw/timer/pl031.c | 1 + hw/timer/twl92230.c | 1 + hw/tpm/tpm_passthrough.c | 1 - hw/tpm/tpm_tis.c | 2 +- hw/tpm/tpm_tis.h | 1 - hw/tricore/tricore_testboard.c | 1 + hw/unicore32/puv3.c | 2 +- hw/usb/bus.c | 2 + hw/usb/ccid-card-passthru.c | 1 + hw/usb/combined-packet.c | 1 - hw/usb/core.c | 1 - hw/usb/dev-audio.c | 1 - hw/usb/dev-bluetooth.c | 1 - hw/usb/dev-hid.c | 1 + hw/usb/dev-hub.c | 2 +- hw/usb/dev-mtp.c | 2 +- hw/usb/dev-network.c | 1 + hw/usb/dev-serial.c | 1 + hw/usb/dev-smartcard-reader.c | 1 + hw/usb/dev-storage.c | 1 + hw/usb/dev-uas.c | 1 - hw/usb/hcd-ehci.c | 1 + hw/usb/hcd-musb.c | 1 - hw/usb/hcd-ohci.c | 1 + hw/usb/hcd-uhci.c | 1 + hw/usb/host-legacy.c | 1 - hw/usb/host-libusb.c | 2 +- hw/usb/host-stub.c | 1 - hw/usb/libhw.c | 1 - hw/usb/redirect.c | 1 + hw/usb/tusb6010.c | 1 - hw/vfio/pci.h | 1 - hw/vfio/platform.c | 1 + hw/virtio/vhost-user.c | 2 + hw/virtio/vhost.c | 1 + hw/virtio/virtio-balloon.c | 1 - hw/virtio/virtio-pci.c | 1 + hw/virtio/virtio-rng.c | 1 + hw/virtio/virtio.c | 1 + hw/watchdog/wdt_i6300esb.c | 1 - hw/watchdog/wdt_ib700.c | 1 - hw/xen/xen-host-pci-device.c | 1 + hw/xen/xen_pt.c | 1 + hw/xen/xen_pt.h | 1 - hw/xen/xen_pt_config_init.c | 1 + hw/xen/xen_pt_graphics.c | 1 + hw/xtensa/sim.c | 1 + hw/xtensa/xtfpga.c | 1 + include/block/accounting.h | 2 - include/block/aio.h | 2 - include/block/block.h | 2 +- include/block/nbd.h | 2 - include/block/qapi.h | 1 + include/block/snapshot.h | 1 - include/block/write-threshold.h | 4 -- include/config.h | 1 - include/crypto/cipher.h | 2 +- include/crypto/hash.h | 2 +- include/crypto/init.h | 2 - include/crypto/secret.h | 1 - include/crypto/tlscreds.h | 1 - include/disas/bfd.h | 2 +- include/disas/disas.h | 2 - include/exec/cpu-all.h | 1 - include/exec/cpu-common.h | 1 - include/exec/exec-all.h | 2 - include/exec/ioport.h | 1 - include/exec/memory.h | 1 - include/hw/acpi/acpi.h | 1 - include/hw/acpi/pcihp.h | 1 - include/hw/acpi/piix4.h | 2 - include/hw/acpi/tco.h | 2 - include/hw/arm/allwinner-a10.h | 1 - include/hw/arm/bcm2835_peripherals.h | 1 - include/hw/arm/exynos4210.h | 1 - include/hw/arm/omap.h | 1 + include/hw/arm/sysbus-fdt.h | 1 - include/hw/arm/virt-acpi-build.h | 1 - include/hw/arm/virt.h | 2 +- include/hw/arm/xlnx-zynqmp.h | 1 - include/hw/block/block.h | 1 - include/hw/boards.h | 1 - include/hw/char/digic-uart.h | 1 - include/hw/fw-path-provider.h | 1 - include/hw/hotplug.h | 1 - include/hw/hw.h | 5 ++- include/hw/i386/apic.h | 2 +- include/hw/i386/pc.h | 2 - include/hw/ipmi/ipmi.h | 1 - include/hw/isa/apm.h | 1 - include/hw/isa/i8257.h | 2 +- include/hw/isa/isa.h | 5 ++- include/hw/lm32/lm32_pic.h | 1 - include/hw/nmi.h | 1 - include/hw/nvram/fw_cfg.h | 50 +------------------------ include/hw/nvram/fw_cfg_keys.h | 46 +++++++++++++++++++++++ include/hw/pci-host/apb.h | 1 - include/hw/pci-host/pam.h | 1 - include/hw/pci/msi.h | 1 - include/hw/pci/msix.h | 1 - include/hw/pci/pci.h | 11 +++++- include/hw/pci/shpc.h | 1 - include/hw/pci/slotid_cap.h | 1 - include/hw/ppc/mac_dbdma.h | 1 + include/hw/ppc/openpic.h | 1 - include/hw/ptimer.h | 1 - include/hw/qdev-core.h | 1 - include/hw/scsi/scsi.h | 1 - include/hw/sd/sdhci.h | 1 - include/hw/sh4/sh_intc.h | 1 - include/hw/sparc/sun4m.h | 1 - include/hw/stream.h | 1 - include/hw/timer/digic-timer.h | 1 - include/hw/timer/m48t59.h | 1 - include/hw/usb.h | 1 + include/hw/vfio/vfio-common.h | 1 - include/hw/vfio/vfio.h | 2 - include/hw/virtio/vhost-scsi.h | 1 - include/hw/xen/xen.h | 2 - include/io/channel.h | 1 - include/io/task.h | 1 - include/migration/migration.h | 1 - include/monitor/monitor.h | 1 - include/monitor/qdev.h | 1 - include/net/filter.h | 2 - include/net/net.h | 1 - include/net/queue.h | 2 - include/net/slirp.h | 1 - include/net/tap.h | 1 - include/qapi/error.h | 5 --- include/qapi/qmp/json-parser.h | 1 - include/qapi/visitor.h | 1 - include/qemu-common.h | 64 -------------------------------- include/qemu-io.h | 2 - include/qemu/base64.h | 3 -- include/qemu/bswap.h | 6 +-- include/qemu/buffer.h | 2 - include/qemu/coroutine.h | 1 - include/qemu/crc32c.h | 2 - include/qemu/event_notifier.h | 2 - include/qemu/iov.h | 30 ++++++++++++++- include/qemu/mmap-alloc.h | 2 - include/qemu/option.h | 1 - include/qemu/osdep.h | 24 ++++++++++-- include/qemu/range.h | 1 - include/qemu/throttle.h | 1 - include/qemu/timer.h | 2 - include/qemu/typedefs.h | 2 + include/qom/cpu.h | 1 - include/qom/object.h | 2 +- include/sysemu/accel.h | 1 - include/sysemu/block-backend.h | 2 +- include/sysemu/char.h | 6 ++- include/sysemu/cpus.h | 2 + include/sysemu/kvm.h | 4 ++ include/sysemu/memory_mapping.h | 1 - include/sysemu/qtest.h | 2 - include/sysemu/replay.h | 1 - include/sysemu/rng.h | 1 - include/sysemu/sysemu.h | 1 - include/sysemu/tpm_backend.h | 1 - include/ui/console.h | 1 - include/ui/qemu-pixman.h | 2 - include/ui/qemu-spice.h | 1 + io/channel-buffer.c | 1 + io/channel-command.c | 2 + io/channel-file.c | 2 + io/channel-socket.c | 2 + io/channel-tls.c | 2 + io/channel-util.c | 1 + io/channel-websock.c | 2 + io/channel.c | 2 + io/task.c | 1 + iohandler.c | 2 +- ioport.c | 1 + kvm-stub.c | 1 - linux-user/elfload.c | 2 + linux-user/mmap.c | 1 - linux-user/signal.c | 1 - linux-user/uaccess.c | 2 +- main-loop.c | 1 + memory.c | 2 + memory_mapping.c | 2 +- migration/block.c | 1 + migration/exec.c | 2 +- migration/fd.c | 2 +- migration/postcopy-ram.c | 1 - migration/qemu-file-buf.c | 1 - migration/qemu-file-internal.h | 1 - migration/qemu-file-stdio.c | 1 - migration/qemu-file.c | 1 - migration/ram.c | 1 + migration/rdma.c | 1 + migration/tcp.c | 1 - migration/unix.c | 1 - migration/vmstate.c | 1 - monitor.c | 2 + nbd/client.c | 1 + nbd/common.c | 1 + nbd/server.c | 1 + net/checksum.c | 1 - net/dump.c | 1 + net/eth.c | 1 - net/filter-buffer.c | 1 + net/filter.c | 1 + net/hub.h | 2 - net/l2tpv3.c | 1 - net/slirp.c | 1 + net/socket.c | 1 + net/tap-bsd.c | 1 - net/tap-linux.c | 1 + net/tap-win32.c | 1 - net/tap.c | 1 + net/tap_int.h | 1 - net/vde.c | 1 - os-posix.c | 1 + pc-bios/optionrom/optionrom.h | 3 +- qapi/opts-visitor.c | 1 + qapi/qapi-dealloc-visitor.c | 1 - qapi/qapi-util.c | 2 +- qapi/qapi-visit-core.c | 2 +- qapi/qmp-dispatch.c | 1 + qapi/qmp-event.c | 1 - qapi/qmp-input-visitor.c | 2 +- qapi/qmp-output-visitor.c | 1 - qapi/string-input-visitor.c | 2 +- qapi/string-output-visitor.c | 1 - qdev-monitor.c | 1 + qemu-img.c | 1 + qemu-io-cmds.c | 2 + qemu-io.c | 2 + qemu-nbd.c | 1 + qemu-timer.c | 1 + qga/channel-posix.c | 1 + qga/commands-posix.c | 1 + qga/commands.c | 1 + qga/guest-agent-core.h | 1 - qga/main.c | 2 +- qga/vss-win32/requester.cpp | 1 - qobject/json-lexer.c | 1 - qobject/json-parser.c | 1 + qobject/json-streamer.c | 1 - qobject/qbool.c | 1 - qobject/qfloat.c | 1 - qobject/qint.c | 1 - qobject/qjson.c | 1 + qobject/qlist.c | 1 - qobject/qnull.c | 1 - qobject/qobject.c | 1 - qobject/qstring.c | 1 - qom/cpu.c | 1 + qom/object.c | 1 + qom/object_interfaces.c | 1 + qom/qom-qobject.c | 2 +- qtest.c | 2 + replay/replay-events.c | 1 - replay/replay-input.c | 2 +- replay/replay-internal.c | 1 - replay/replay-time.c | 1 - replay/replay.c | 1 + scripts/clean-includes | 6 +-- scripts/qapi-types.py | 5 --- scripts/qapi-visit.py | 1 + scripts/tracetool/backend/log.py | 6 +-- scripts/tracetool/format/events_h.py | 2 - scripts/tracetool/format/h.py | 3 -- scripts/tracetool/format/tcg_h.py | 2 - scripts/tracetool/format/ust_events_c.py | 1 - scripts/tracetool/format/ust_events_h.py | 1 - slirp/ip_icmp.c | 1 + slirp/libslirp.h | 2 - slirp/misc.c | 2 +- slirp/tcp_subr.c | 1 + spice-qemu-char.c | 1 + stubs/arch-query-cpu-def.c | 1 - stubs/bdrv-commit-all.c | 1 - stubs/clock-warp.c | 1 - stubs/cpu-get-clock.c | 1 - stubs/cpu-get-icount.c | 1 - stubs/cpus.c | 1 - stubs/dump.c | 1 - stubs/fd-register.c | 1 - stubs/fdset-add-fd.c | 1 - stubs/fdset-find-fd.c | 1 - stubs/fdset-get-fd.c | 1 - stubs/fdset-remove-fd.c | 1 - stubs/gdbstub.c | 2 - stubs/get-fd.c | 2 +- stubs/get-next-serial.c | 1 - stubs/iothread-lock.c | 1 - stubs/is-daemonized.c | 1 - stubs/kvm.c | 1 - stubs/machine-init-done.c | 1 - stubs/migr-blocker.c | 1 - stubs/mon-is-qmp.c | 1 - stubs/mon-printf.c | 1 - stubs/monitor-init.c | 1 - stubs/notify-event.c | 1 - stubs/set-fd-handler.c | 1 - stubs/slirp.c | 1 - stubs/target-get-monitor-def.c | 2 - stubs/target-monitor-defs.c | 2 - stubs/uuid.c | 1 - stubs/vm-stop.c | 1 - stubs/vmstate.c | 1 - target-alpha/cpu.c | 1 + target-alpha/cpu.h | 1 - target-alpha/translate.c | 1 + target-arm/cpu.c | 1 + target-arm/cpu.h | 1 - target-arm/cpu64.c | 1 + target-arm/kvm-stub.c | 1 - target-arm/kvm.c | 1 - target-arm/kvm32.c | 1 - target-arm/kvm64.c | 1 - target-cris/cpu.c | 1 + target-cris/cpu.h | 1 - target-i386/cpu.c | 3 +- target-i386/cpu.h | 1 - target-i386/kvm-stub.c | 1 - target-i386/kvm.c | 2 +- target-i386/machine.c | 1 + target-lm32/cpu.c | 1 + target-lm32/cpu.h | 1 - target-m68k/cpu.c | 1 + target-m68k/cpu.h | 1 - target-m68k/m68k-semi.c | 1 - target-microblaze/cpu.c | 1 + target-microblaze/cpu.h | 1 - target-mips/cpu.c | 1 + target-mips/cpu.h | 1 - target-mips/kvm.c | 1 - target-moxie/cpu.c | 1 + target-moxie/cpu.h | 1 - target-openrisc/cpu.c | 1 + target-openrisc/cpu.h | 1 - target-openrisc/exception.h | 1 - target-openrisc/interrupt.c | 1 - target-openrisc/mmu.c | 1 - target-openrisc/translate.c | 1 - target-ppc/cpu-models.c | 1 + target-ppc/cpu.h | 1 - target-ppc/kvm-stub.c | 1 - target-ppc/kvm.c | 1 - target-ppc/translate_init.c | 1 + target-s390x/cpu.c | 1 + target-s390x/cpu.h | 1 - target-s390x/helper.c | 2 + target-s390x/kvm.c | 1 - target-s390x/misc_helper.c | 1 + target-sh4/cpu.c | 1 + target-sh4/cpu.h | 1 - target-sparc/cpu.c | 3 ++ target-sparc/cpu.h | 1 - target-tilegx/cpu.c | 1 + target-tilegx/cpu.h | 1 - target-tilegx/helper.c | 1 - target-tilegx/simd_helper.c | 1 - target-tricore/cpu.c | 1 + target-tricore/cpu.h | 1 - target-unicore32/cpu.c | 1 + target-unicore32/cpu.h | 1 - target-xtensa/core-dc233c.c | 1 - target-xtensa/cpu.c | 1 + target-xtensa/cpu.h | 1 - tcg/optimize.c | 1 - tcg/tcg.h | 2 +- tci.c | 1 - tests/ahci-test.c | 1 - tests/boot-order-test.c | 4 +- tests/boot-sector.c | 1 - tests/check-qdict.c | 1 - tests/check-qfloat.c | 1 - tests/check-qint.c | 1 - tests/check-qjson.c | 1 - tests/check-qom-proplist.c | 1 + tests/check-qstring.c | 1 - tests/crypto-tls-x509-helpers.h | 2 - tests/device-introspect-test.c | 1 - tests/fdc-test.c | 1 - tests/fw_cfg-test.c | 3 +- tests/hd-geo-test.c | 1 - tests/io-channel-helpers.c | 1 + tests/ipmi-bt-test.c | 1 - tests/libqos/ahci.c | 1 - tests/libqos/malloc-pc.c | 4 +- tests/libqos/pci-pc.c | 1 - tests/pc-cpu-test.c | 1 - tests/pxe-test.c | 1 - tests/rtl8139-test.c | 1 - tests/tcg/test-i386-fprem.c | 4 +- tests/test-aio.c | 1 + tests/test-base64.c | 2 +- tests/test-blockjob-txn.c | 1 + tests/test-crypto-cipher.c | 1 + tests/test-crypto-secret.c | 2 + tests/test-crypto-tlscredsx509.c | 2 + tests/test-crypto-tlssession.c | 2 + tests/test-io-channel-buffer.c | 2 +- tests/test-io-channel-command.c | 2 + tests/test-io-channel-file.c | 3 +- tests/test-io-channel-socket.c | 2 + tests/test-io-channel-tls.c | 1 + tests/test-io-task.c | 2 + tests/test-iov.c | 1 - tests/test-opts-visitor.c | 1 + tests/test-qemu-opts.c | 1 + tests/test-qmp-commands.c | 1 - tests/test-qmp-event.c | 1 - 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 | 2 +- tests/test-throttle.c | 1 + tests/test-visitor-serialization.c | 2 +- tests/test-vmstate.c | 1 - tests/vhost-user-test.c | 1 + tests/virtio-9p-test.c | 1 - thread-pool.c | 1 - trace/control.c | 1 + trace/control.h | 2 - trace/qmp.c | 1 - ui/console-gl.c | 1 - ui/curses.c | 1 - ui/cursor.c | 1 - ui/egl-context.c | 1 - ui/egl-helpers.c | 1 - ui/gtk-egl.c | 1 - ui/gtk-gl-area.c | 1 - ui/input-linux.c | 1 + ui/keymaps.c | 1 + ui/keymaps.h | 2 - ui/qemu-pixman.c | 1 - ui/sdl2-2d.c | 1 - ui/sdl2-gl.c | 1 - ui/sdl2-input.c | 1 - ui/sdl2.c | 1 - ui/shader.c | 1 - ui/spice-core.c | 1 - ui/spice-display.c | 1 - ui/spice-input.c | 1 - ui/vnc-auth-sasl.c | 1 + ui/vnc-auth-vencrypt.c | 1 + ui/vnc-enc-tight.c | 1 - ui/vnc-ws.c | 1 + ui/vnc.c | 1 + ui/vnc.h | 1 - ui/x_keymap.c | 1 - util/acl.c | 1 - util/base64.c | 3 +- util/buffer.c | 1 + util/compatfd.c | 1 - util/coroutine-gthread.c | 1 - util/coroutine-sigaltstack.c | 1 - util/coroutine-ucontext.c | 1 - util/coroutine-win32.c | 1 - util/crc32c.c | 1 - util/envlist.c | 1 - util/error.c | 2 +- util/event_notifier-win32.c | 1 - util/fifo8.c | 1 - util/getauxval.c | 1 - util/iov.c | 1 + util/log.c | 1 - util/mmap-alloc.c | 1 + util/module.c | 1 - util/notify.c | 1 - util/oslib-posix.c | 3 +- util/qemu-config.c | 1 - util/qemu-coroutine-lock.c | 1 - util/qemu-coroutine.c | 1 - util/qemu-option.c | 1 + util/qemu-sockets.c | 4 +- util/qemu-thread-win32.c | 1 - util/rcu.c | 1 - util/throttle.c | 1 + vl.c | 1 + 821 files changed, 684 insertions(+), 627 deletions(-) delete mode 100644 include/config.h create mode 100644 include/hw/nvram/fw_cfg_keys.h
Signature · 1 line
2.4.3
PATCH 1/15 include/qemu/osdep.h: Don't include qapi/error.h
Commit 57cb38b included qapi/error.h into qemu/osdep.h to get the Error typedef. Since then, we've moved to include qemu/osdep.h everywhere. Its file comment explains: "To avoid getting into possible circular include dependencies, this file should not include any other QEMU headers, with the exceptions of config-host.h, compiler.h, os-posix.h and os-win32.h, all of which are doing a similar job to this file and are under similar constraints." qapi/error.h doesn't do a similar job, and it doesn't adhere to similar constraints: it includes qapi-types.h. That's in excess of 100KiB of crap most .c files don't actually need.
Add the typedef to qemu/typedefs.h, and include that instead of qapi/error.h. Include qapi/error.h in .c files that need it and don't get it now. Include qapi-types.h in qom/object.h for uint16List.
Update scripts/clean-includes accordingly. Update it further to match
reality: replace config.h by config-target.h, add sysemu/os-posix.h, sysemu/os-win32.h. Update the list of includes in the qemu/osdep.h comment quoted above similarly.
This reduces the number of objects depending on qapi/error.h from "all of them" to less than a third. Unfortunately, the number depending on qapi-types.h shrinks only a little. More work is needed for that one.
--- async.c | 1 + backends/baum.c | 1 + backends/hostmem-file.c | 1 + backends/hostmem-ram.c | 1 + backends/hostmem.c | 1 + backends/rng-egd.c | 1 + backends/rng-random.c | 1 + backends/rng.c | 1 + backends/tpm.c | 1 + block/backup.c | 1 + block/blkdebug.c | 1 + block/blkverify.c | 1 + block/bochs.c | 1 + block/cloop.c | 1 + block/commit.c | 1 + block/curl.c | 1 + block/dmg.c | 1 + block/gluster.c | 1 + block/io.c | 1 + block/mirror.c | 1 + block/nbd.c | 1 + block/null.c | 1 + block/parallels.c | 1 + block/qcow.c | 1 + block/qcow2-cluster.c | 1 + block/qcow2-refcount.c | 1 + block/qcow2-snapshot.c | 1 + block/qed.c | 1 + block/raw-posix.c | 1 + block/raw_bsd.c | 1 + block/rbd.c | 1 + block/sheepdog.c | 1 + block/snapshot.c | 1 + block/ssh.c | 1 + block/stream.c | 1 + block/vdi.c | 1 + block/vhdx-log.c | 1 + block/vhdx.c | 1 + block/vmdk.c | 1 + block/vpc.c | 1 + block/vvfat.c | 1 + bootdevice.c | 1 + contrib/ivshmem-server/main.c | 1 + crypto/cipher.c | 1 + crypto/hash.c | 1 + crypto/init.c | 1 + crypto/secret.c | 1 + crypto/tlscreds.c | 1 + crypto/tlscredsanon.c | 1 + crypto/tlscredsx509.c | 1 + crypto/tlssession.c | 1 + device_tree.c | 1 + exec.c | 1 + gdbstub.c | 1 + hw/9pfs/9p.c | 1 + hw/acpi/cpu_hotplug.c | 1 + hw/acpi/ich9.c | 1 + hw/acpi/pcihp.c | 1 + hw/acpi/piix4.c | 1 + hw/alpha/typhoon.c | 1 + hw/arm/allwinner-a10.c | 1 + hw/arm/armv7m.c | 1 + hw/arm/bcm2835_peripherals.c | 1 + hw/arm/bcm2836.c | 1 + hw/arm/boot.c | 1 + hw/arm/cubieboard.c | 1 + hw/arm/digic.c | 1 + hw/arm/digic_boards.c | 1 + hw/arm/exynos4210.c | 1 + hw/arm/fsl-imx25.c | 1 + hw/arm/fsl-imx31.c | 1 + hw/arm/highbank.c | 1 + hw/arm/imx25_pdk.c | 1 + hw/arm/integratorcp.c | 1 + hw/arm/kzm.c | 1 + hw/arm/mainstone.c | 1 + hw/arm/musicpal.c | 1 + hw/arm/netduino2.c | 1 + hw/arm/nseries.c | 1 + hw/arm/omap1.c | 1 + hw/arm/omap2.c | 1 + hw/arm/omap_sx1.c | 1 + hw/arm/palm.c | 1 + hw/arm/pxa2xx.c | 1 + hw/arm/raspi.c | 1 + hw/arm/realview.c | 1 + hw/arm/spitz.c | 1 + hw/arm/stellaris.c | 1 + hw/arm/stm32f205_soc.c | 1 + hw/arm/sysbus-fdt.c | 1 + hw/arm/tosa.c | 1 + hw/arm/versatilepb.c | 1 + hw/arm/vexpress.c | 1 + hw/arm/virt-acpi-build.c | 1 + hw/arm/virt.c | 1 + hw/arm/xilinx_zynq.c | 1 + hw/arm/xlnx-ep108.c | 1 + hw/arm/xlnx-zynqmp.c | 1 + hw/audio/adlib.c | 1 + hw/audio/gus.c | 1 + hw/block/block.c | 1 + hw/block/dataplane/virtio-blk.c | 1 + hw/block/fdc.c | 1 + hw/block/nand.c | 1 + hw/block/nvme.c | 1 + hw/block/onenand.c | 1 + hw/block/pflash_cfi01.c | 1 + hw/block/pflash_cfi02.c | 1 + hw/block/virtio-blk.c | 1 + hw/block/xen_disk.c | 1 + hw/bt/hci.c | 1 + hw/char/debugcon.c | 1 + hw/char/parallel.c | 1 + hw/char/serial-isa.c | 1 + hw/char/serial-pci.c | 1 + hw/char/serial.c | 1 + hw/char/spapr_vty.c | 1 + hw/char/virtio-serial-bus.c | 1 + hw/core/loader.c | 1 + hw/core/machine.c | 1 + hw/core/nmi.c | 1 + hw/core/qdev-properties-system.c | 1 + hw/core/qdev-properties.c | 1 + hw/cpu/a15mpcore.c | 1 + hw/cpu/a9mpcore.c | 1 + hw/cpu/arm11mpcore.c | 1 + hw/cpu/realview_mpcore.c | 1 + hw/cris/axis_dev88.c | 1 + hw/display/cg3.c | 1 + hw/display/cirrus_vga.c | 1 + hw/display/sm501.c | 1 + hw/display/tc6393xb.c | 1 + hw/display/tcx.c | 1 + hw/display/vga.c | 1 + hw/display/vmware_vga.c | 1 + hw/dma/pl330.c | 1 + hw/dma/xilinx_axidma.c | 1 + hw/i386/acpi-build.c | 1 + hw/i386/kvm/i8254.c | 1 + hw/i386/kvm/pci-assign.c | 1 + hw/i386/pc_sysfw.c | 1 + hw/i386/pci-assign-load-rom.c | 1 + hw/i386/xen/xen_platform.c | 1 + hw/i386/xen/xen_pvdevice.c | 1 + hw/ide/qdev.c | 1 + hw/input/milkymist-softusb.c | 1 + hw/input/virtio-input-host.c | 1 + hw/input/virtio-input.c | 1 + hw/intc/apic_common.c | 1 + hw/intc/arm_gic.c | 1 + hw/intc/arm_gic_common.c | 1 + hw/intc/arm_gicv2m.c | 1 + hw/intc/arm_gicv3_common.c | 1 + hw/intc/armv7m_nvic.c | 1 + hw/intc/ioapic_common.c | 1 + hw/intc/openpic.c | 1 + hw/intc/realview_gic.c | 1 + hw/intc/xics.c | 1 + hw/ipack/ipack.c | 1 + hw/ipmi/ipmi_bmc_extern.c | 1 + hw/ipmi/isa_ipmi_bt.c | 1 + hw/ipmi/isa_ipmi_kcs.c | 1 + hw/isa/isa-bus.c | 1 + hw/isa/pc87312.c | 1 + hw/m68k/an5206.c | 1 + hw/m68k/mcf5208.c | 1 + hw/mem/pc-dimm.c | 1 + hw/microblaze/petalogix_ml605_mmu.c | 1 + hw/microblaze/petalogix_s3adsp1800_mmu.c | 1 + hw/mips/mips_fulong2e.c | 1 + hw/mips/mips_mipssim.c | 1 + hw/mips/mips_r4k.c | 1 + hw/misc/bcm2835_mbox.c | 1 + hw/misc/bcm2835_property.c | 1 + hw/misc/ivshmem.c | 1 + hw/misc/macio/macio.c | 1 + hw/misc/tmp105.c | 1 + hw/moxie/moxiesim.c | 1 + hw/net/dp8393x.c | 1 + hw/net/milkymist-minimac2.c | 1 + hw/net/ne2000-isa.c | 1 + hw/net/xilinx_axienet.c | 1 + hw/nvram/spapr_nvram.c | 1 + hw/openrisc/openrisc_sim.c | 1 + hw/pci-bridge/pci_bridge_dev.c | 1 + hw/pci-host/piix.c | 1 + hw/pci-host/prep.c | 1 + hw/pci-host/q35.c | 1 + hw/pci/pcie.c | 1 + hw/pci/shpc.c | 1 + hw/ppc/e500.c | 1 + hw/ppc/mac_newworld.c | 1 + hw/ppc/mac_oldworld.c | 1 + hw/ppc/ppc405_boards.c | 1 + hw/ppc/ppc405_uc.c | 1 + hw/ppc/spapr.c | 1 + hw/ppc/spapr_drc.c | 1 + hw/ppc/spapr_events.c | 1 + hw/ppc/spapr_hcall.c | 1 + hw/ppc/spapr_pci.c | 1 + hw/ppc/spapr_pci_vfio.c | 1 + hw/ppc/spapr_rng.c | 1 + hw/ppc/spapr_vio.c | 1 + hw/s390x/event-facility.c | 1 + hw/s390x/ipl.c | 1 + hw/s390x/s390-virtio-ccw.c | 1 + hw/s390x/s390-virtio.c | 1 + hw/s390x/sclp.c | 1 + hw/s390x/virtio-ccw.c | 1 + hw/scsi/esp-pci.c | 1 + hw/scsi/esp.c | 1 + hw/scsi/scsi-bus.c | 1 + hw/scsi/scsi-disk.c | 1 + hw/scsi/scsi-generic.c | 1 + hw/scsi/vhost-scsi.c | 1 + hw/scsi/virtio-scsi.c | 1 + hw/scsi/vmw_pvscsi.c | 1 + hw/sd/pxa2xx_mmci.c | 1 + hw/sd/sd.c | 1 + hw/sh4/r2d.c | 1 + hw/sh4/shix.c | 1 + hw/smbios/smbios.c | 1 + hw/sparc/leon3.c | 1 + hw/sparc/sun4m.c | 1 + hw/sparc64/sun4u.c | 1 + hw/timer/a9gtimer.c | 1 + hw/timer/arm_mptimer.c | 1 + hw/timer/hpet.c | 1 + hw/timer/m48t59.c | 1 + hw/tpm/tpm_tis.c | 1 + hw/tricore/tricore_testboard.c | 1 + hw/unicore32/puv3.c | 1 + hw/usb/bus.c | 1 + hw/usb/dev-hid.c | 1 + hw/usb/dev-hub.c | 1 + hw/usb/dev-mtp.c | 1 + hw/usb/dev-network.c | 1 + hw/usb/dev-serial.c | 1 + hw/usb/dev-smartcard-reader.c | 1 + hw/usb/dev-storage.c | 1 + hw/usb/hcd-ehci.c | 1 + hw/usb/hcd-ohci.c | 1 + hw/usb/hcd-uhci.c | 1 + hw/usb/host-libusb.c | 1 + hw/usb/redirect.c | 1 + hw/vfio/platform.c | 1 + hw/virtio/vhost-user.c | 1 + hw/virtio/vhost.c | 1 + hw/virtio/virtio-pci.c | 1 + hw/virtio/virtio-rng.c | 1 + hw/virtio/virtio.c | 1 + hw/xen/xen-host-pci-device.c | 1 + hw/xen/xen_pt.c | 1 + hw/xen/xen_pt_config_init.c | 1 + hw/xen/xen_pt_graphics.c | 1 + hw/xtensa/sim.c | 1 + hw/xtensa/xtfpga.c | 1 + include/qapi/error.h | 5 ----- include/qemu/osdep.h | 9 +++++---- include/qemu/typedefs.h | 1 + include/qom/object.h | 1 + include/ui/qemu-spice.h | 1 + io/channel-command.c | 1 + io/channel-file.c | 1 + io/channel-socket.c | 1 + io/channel-tls.c | 1 + io/channel-websock.c | 1 + io/channel.c | 1 + io/task.c | 1 + iohandler.c | 1 + main-loop.c | 1 + memory.c | 1 + memory_mapping.c | 1 + migration/block.c | 1 + migration/exec.c | 1 + migration/fd.c | 1 + migration/rdma.c | 1 + nbd/client.c | 1 + nbd/common.c | 1 + nbd/server.c | 1 + net/dump.c | 1 + net/filter-buffer.c | 1 + net/filter.c | 1 + net/socket.c | 1 + net/tap-linux.c | 1 + net/tap.c | 1 + qapi/opts-visitor.c | 1 + qapi/qapi-util.c | 1 + qapi/qapi-visit-core.c | 1 + qapi/qmp-dispatch.c | 1 + qapi/qmp-input-visitor.c | 1 + qapi/string-input-visitor.c | 1 + qemu-img.c | 1 + qemu-io-cmds.c | 1 + qemu-io.c | 1 + qemu-nbd.c | 1 + qga/channel-posix.c | 1 + qobject/json-parser.c | 1 + qom/cpu.c | 1 + qom/object.c | 1 + qom/object_interfaces.c | 1 + qom/qom-qobject.c | 1 + qtest.c | 1 + replay/replay-input.c | 1 + replay/replay.c | 1 + scripts/clean-includes | 5 +++-- scripts/qapi-visit.py | 1 + stubs/get-fd.c | 1 + target-alpha/cpu.c | 1 + target-arm/cpu.c | 1 + target-arm/cpu64.c | 1 + target-cris/cpu.c | 1 + target-i386/kvm.c | 1 + target-lm32/cpu.c | 1 + target-m68k/cpu.c | 1 + target-microblaze/cpu.c | 1 + target-mips/cpu.c | 1 + target-moxie/cpu.c | 1 + target-openrisc/cpu.c | 1 + target-s390x/cpu.c | 1 + target-s390x/helper.c | 1 + target-sh4/cpu.c | 1 + target-sparc/cpu.c | 1 + target-tilegx/cpu.c | 1 + target-tricore/cpu.c | 1 + target-unicore32/cpu.c | 1 + target-xtensa/cpu.c | 1 + tests/check-qom-proplist.c | 1 + tests/io-channel-helpers.c | 1 + tests/test-aio.c | 1 + tests/test-base64.c | 2 +- tests/test-blockjob-txn.c | 1 + tests/test-crypto-cipher.c | 1 + tests/test-crypto-secret.c | 1 + tests/test-crypto-tlscredsx509.c | 1 + tests/test-crypto-tlssession.c | 1 + tests/test-io-channel-command.c | 1 + tests/test-io-channel-file.c | 2 +- tests/test-io-channel-socket.c | 1 + tests/test-io-task.c | 1 + tests/test-opts-visitor.c | 1 + tests/test-qemu-opts.c | 1 + tests/test-qmp-input-strict.c | 1 + tests/test-qmp-input-visitor.c | 1 + tests/test-qmp-output-visitor.c | 1 + tests/test-string-input-visitor.c | 1 + tests/test-string-output-visitor.c | 1 + tests/test-thread-pool.c | 1 + tests/test-throttle.c | 1 + tests/test-visitor-serialization.c | 1 + ui/input-linux.c | 1 + ui/vnc-auth-sasl.c | 1 + ui/vnc-auth-vencrypt.c | 1 + ui/vnc-ws.c | 1 + util/base64.c | 1 + util/error.c | 1 + util/oslib-posix.c | 1 + util/qemu-option.c | 1 + util/qemu-sockets.c | 1 + util/throttle.c | 1 + 360 files changed, 365 insertions(+), 13 deletions(-)
async.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/aio.h" #include "block/thread-pool.h"
backends/baum.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "sysemu/char.h" #include "qemu/timer.h"
backends/hostmem-file.c +1 -0
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "sysemu/hostmem.h" #include "sysemu/sysemu.h"
backends/hostmem-ram.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" #include "sysemu/hostmem.h" +#include "qapi/error.h" #include "qom/object_interfaces.h" #define TYPE_MEMORY_BACKEND_RAM "memory-backend-ram"
backends/hostmem.c +1 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include "sysemu/hostmem.h" #include "hw/boards.h" +#include "qapi/error.h" #include "qapi/visitor.h" #include "qapi-types.h" #include "qapi-visit.h"
backends/rng-egd.c +1 -0
@@ -13,6 +13,7 @@#include "qemu/osdep.h" #include "sysemu/rng.h" #include "sysemu/char.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "hw/qdev.h" /* just for DEFINE_PROP_CHR */
backends/rng-random.c +1 -0
@@ -13,6 +13,7 @@#include "qemu/osdep.h" #include "sysemu/rng-random.h" #include "sysemu/rng.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qemu/main-loop.h"
backends/rng.c +1 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include "sysemu/rng.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qom/object_interfaces.h"
backends/tpm.c +1 -0
@@ -14,6 +14,7 @@#include "qemu/osdep.h" #include "sysemu/tpm_backend.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "sysemu/tpm.h" #include "qemu/thread.h"
block/backup.c +1 -0
@@ -17,6 +17,7 @@#include "block/block.h" #include "block/block_int.h" #include "block/blockjob.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qemu/ratelimit.h" #include "sysemu/block-backend.h"
block/blkdebug.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/config-file.h" #include "block/block_int.h"
block/blkverify.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/sockets.h" /* for EINPROGRESS on Windows */ #include "block/block_int.h" #include "qapi/qmp/qdict.h"
block/bochs.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
block/cloop.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
block/commit.c +1 -0
@@ -16,6 +16,7 @@#include "trace.h" #include "block/block_int.h" #include "block/blockjob.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qemu/ratelimit.h" #include "sysemu/block-backend.h"
block/curl.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "block/block_int.h"
block/dmg.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/bswap.h"
block/gluster.c +1 -0
@@ -10,6 +10,7 @@#include "qemu/osdep.h" #include <glusterfs/api/glfs.h> #include "block/block_int.h" +#include "qapi/error.h" #include "qemu/uri.h" typedef struct GlusterAIOCB {
block/io.c +1 -0
@@ -28,6 +28,7 @@#include "block/blockjob.h" #include "block/block_int.h" #include "block/throttle-groups.h" +#include "qapi/error.h" #include "qemu/error-report.h" #define NOT_DONE 0x7fffffff/* used while emulated sync operation in progress */
block/mirror.c +1 -0
@@ -16,6 +16,7 @@#include "block/blockjob.h" #include "block/block_int.h" #include "sysemu/block-backend.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qemu/ratelimit.h" #include "qemu/bitmap.h"
block/nbd.c +1 -0
@@ -28,6 +28,7 @@#include "qemu/osdep.h" #include "block/nbd-client.h" +#include "qapi/error.h" #include "qemu/uri.h" #include "block/block_int.h" #include "qemu/module.h"
block/null.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "block/block_int.h" #define NULL_OPT_LATENCY "latency-ns"
block/parallels.c +1 -0
@@ -28,6 +28,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
block/qcow.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
block/qcow2-cluster.c +1 -0
@@ -25,6 +25,7 @@#include "qemu/osdep.h" #include <zlib.h> +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "block/qcow2.h"
block/qcow2-refcount.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "block/qcow2.h"
block/qcow2-snapshot.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "block/qcow2.h"
block/qed.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "trace.h" #include "qed.h"
block/raw-posix.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/timer.h"
block/raw_bsd.c +1 -0
@@ -28,6 +28,7 @@#include "qemu/osdep.h" #include "block/block_int.h" +#include "qapi/error.h" #include "qemu/option.h" static QemuOptsList raw_create_opts = {
block/rbd.c +1 -0
@@ -13,6 +13,7 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "block/block_int.h"
block/sheepdog.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/uri.h" #include "qemu/error-report.h"
block/snapshot.c +1 -0
@@ -25,6 +25,7 @@#include "qemu/osdep.h" #include "block/snapshot.h" #include "block/block_int.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" QemuOptsList internal_snapshot_opts = {
block/ssh.c +1 -0
@@ -28,6 +28,7 @@#include <libssh2_sftp.h> #include "block/block_int.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "qemu/sockets.h" #include "qemu/uri.h"
block/stream.c +1 -0
@@ -15,6 +15,7 @@#include "trace.h" #include "block/block_int.h" #include "block/blockjob.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qemu/ratelimit.h" #include "sysemu/block-backend.h"
block/vdi.c +1 -0
@@ -50,6 +50,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
block/vhdx-log.c +1 -0
@@ -18,6 +18,7 @@* */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/error-report.h"
block/vhdx.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
block/vmdk.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qapi/qmp/qerror.h"
block/vpc.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
block/vvfat.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" #include <dirent.h> +#include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h" #include "qemu/module.h"
bootdevice.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "qapi/visitor.h" #include "qemu/error-report.h"
contrib/ivshmem-server/main.c +1 -0
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "ivshmem-server.h"
crypto/cipher.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "crypto/cipher.h"
crypto/hash.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "crypto/hash.h" #ifdef CONFIG_GNUTLS_HASH
crypto/init.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "crypto/init.h" +#include "qapi/error.h" #include "qemu/thread.h" #ifdef CONFIG_GNUTLS
crypto/secret.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "crypto/secret.h" #include "crypto/cipher.h" +#include "qapi/error.h" #include "qom/object_interfaces.h" #include "qemu/base64.h" #include "trace.h"
crypto/tlscreds.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "crypto/tlscredspriv.h" #include "trace.h"
crypto/tlscredsanon.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "crypto/tlscredsanon.h" #include "crypto/tlscredspriv.h" +#include "qapi/error.h" #include "qom/object_interfaces.h" #include "trace.h"
crypto/tlscredsx509.c +1 -0
@@ -22,6 +22,7 @@#include "crypto/tlscredsx509.h" #include "crypto/tlscredspriv.h" #include "crypto/secret.h" +#include "qapi/error.h" #include "qom/object_interfaces.h" #include "trace.h"
crypto/tlssession.c +1 -0
@@ -22,6 +22,7 @@#include "crypto/tlssession.h" #include "crypto/tlscredsanon.h" #include "crypto/tlscredsx509.h" +#include "qapi/error.h" #include "qemu/acl.h" #include "trace.h"
device_tree.c +1 -0
@@ -17,6 +17,7 @@#include <dirent.h> #endif +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "sysemu/device_tree.h"
exec.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qapi/error.h" #ifndef _WIN32#include <sys/mman.h> #endif
gdbstub.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #ifdef CONFIG_USER_ONLY
hw/9pfs/9p.c +1 -0
@@ -14,6 +14,7 @@#include "qemu/osdep.h" #include "hw/virtio/virtio.h" #include "hw/i386/pc.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "qemu/iov.h" #include "qemu/sockets.h"
hw/acpi/cpu_hotplug.c +1 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/acpi/cpu_hotplug.h" +#include "qapi/error.h" #include "qom/cpu.h" static uint64_t cpu_status_read (void *opaque,hwaddr addr,unsigned int size)
hw/acpi/ich9.c +1 -0
@@ -25,6 +25,7 @@*/ #include "qemu/osdep.h" #include "hw/hw.h" +#include "qapi/error.h" #include "qapi/visitor.h" #include "hw/i386/pc.h" #include "hw/pci/pci.h"
hw/acpi/pcihp.c +1 -0
@@ -35,6 +35,7 @@#include "exec/ioport.h" #include "exec/address-spaces.h" #include "hw/pci/pci_bus.h" +#include "qapi/error.h" #include "qom/qom-qobject.h" #include "qapi/qmp/qint.h"
hw/acpi/piix4.c +1 -0
@@ -26,6 +26,7 @@#include "hw/pci/pci.h" #include "hw/acpi/acpi.h" #include "sysemu/sysemu.h" +#include "qapi/error.h" #include "qemu/range.h" #include "exec/ioport.h" #include "hw/nvram/fw_cfg.h"
hw/alpha/typhoon.c +1 -0
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "hw/hw.h" #include "hw/devices.h"
hw/arm/allwinner-a10.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/devices.h" #include "hw/arm/allwinner-a10.h"
hw/arm/armv7m.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "hw/loader.h"
hw/arm/bcm2835_peripherals.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/bcm2835_peripherals.h" #include "hw/misc/bcm2835_mbox_defs.h" #include "hw/arm/raspi_platform.h"
hw/arm/bcm2836.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/bcm2836.h" #include "hw/arm/raspi_platform.h" #include "hw/sysbus.h"
hw/arm/boot.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/arm/arm.h" #include "hw/arm/linux-boot-if.h"
hw/arm/cubieboard.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/devices.h" #include "hw/boards.h"
hw/arm/digic.c +1 -0
@@ -21,6 +21,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/digic.h" #define DIGIC4_TIMER_BASE (n) (0xc0210000 + (n) * 0x100)
hw/arm/digic_boards.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/boards.h" #include "exec/address-spaces.h" #include "qemu/error-report.h"
hw/arm/exynos4210.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/boards.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h"
hw/arm/fsl-imx25.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/fsl-imx25.h" #include "sysemu/sysemu.h" #include "exec/address-spaces.h"
hw/arm/fsl-imx31.c +1 -0
@@ -20,6 +20,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/fsl-imx31.h" #include "sysemu/sysemu.h" #include "exec/address-spaces.h"
hw/arm/highbank.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "hw/devices.h"
hw/arm/imx25_pdk.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/fsl-imx25.h" #include "hw/boards.h" #include "qemu/error-report.h"
hw/arm/integratorcp.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/devices.h" #include "hw/boards.h"
hw/arm/kzm.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/fsl-imx31.h" #include "hw/boards.h" #include "qemu/error-report.h"
hw/arm/mainstone.c +1 -0
@@ -12,6 +12,7 @@* GNU GPL, version 2 or (at your option) any later version. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/arm/pxa.h" #include "hw/arm/arm.h"
hw/arm/musicpal.c +1 -0
@@ -10,6 +10,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "hw/devices.h"
hw/arm/netduino2.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/boards.h" #include "qemu/error-report.h" #include "hw/arm/stm32f205_soc.h"
hw/arm/nseries.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "sysemu/sysemu.h" #include "hw/arm/omap.h"
hw/arm/omap1.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/boards.h" #include "hw/hw.h" #include "hw/arm/arm.h"
hw/arm/omap2.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/boards.h"
hw/arm/omap_sx1.c +1 -0
@@ -26,6 +26,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "ui/console.h" #include "hw/arm/omap.h"
hw/arm/palm.c +1 -0
@@ -17,6 +17,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "audio/audio.h" #include "sysemu/sysemu.h"
hw/arm/pxa2xx.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/pxa.h" #include "sysemu/sysemu.h"
hw/arm/raspi.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/bcm2836.h" #include "qemu/error-report.h" #include "hw/boards.h"
hw/arm/realview.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "hw/arm/primecell.h"
hw/arm/spitz.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/arm/pxa.h" #include "hw/arm/arm.h"
hw/arm/stellaris.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/ssi/ssi.h" #include "hw/arm/arm.h"
hw/arm/stm32f205_soc.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/arm.h" #include "exec/address-spaces.h" #include "hw/arm/stm32f205_soc.h"
hw/arm/sysbus-fdt.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include <libfdt.h> #include "qemu-common.h" #ifdef CONFIG_LINUX
hw/arm/tosa.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/arm/pxa.h" #include "hw/arm/arm.h"
hw/arm/versatilepb.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "hw/devices.h"
hw/arm/vexpress.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "hw/arm/primecell.h"
hw/arm/virt-acpi-build.c +1 -0
@@ -27,6 +27,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "hw/arm/virt-acpi-build.h" #include "qemu/bitmap.h"
hw/arm/virt.c +1 -0
@@ -29,6 +29,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "hw/arm/primecell.h"
hw/arm/xilinx_zynq.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h" #include "net/net.h"
hw/arm/xlnx-ep108.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/xlnx-zynqmp.h" #include "hw/boards.h" #include "qemu/error-report.h"
hw/arm/xlnx-zynqmp.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/arm/xlnx-zynqmp.h" #include "hw/intc/arm_gic_common.h" #include "exec/address-spaces.h"
hw/audio/adlib.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/audio/audio.h" #include "audio/audio.h"
hw/audio/gus.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/audio/audio.h" #include "audio/audio.h"
hw/block/block.c +1 -0
@@ -11,6 +11,7 @@#include "sysemu/blockdev.h" #include "sysemu/block-backend.h" #include "hw/block/block.h" +#include "qapi/error.h" #include "qemu/error-report.h" void blkconf_serial (BlockConf *conf,char **serial)
hw/block/dataplane/virtio-blk.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "trace.h" #include "qemu/iov.h" #include "qemu/thread.h"
hw/block/fdc.c +1 -0
@@ -30,6 +30,7 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/block/fdc.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "qemu/timer.h" #include "hw/isa/isa.h"
hw/block/nand.c +1 -0
@@ -23,6 +23,7 @@#include "hw/block/flash.h" #include "sysemu/block-backend.h" #include "hw/qdev.h" +#include "qapi/error.h" #include "qemu/error-report.h" # define NAND_CMD_READ0 0x00
hw/block/nvme.c +1 -0
@@ -26,6 +26,7 @@#include <hw/pci/msix.h> #include <hw/pci/pci.h> #include "sysemu/sysemu.h" +#include "qapi/error.h" #include "qapi/visitor.h" #include "sysemu/block-backend.h"
hw/block/onenand.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "hw/hw.h" #include "hw/block/flash.h"
hw/block/pflash_cfi01.c +1 -0
@@ -40,6 +40,7 @@#include "hw/hw.h" #include "hw/block/flash.h" #include "sysemu/block-backend.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "qemu/bitops.h" #include "exec/address-spaces.h"
hw/block/pflash_cfi02.c +1 -0
@@ -38,6 +38,7 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/block/flash.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "sysemu/block-backend.h" #include "exec/address-spaces.h"
hw/block/virtio-blk.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/iov.h" #include "qemu/error-report.h"
hw/block/xen_disk.c +1 -0
@@ -29,6 +29,7 @@#include "xen_blkif.h" #include "sysemu/blockdev.h" #include "sysemu/block-backend.h" +#include "qapi/error.h" #include "qapi/qmp/qdict.h" #include "qapi/qmp/qstring.h"
hw/bt/hci.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/usb.h"
hw/char/debugcon.c +1 -0
@@ -25,6 +25,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "sysemu/char.h" #include "hw/isa/isa.h"
hw/char/parallel.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "sysemu/char.h" #include "hw/isa/isa.h"
hw/char/serial-isa.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/char/serial.h" #include "hw/isa/isa.h"
hw/char/serial-pci.c +1 -0
@@ -26,6 +26,7 @@/* see docs/specs/pci-serial.txt */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/char/serial.h" #include "hw/pci/pci.h"
hw/char/serial.c +1 -0
@@ -26,6 +26,7 @@#include "qemu/osdep.h" #include "hw/char/serial.h" #include "sysemu/char.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "exec/address-spaces.h" #include "qemu/error-report.h"
hw/char/spapr_vty.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/qdev.h" #include "sysemu/char.h" #include "hw/ppc/spapr.h"
hw/char/virtio-serial-bus.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/iov.h" #include "monitor/monitor.h" #include "qemu/error-report.h"
hw/core/loader.c +1 -0
@@ -43,6 +43,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "disas/disas.h" #include "monitor/monitor.h"
hw/core/machine.c +1 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include "hw/boards.h" +#include "qapi/error.h" #include "qapi-visit.h" #include "qapi/visitor.h" #include "hw/sysbus.h"
hw/core/nmi.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "hw/nmi.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "monitor/monitor.h"
hw/core/qdev-properties-system.c +1 -0
@@ -13,6 +13,7 @@#include "qemu/osdep.h" #include "net/net.h" #include "hw/qdev.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h"
hw/core/qdev-properties.c +1 -0
@@ -1,6 +1,7 @@#include "qemu/osdep.h" #include "net/net.h" #include "hw/qdev.h" +#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qemu/error-report.h" #include "sysemu/block-backend.h"
hw/cpu/a15mpcore.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/cpu/a15mpcore.h" #include "sysemu/kvm.h" #include "kvm_arm.h"
hw/cpu/a9mpcore.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/cpu/a9mpcore.h" static void a9mp_priv_set_irq (void *opaque,int irq,int level)
hw/cpu/arm11mpcore.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/cpu/arm11mpcore.h" #include "hw/intc/realview_gic.h"
hw/cpu/realview_mpcore.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/cpu/arm11mpcore.h" #include "hw/intc/realview_gic.h"
hw/cris/axis_dev88.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "net/net.h" #include "hw/block/flash.h"
hw/display/cg3.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "ui/console.h"
hw/display/cirrus_vga.c +1 -0
@@ -27,6 +27,7 @@* available at http://home.worldonline.dk/~finth/ */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "ui/console.h"
hw/display/sm501.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/char/serial.h" #include "ui/console.h"
hw/display/tc6393xb.c +1 -0
@@ -11,6 +11,7 @@* GNU GPL, version 2 or (at your option) any later version. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/devices.h" #include "hw/block/flash.h"
hw/display/tcx.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/pixel_ops.h"
hw/display/vga.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "vga.h" #include "ui/console.h"
hw/display/vmware_vga.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/loader.h" #include "trace.h"
hw/dma/pl330.c +1 -0
@@ -16,6 +16,7 @@#include "qemu/osdep.h" #include "hw/sysbus.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "sysemu/dma.h"
hw/dma/xilinx_axidma.c +1 -0
@@ -24,6 +24,7 @@#include "qemu/osdep.h" #include "hw/sysbus.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "hw/ptimer.h" #include "qemu/log.h"
hw/i386/acpi-build.c +1 -0
@@ -21,6 +21,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "acpi-build.h" #include <glib.h> #include "qemu-common.h"
hw/i386/kvm/i8254.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "sysemu/sysemu.h" #include "hw/timer/i8254.h"
hw/i386/kvm/pci-assign.c +1 -0
@@ -21,6 +21,7 @@* Copyright (C) 2008, IBM, Muli Ben-Yehuda ([email protected]) */ #include "qemu/osdep.h" +#include "qapi/error.h" #include <sys/mman.h> #include "hw/hw.h" #include "hw/i386/pc.h"
hw/i386/pc_sysfw.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/block-backend.h" #include "qemu/error-report.h" #include "hw/sysbus.h"
hw/i386/pci-assign-load-rom.c +1 -0
@@ -2,6 +2,7 @@* This is splited from hw/i386/kvm/pci-assign.c */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "qemu/error-report.h"
hw/i386/xen/xen_platform.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/ide.h"
hw/i386/xen/xen_pvdevice.c +1 -0
@@ -30,6 +30,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "trace.h"
hw/ide/qdev.c +1 -0
@@ -19,6 +19,7 @@#include "qemu/osdep.h" #include <hw/hw.h> #include "sysemu/dma.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include <hw/ide/internal.h> #include "sysemu/block-backend.h"
hw/input/milkymist-softusb.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/input/virtio-input-host.c +1 -0
@@ -5,6 +5,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/sockets.h"
hw/input/virtio-input.c +1 -0
@@ -5,6 +5,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/iov.h" #include "hw/qdev.h"
hw/intc/apic_common.c +1 -0
@@ -18,6 +18,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/> */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "trace.h"
hw/intc/arm_gic.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "hw/sysbus.h" #include "gic_internal.h" +#include "qapi/error.h" #include "qom/cpu.h" //#define DEBUG_GIC
hw/intc/arm_gic_common.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "gic_internal.h" #include "hw/arm/linux-boot-if.h"
hw/intc/arm_gicv2m.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/pci/msi.h"
hw/intc/arm_gicv3_common.c +1 -0
@@ -21,6 +21,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/intc/arm_gicv3_common.h" static void gicv3_pre_save (void *opaque)
hw/intc/armv7m_nvic.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "hw/arm/arm.h"
hw/intc/ioapic_common.c +1 -0
@@ -20,6 +20,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "monitor/monitor.h" #include "hw/i386/ioapic.h" #include "hw/i386/ioapic_internal.h"
hw/intc/openpic.c +1 -0
@@ -41,6 +41,7 @@#include "hw/ppc/ppc_e500.h" #include "hw/sysbus.h" #include "hw/pci/msi.h" +#include "qapi/error.h" #include "qemu/bitops.h" #include "qapi/qmp/qerror.h"
hw/intc/realview_gic.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/intc/realview_gic.h" static void realview_gic_set_irq (void *opaque,int irq,int level)
hw/intc/xics.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "trace.h" #include "qemu/timer.h"
hw/ipack/ipack.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/ipack/ipack.h" IPackDevice *ipack_device_find (IPackBus *bus,int32_t slot)
hw/ipmi/ipmi_bmc_extern.c +1 -0
@@ -28,6 +28,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "sysemu/char.h" #include "sysemu/sysemu.h"
hw/ipmi/isa_ipmi_bt.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "hw/isa/isa.h"
hw/ipmi/isa_ipmi_kcs.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "hw/isa/isa.h"
hw/isa/isa-bus.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "monitor/monitor.h" #include "hw/sysbus.h"
hw/isa/pc87312.c +1 -0
@@ -25,6 +25,7 @@#include "qemu/osdep.h" #include "hw/isa/pc87312.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h"
hw/m68k/an5206.c +1 -0
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/m68k/mcf.h" #include "hw/boards.h"
hw/m68k/mcf5208.c +1 -0
@@ -6,6 +6,7 @@* This code is licensed under the GPL */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/m68k/mcf.h" #include "qemu/timer.h"
hw/mem/pc-dimm.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "hw/mem/pc-dimm.h" +#include "qapi/error.h" #include "qemu/config-file.h" #include "qapi/visitor.h" #include "qemu/range.h"
hw/microblaze/petalogix_ml605_mmu.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "net/net.h"
hw/microblaze/petalogix_s3adsp1800_mmu.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "net/net.h"
hw/mips/mips_fulong2e.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/char/serial.h"
hw/mips/mips_mipssim.c +1 -0
@@ -25,6 +25,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/mips/mips.h" #include "hw/mips/cpudevs.h"
hw/mips/mips_r4k.c +1 -0
@@ -8,6 +8,7 @@* the standard PC ISA addresses. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/mips/mips.h" #include "hw/mips/cpudevs.h"
hw/misc/bcm2835_mbox.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/misc/bcm2835_mbox.h" #define MAIL0_PEEK 0x90
hw/misc/bcm2835_property.c +1 -0
@@ -4,6 +4,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/misc/bcm2835_property.h" #include "hw/misc/bcm2835_mbox_defs.h" #include "sysemu/dma.h"
hw/misc/ivshmem.c +1 -0
@@ -17,6 +17,7 @@* GNU GPL, version 2 or (at your option) any later version. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/pci/pci.h"
hw/misc/macio/macio.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/pci/pci.h"
hw/misc/tmp105.c +1 -0
@@ -22,6 +22,7 @@#include "hw/hw.h" #include "hw/i2c/i2c.h" #include "tmp105.h" +#include "qapi/error.h" #include "qapi/visitor.h" static void tmp105_interrupt_update (TMP105State *s)
hw/moxie/moxiesim.c +1 -0
@@ -25,6 +25,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/i386/pc.h"
hw/net/dp8393x.c +1 -0
@@ -21,6 +21,7 @@#include "hw/sysbus.h" #include "hw/devices.h" #include "net/net.h" +#include "qapi/error.h" #include "qemu/timer.h" #include <zlib.h>
hw/net/milkymist-minimac2.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "trace.h"
hw/net/ne2000-isa.c +1 -0
@@ -29,6 +29,7 @@#include "net/net.h" #include "ne2000.h" #include "exec/address-spaces.h" +#include "qapi/error.h" #include "qapi/visitor.h" #define TYPE_ISA_NE2000 "ne2k_isa"
hw/net/xilinx_axienet.c +1 -0
@@ -24,6 +24,7 @@#include "qemu/osdep.h" #include "hw/sysbus.h" +#include "qapi/error.h" #include "qemu/log.h" #include "net/net.h" #include "net/checksum.h"
hw/nvram/spapr_nvram.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include <libfdt.h> #include "sysemu/block-backend.h"
hw/openrisc/openrisc_sim.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/boards.h" #include "elf.h"
hw/pci-bridge/pci_bridge_dev.c +1 -0
@@ -20,6 +20,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/pci/pci_bridge.h" #include "hw/pci/pci_ids.h" #include "hw/pci/msi.h"
hw/pci-host/piix.c +1 -0
@@ -29,6 +29,7 @@#include "hw/pci/pci_host.h" #include "hw/isa/isa.h" #include "hw/sysbus.h" +#include "qapi/error.h" #include "qemu/range.h" #include "hw/xen/xen.h" #include "hw/pci-host/pam.h"
hw/pci-host/prep.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci/pci_bus.h"
hw/pci-host/q35.c +1 -0
@@ -30,6 +30,7 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/pci-host/q35.h" +#include "qapi/error.h" #include "qapi/visitor.h" /****************************************************************************
hw/pci/pcie.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "hw/pci/pci_bridge.h" #include "hw/pci/pcie.h"
hw/pci/shpc.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/range.h" #include "qemu/error-report.h"
hw/ppc/e500.c +1 -0
@@ -15,6 +15,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "e500.h" #include "e500-ccsr.h"
hw/ppc/mac_newworld.c +1 -0
@@ -47,6 +47,7 @@* */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "hw/ppc/mac.h"
hw/ppc/mac_oldworld.c +1 -0
@@ -24,6 +24,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "mac.h"
hw/ppc/ppc405_boards.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "ppc405.h"
hw/ppc/ppc405_uc.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/ppc.h" #include "hw/boards.h"
hw/ppc/spapr.c +1 -0
@@ -25,6 +25,7 @@* */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "hw/hw.h"
hw/ppc/spapr_drc.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/ppc/spapr_drc.h" #include "qom/object.h" #include "hw/qdev.h"
hw/ppc/spapr_events.c +1 -0
@@ -25,6 +25,7 @@* */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "sysemu/sysemu.h" #include "sysemu/char.h"
hw/ppc/spapr_hcall.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "cpu.h" #include "helper_regs.h"
hw/ppc/spapr_pci.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "hw/pci/pci.h"
hw/ppc/spapr_pci_vfio.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/ppc/spapr.h" #include "hw/pci-host/spapr.h" #include "hw/pci/msix.h"
hw/ppc/spapr_rng.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "sysemu/sysemu.h" #include "sysemu/device_tree.h"
hw/ppc/spapr_vio.c +1 -0
@@ -20,6 +20,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "sysemu/sysemu.h" #include "hw/boards.h"
hw/s390x/event-facility.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "hw/s390x/sclp.h"
hw/s390x/ipl.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "cpu.h" #include "elf.h"
hw/s390x/s390-virtio-ccw.c +1 -0
@@ -10,6 +10,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/boards.h" #include "exec/address-spaces.h" #include "s390-virtio.h"
hw/s390x/s390-virtio.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "qapi/qmp/qerror.h" #include "qemu/error-report.h"
hw/s390x/sclp.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "sysemu/kvm.h" #include "exec/memory.h"
hw/s390x/virtio-ccw.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h"
hw/scsi/esp-pci.c +1 -0
@@ -28,6 +28,7 @@#include "hw/nvram/eeprom93xx.h" #include "hw/scsi/esp.h" #include "trace.h" +#include "qapi/error.h" #include "qemu/log.h" #define TYPE_AM53C974_DEVICE "am53c974"
hw/scsi/esp.c +1 -0
@@ -27,6 +27,7 @@#include "hw/sysbus.h" #include "hw/scsi/esp.h" #include "trace.h" +#include "qapi/error.h" #include "qemu/log.h" /*
hw/scsi/scsi-bus.c +1 -0
@@ -1,5 +1,6 @@#include "qemu/osdep.h" #include "hw/hw.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "hw/scsi/scsi.h" #include "block/scsi.h"
hw/scsi/scsi-disk.c +1 -0
@@ -29,6 +29,7 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0)#endif #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/scsi/scsi.h"
hw/scsi/scsi-generic.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/scsi/scsi.h"
hw/scsi/vhost-scsi.c +1 -0
@@ -15,6 +15,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include <sys/ioctl.h> #include "qemu/error-report.h" #include "qemu/queue.h"
hw/scsi/virtio-scsi.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "standard-headers/linux/virtio_ids.h" #include "hw/virtio/virtio-scsi.h" #include "qemu/error-report.h"
hw/scsi/vmw_pvscsi.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/scsi/scsi.h" #include <block/scsi.h> #include "hw/pci/msi.h"
hw/sd/pxa2xx_mmci.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "hw/arm/pxa.h"
hw/sd/sd.c +1 -0
@@ -34,6 +34,7 @@#include "hw/hw.h" #include "sysemu/block-backend.h" #include "hw/sd/sd.h" +#include "qapi/error.h" #include "qemu/bitmap.h" #include "hw/qdev-properties.h" #include "qemu/error-report.h"
hw/sh4/r2d.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/sh4/sh.h"
hw/sh4/shix.c +1 -0
@@ -28,6 +28,7 @@More information in target-sh4/README.sh4 */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "sysemu/sysemu.h"
hw/smbios/smbios.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/config-file.h" #include "qemu/error-report.h" #include "sysemu/sysemu.h"
hw/sparc/leon3.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/ptimer.h"
hw/sparc/sun4m.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/sysbus.h" #include "qemu/error-report.h" #include "qemu/timer.h"
hw/sparc64/sun4u.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci-host/apb.h"
hw/timer/a9gtimer.c +1 -0
@@ -22,6 +22,7 @@#include "qemu/osdep.h" #include "hw/timer/a9gtimer.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "qemu/bitops.h" #include "qemu/log.h"
hw/timer/arm_mptimer.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "hw/timer/arm_mptimer.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "qom/cpu.h"
hw/timer/hpet.c +1 -0
@@ -28,6 +28,7 @@#include "hw/hw.h" #include "hw/i386/pc.h" #include "ui/console.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "qemu/timer.h" #include "hw/timer/hpet.h"
hw/timer/m48t59.c +1 -0
@@ -25,6 +25,7 @@#include "qemu/osdep.h" #include "hw/hw.h" #include "hw/timer/m48t59.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "sysemu/sysemu.h" #include "hw/sysbus.h"
hw/tpm/tpm_tis.c +1 -0
@@ -31,6 +31,7 @@#include "hw/i386/pc.h" #include "hw/pci/pci_ids.h" #include "tpm_tis.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/main-loop.h" #include "sysemu/tpm_backend.h"
hw/tricore/tricore_testboard.c +1 -0
@@ -19,6 +19,7 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/hw.h" #include "hw/devices.h" #include "net/net.h"
hw/unicore32/puv3.c +1 -0
@@ -10,6 +10,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "ui/console.h" #include "elf.h"
hw/usb/bus.c +1 -0
@@ -2,6 +2,7 @@#include "hw/hw.h" #include "hw/usb.h" #include "hw/qdev.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "sysemu/sysemu.h" #include "monitor/monitor.h"
hw/usb/dev-hid.c +1 -0
@@ -27,6 +27,7 @@#include "ui/console.h" #include "hw/usb.h" #include "hw/usb/desc.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "hw/input/hid.h"
hw/usb/dev-hub.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "trace.h" #include "hw/usb.h"
hw/usb/dev-mtp.c +1 -0
@@ -16,6 +16,7 @@#include <sys/statvfs.h> #ifdef __linux__#include <sys/inotify.h> +#include "qapi/error.h" #include "qemu/main-loop.h" #endif
hw/usb/dev-network.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "hw/usb.h" #include "hw/usb/desc.h"
hw/usb/dev-serial.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/usb.h"
hw/usb/dev-smartcard-reader.c +1 -0
@@ -35,6 +35,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "hw/usb.h"
hw/usb/dev-storage.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/option.h"
hw/usb/hcd-ehci.c +1 -0
@@ -28,6 +28,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/usb/ehci-regs.h" #include "hw/usb/hcd-ehci.h" #include "trace.h"
hw/usb/hcd-ohci.c +1 -0
@@ -27,6 +27,7 @@#include "qemu/osdep.h" #include "hw/hw.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "hw/usb.h" #include "hw/pci/pci.h"
hw/usb/hcd-uhci.c +1 -0
@@ -30,6 +30,7 @@#include "hw/usb.h" #include "hw/usb/uhci-regs.h" #include "hw/pci/pci.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "qemu/iov.h" #include "sysemu/dma.h"
hw/usb/host-libusb.c +1 -0
@@ -37,6 +37,7 @@#include <poll.h> #include <libusb.h> +#include "qapi/error.h" #include "qemu-common.h" #include "monitor/monitor.h" #include "qemu/error-report.h"
hw/usb/redirect.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
hw/vfio/platform.c +1 -0
@@ -15,6 +15,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include <sys/ioctl.h> #include <linux/vfio.h>
hw/virtio/vhost-user.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/virtio/vhost.h" #include "hw/virtio/vhost-backend.h" #include "hw/virtio/virtio-net.h"
hw/virtio/vhost.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "hw/virtio/vhost.h" #include "hw/hw.h" #include "qemu/atomic.h"
hw/virtio/virtio-pci.c +1 -0
@@ -26,6 +26,7 @@#include "hw/virtio/virtio-balloon.h" #include "hw/virtio/virtio-input.h" #include "hw/pci/pci.h" +#include "qapi/error.h" #include "qemu/error-report.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h"
hw/virtio/virtio-rng.c +1 -0
@@ -10,6 +10,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/iov.h" #include "hw/qdev.h" #include "hw/virtio/virtio.h"
hw/virtio/virtio.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "trace.h" #include "exec/address-spaces.h"
hw/xen/xen-host-pci-device.c +1 -0
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "xen-host-pci-device.h"
hw/xen/xen_pt.c +1 -0
@@ -53,6 +53,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include <sys/ioctl.h> #include "hw/pci/pci.h"
hw/xen/xen_pt_config_init.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "hw/xen/xen_backend.h" #include "xen_pt.h"
hw/xen/xen_pt_graphics.c +1 -0
@@ -2,6 +2,7 @@* graphics passthrough */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "xen_pt.h" #include "xen-host-pci-device.h" #include "hw/xen/xen_backend.h"
hw/xtensa/sim.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h"
hw/xtensa/xtfpga.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/sysemu.h" #include "hw/boards.h" #include "hw/loader.h"
include/qapi/error.h +0 -5
@@ -118,11 +118,6 @@#include "qapi-types.h" /* -* Opaque error object. -*/ -typedef struct Error Error ; - -/* * Overall category of an error. * Based on the qapi type QapiErrorClass, but reproduced here for nicer * enum names.
include/qemu/osdep.h +5 -4
@@ -7,8 +7,10 @@* * To avoid getting into possible circular include dependencies, this * file should not include any other QEMU headers, with the exceptions -* of config-host.h, compiler.h, os-posix.h and os-win32.h, all of which -* are doing a similar job to this file and are under similar constraints. +* of config-host.h, config-target.h, qemu/compiler.h, +* sysemu/os-posix.h, sysemu/os-win32.h, glib-compat.h and +* qemu/typedefs.h, all of which are doing a similar job to this file +* and are under similar constraints. * * This header also contains prototypes for functions defined in * os-*.c and util/oslib-*.c; those would probably be better split
@@ -98,8 +100,7 @@ extern int daemon(int, int);#endif #include "glib-compat.h" - -#include "qapi/error.h" +#include "qemu/typedefs.h" #ifndef O_LARGEFILE #define O_LARGEFILE 0
include/qemu/typedefs.h +1 -0
@@ -25,6 +25,7 @@ typedef struct DisplayChangeListener DisplayChangeListener;typedef struct DisplayState DisplayState ;typedef struct DisplaySurface DisplaySurface ;typedef struct DriveInfo DriveInfo ; +typedef struct Error Error ;typedef struct EventNotifier EventNotifier ;typedef struct FWCfgIoState FWCfgIoState ;typedef struct FWCfgMemState FWCfgMemState ;
include/qom/object.h +1 -0
@@ -15,6 +15,7 @@#define QEMU_OBJECT_H #include <glib.h> +#include "qapi-types.h" #include "qemu/queue.h" #include "qemu/typedefs.h"
include/ui/qemu-spice.h +1 -0
@@ -23,6 +23,7 @@#include <spice.h> +#include "qapi/error.h" #include "qemu/option.h" #include "qemu/config-file.h"
io/channel-command.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "io/channel-command.h" #include "io/channel-watch.h" +#include "qapi/error.h" #include "qemu/sockets.h" #include "trace.h"
io/channel-file.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "io/channel-file.h" #include "io/channel-watch.h" +#include "qapi/error.h" #include "qemu/sockets.h" #include "trace.h"
io/channel-socket.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "io/channel-socket.h" #include "io/channel-watch.h" #include "trace.h"
io/channel-tls.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "io/channel-tls.h" #include "trace.h"
io/channel-websock.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "io/channel-websock.h" #include "crypto/hash.h" #include "trace.h"
io/channel.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "io/channel.h" +#include "qapi/error.h" #include "qemu/coroutine.h" bool qio_channel_has_feature(QIOChannel *ioc,
io/task.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "io/task.h" +#include "qapi/error.h" #include "qemu/thread.h" #include "trace.h"
iohandler.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/queue.h" #include "block/aio.h"
main-loop.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/timer.h" #include "qemu/sockets.h" // struct in_addr needed for libslirp.h
memory.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "exec/memory.h" #include "exec/address-spaces.h" #include "exec/ioport.h"
memory_mapping.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include <glib.h> #include "qemu-common.h"
migration/block.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "block/block.h" #include "qemu/error-report.h"
migration/exec.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/sockets.h" #include "qemu/main-loop.h"
migration/fd.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/main-loop.h" #include "qemu/sockets.h"
migration/rdma.c +1 -0
@@ -12,6 +12,7 @@* */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "migration/migration.h" #include "migration/qemu-file.h"
nbd/client.c +1 -0
@@ -17,6 +17,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "nbd-internal.h" static int nbd_errno_to_system_errno (int err)
nbd/common.c +1 -0
@@ -17,6 +17,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "nbd-internal.h" ssize_t nbd_wr_syncv(QIOChannel *ioc,
nbd/server.c +1 -0
@@ -17,6 +17,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "nbd-internal.h" static int system_errno_to_nbd_errno (int err)
net/dump.c +1 -0
@@ -24,6 +24,7 @@#include "qemu/osdep.h" #include "clients.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/iov.h"
net/filter-buffer.c +1 -0
@@ -9,6 +9,7 @@#include "qemu/osdep.h" #include "net/filter.h" #include "net/queue.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/timer.h" #include "qemu/iov.h"
net/filter.c +1 -0
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qapi/qmp/qerror.h" #include "qemu/error-report.h"
net/socket.c +1 -0
@@ -26,6 +26,7 @@#include "net/net.h" #include "clients.h" #include "monitor/monitor.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/option.h"
net/tap-linux.c +1 -0
@@ -32,6 +32,7 @@#include <sys/ioctl.h> #include "sysemu/sysemu.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h"
net/tap.c +1 -0
@@ -36,6 +36,7 @@#include "clients.h" #include "monitor/monitor.h" #include "sysemu/sysemu.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h"
qapi/opts-visitor.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qapi/qmp/qerror.h" #include "qapi/opts-visitor.h"
qapi/qapi-util.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qapi/util.h"
qapi/qapi-visit-core.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qapi/qmp/qobject.h" #include "qapi/qmp/qerror.h"
qapi/qmp-dispatch.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qapi/qmp/types.h" #include "qapi/qmp/dispatch.h" #include "qapi/qmp/json-parser.h"
qapi/qmp-input-visitor.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qapi/qmp-input-visitor.h" #include "qapi/visitor-impl.h" #include "qemu/queue.h"
qapi/string-input-visitor.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qapi/string-input-visitor.h" #include "qapi/visitor-impl.h"
qemu-img.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qapi-visit.h" #include "qapi/qmp-output-visitor.h" #include "qapi/qmp/qerror.h"
qemu-io-cmds.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-io.h" #include "sysemu/block-backend.h" #include "block/block.h"
qemu-io.c +1 -0
@@ -11,6 +11,7 @@#include <getopt.h> #include <libgen.h> +#include "qapi/error.h" #include "qemu-io.h" #include "qemu/error-report.h" #include "qemu/main-loop.h"
qemu-nbd.c +1 -0
@@ -17,6 +17,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "sysemu/block-backend.h" #include "block/block_int.h"
qga/channel-posix.c +1 -0
@@ -1,6 +1,7 @@#include "qemu/osdep.h" #include <glib.h> #include <termios.h> +#include "qapi/error.h" #include "qemu/sockets.h" #include "qga/channel.h"
qobject/json-parser.c +1 -0
@@ -13,6 +13,7 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qapi/qmp/qstring.h" #include "qapi/qmp/qint.h"
qom/cpu.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qom/cpu.h" #include "sysemu/kvm.h"
qom/object.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qom/object.h" #include "qom/object_interfaces.h" #include "qemu-common.h"
qom/object_interfaces.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "qom/object_interfaces.h" #include "qemu/module.h" #include "qapi-visit.h"
qom/qom-qobject.c +1 -0
@@ -10,6 +10,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qom/object.h" #include "qom/qom-qobject.h"
qtest.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "sysemu/qtest.h" #include "hw/qdev.h" #include "sysemu/char.h"
replay/replay-input.c +1 -0
@@ -10,6 +10,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "sysemu/replay.h" #include "replay-internal.h"
replay/replay.c +1 -0
@@ -10,6 +10,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "sysemu/replay.h" #include "replay-internal.h"
scripts/clean-includes +3 -2
@@ -140,12 +140,13 @@ for f in "$@"; do # Remove includes that osdep.h already provides perl -n -i -e 'print if !/\s*#\s*include\s*(["<][^>"]*[">])/ || ! (grep { $_ eq $1 } qw ( - "config-host.h" "qemu/compiler.h" "config.h" + "config-host.h" "config-target.h" "qemu/compiler.h" <stdarg.h> <stddef.h> <stdbool.h> <stdint.h> <sys/types.h> <stdlib.h> <stdio.h> <string.h> <strings.h> <inttypes.h> <limits.h> <unistd.h> <time.h> <ctype.h> <errno.h> <fcntl.h> <sys/stat.h> <sys/time.h> <assert.h> <signal.h> - "glib-compat.h" "qapi/error.h" + "sysemu/os-posix.h, sysemu/os-win32.h "glib-compat.h" + "qemu/typedefs.h" ))' "$f" done
scripts/qapi-visit.py +1 -0
@@ -353,6 +353,7 @@ h_comment = ''' fdef.write(mcgen(''' #include "qemu/osdep.h" #include "qemu-common.h" +#include "qapi/error.h" #include "%(prefix)sqapi-visit.h" ''', prefix=prefix))
stubs/get-fd.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "monitor/monitor.h"
target-alpha/cpu.c +1 -0
@@ -20,6 +20,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-arm/cpu.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "internals.h" #include "qemu-common.h"
target-arm/cpu64.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #if !defined(CONFIG_USER_ONLY )
target-cris/cpu.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "mmu.h"
target-i386/kvm.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/utsname.h>
target-lm32/cpu.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h"
target-m68k/cpu.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-microblaze/cpu.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "hw/qdev-properties.h"
target-mips/cpu.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "kvm_mips.h" #include "qemu-common.h"
target-moxie/cpu.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-openrisc/cpu.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h"
target-s390x/cpu.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "qemu/timer.h"
target-s390x/helper.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "exec/gdbstub.h" #include "qemu/timer.h"
target-sh4/cpu.c +1 -0
@@ -20,6 +20,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-sparc/cpu.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu/error-report.h"
target-tilegx/cpu.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "hw/qdev-properties.h"
target-tricore/cpu.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h"
target-unicore32/cpu.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
target-xtensa/cpu.c +1 -0
@@ -29,6 +29,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "cpu.h" #include "qemu-common.h" #include "migration/vmstate.h"
tests/check-qom-proplist.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include <glib.h> +#include "qapi/error.h" #include "qom/object.h" #include "qemu/module.h"
tests/io-channel-helpers.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "io-channel-helpers.h" +#include "qapi/error.h" struct QIOChannelTest {QIOChannel *src;
tests/test-aio.c +1 -0
@@ -13,6 +13,7 @@#include "qemu/osdep.h" #include <glib.h> #include "block/aio.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "qemu/sockets.h" #include "qemu/error-report.h"
tests/test-base64.c +1 -1
@@ -21,9 +21,9 @@#include "qemu/osdep.h" #include <glib.h> +#include "qapi/error.h" #include "qemu/base64.h" -static void test_base64_good (void ) { const char input[] =
tests/test-blockjob-txn.c +1 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include <glib.h> +#include "qapi/error.h" #include "qemu/main-loop.h" #include "block/blockjob.h"
tests/test-crypto-cipher.c +1 -0
@@ -23,6 +23,7 @@#include "crypto/init.h" #include "crypto/cipher.h" +#include "qapi/error.h" typedef struct QCryptoCipherTestData QCryptoCipherTestData ;struct QCryptoCipherTestData {
tests/test-crypto-secret.c +1 -0
@@ -23,6 +23,7 @@#include "crypto/init.h" #include "crypto/secret.h" +#include "qapi/error.h" static void test_secret_direct (void ) {
tests/test-crypto-tlscredsx509.c +1 -0
@@ -22,6 +22,7 @@#include "crypto-tls-x509-helpers.h" #include "crypto/tlscredsx509.h" +#include "qapi/error.h" #ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT
tests/test-crypto-tlssession.c +1 -0
@@ -24,6 +24,7 @@#include "crypto/tlscredsx509.h" #include "crypto/tlssession.h" #include "qom/object_interfaces.h" +#include "qapi/error.h" #include "qemu/sockets.h" #include "qemu/acl.h"
tests/test-io-channel-command.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "io/channel-command.h" #include "io-channel-helpers.h" +#include "qapi/error.h" #ifndef WIN32 static void test_io_channel_command_fifo (bool async)
tests/test-io-channel-file.c +1 -1
@@ -22,7 +22,7 @@#include "io/channel-file.h" #include "io/channel-util.h" #include "io-channel-helpers.h" - +#include "qapi/error.h" static void test_io_channel_file (void ) {
tests/test-io-channel-socket.c +1 -0
@@ -22,6 +22,7 @@#include "io/channel-socket.h" #include "io/channel-util.h" #include "io-channel-helpers.h" +#include "qapi/error.h" static int check_bind (struct sockaddr *sa,socklen_t salen,bool *has_proto) {
tests/test-io-task.c +1 -0
@@ -22,6 +22,7 @@#include <glib.h> #include "io/task.h" +#include "qapi/error.h" #define TYPE_DUMMY "qemu:dummy"
tests/test-opts-visitor.c +1 -0
@@ -15,6 +15,7 @@#include "qemu/config-file.h" /* qemu_add_opts() */ #include "qemu/option.h" /* qemu_opts_parse() */ +#include "qapi/error.h" #include "qapi/opts-visitor.h" /* opts_visitor_new() */ #include "test-qapi-visit.h" /* visit_type_UserDefOptions() */
tests/test-qemu-opts.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qapi/qmp/qstring.h" #include "qemu/config-file.h"
tests/test-qmp-input-strict.c +1 -0
@@ -15,6 +15,7 @@#include <glib.h> #include "qemu-common.h" +#include "qapi/error.h" #include "qapi/qmp-input-visitor.h" #include "test-qapi-types.h" #include "test-qapi-visit.h"
tests/test-qmp-input-visitor.c +1 -0
@@ -14,6 +14,7 @@#include <glib.h> #include "qemu-common.h" +#include "qapi/error.h" #include "qapi/qmp-input-visitor.h" #include "test-qapi-types.h" #include "test-qapi-visit.h"
tests/test-qmp-output-visitor.c +1 -0
@@ -14,6 +14,7 @@#include <glib.h> #include "qemu-common.h" +#include "qapi/error.h" #include "qapi/qmp-output-visitor.h" #include "test-qapi-types.h" #include "test-qapi-visit.h"
tests/test-string-input-visitor.c +1 -0
@@ -14,6 +14,7 @@#include <glib.h> #include "qemu-common.h" +#include "qapi/error.h" #include "qapi/string-input-visitor.h" #include "test-qapi-types.h" #include "test-qapi-visit.h"
tests/test-string-output-visitor.c +1 -0
@@ -14,6 +14,7 @@#include <glib.h> #include "qemu-common.h" +#include "qapi/error.h" #include "qapi/string-output-visitor.h" #include "test-qapi-types.h" #include "test-qapi-visit.h"
tests/test-thread-pool.c +1 -0
@@ -4,6 +4,7 @@#include "block/aio.h" #include "block/thread-pool.h" #include "block/block.h" +#include "qapi/error.h" #include "qemu/timer.h" #include "qemu/error-report.h"
tests/test-throttle.c +1 -0
@@ -16,6 +16,7 @@#include <glib.h> #include <math.h> #include "block/aio.h" +#include "qapi/error.h" #include "qemu/throttle.h" #include "qemu/error-report.h" #include "block/throttle-groups.h"
tests/test-visitor-serialization.c +1 -0
@@ -18,6 +18,7 @@#include "qemu-common.h" #include "test-qapi-types.h" #include "test-qapi-visit.h" +#include "qapi/error.h" #include "qapi/qmp/types.h" #include "qapi/qmp-input-visitor.h" #include "qapi/qmp-output-visitor.h"
ui/input-linux.c +1 -0
@@ -5,6 +5,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/config-file.h" #include "qemu/sockets.h"
ui/vnc-auth-sasl.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "vnc.h" /* Max amount of data we send/recv for SASL steps to prevent DOS */
ui/vnc-auth-vencrypt.c +1 -0
@@ -26,6 +26,7 @@#include "qemu/osdep.h" #include "vnc.h" +#include "qapi/error.h" #include "qemu/main-loop.h" static void start_auth_vencrypt_subauth (VncState *vs)
ui/vnc-ws.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "vnc.h" #include "io/channel-websock.h"
util/base64.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include <config-host.h> +#include "qapi/error.h" #include "qemu/base64.h" static const char *base64_valid_chars =
util/error.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h"
util/oslib-posix.c +1 -0
@@ -46,6 +46,7 @@#include "sysemu/sysemu.h" #include "trace.h" +#include "qapi/error.h" #include "qemu/sockets.h" #include <sys/mman.h> #include <libgen.h>
util/qemu-option.c +1 -0
@@ -25,6 +25,7 @@#include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu-common.h" #include "qemu/error-report.h" #include "qapi/qmp/types.h"
util/qemu-sockets.c +1 -0
@@ -18,6 +18,7 @@#include "qemu/osdep.h" #include "monitor/monitor.h" +#include "qapi/error.h" #include "qemu/sockets.h" #include "qemu/main-loop.h" #include "qapi/qmp-input-visitor.h"
util/throttle.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qapi/error.h" #include "qemu/throttle.h" #include "qemu/timer.h" #include "block/aio.h"
Signature · 1 line
2.4.3
Re: [Qemu-devel] [PATCH 01/15] include/qemu/osdep.h: Don't include qapi/error.h
include/ui/qemu-spice.h line 29
Quoted 12 lines · Markus Armbruster
include/ui/qemu-spice.h +1
-0@@ -23,6 +23,7 @@#include <spice.h> +#include "qapi/error.h" #include "qemu/option.h" #include "qemu/config-file.h"
This must be moved outside the #ifdef CONFIG_SPICE, because ui/qemu-spice.h uses error_set call outside that #ifdef.
Paolo
Re: [Qemu-devel] [PATCH 01/15] include/qemu/osdep.h: Don't include qapi/error.h
Quoted 9 lines · Paolo Bonzini
Quoted 8 lines · Markus Armbruster
include/ui/qemu-spice.h +0
-0@@ -23,6 +23,7 @@#include <spice.h>
Quoted 7 lines
include/ui/qemu-spice.h line 29
Quoted 4 lines
include/ui/qemu-spice.h +1
-0+#include "qapi/error.h" #include "qemu/option.h" #include "qemu/config-file.h" This must be moved outside the #ifdef
CONFIG_SPICE, becauseui/qemu-spice.huseserror_setcall outside that #ifdef.
Oops!
The inline function seems ill-advised to me, but let's avoid patch series creep. I'll fix it the way you described.
PATCH 2/15 Use scripts/clean-includes to drop redundant qemu/typedefs.h
In reply to Markus ArmbrusterRe-run scripts/clean-includes to apply the previous commit's corrections and updates. Besides redundant qemu/typedefs.h, this only finds a redundant config-host.h include in ui/egl-helpers.c. No idea how that escaped the previous runs.
Some manual whitespace trimming around dropped includes squashed in.
--- hw/i386/acpi-build.h | 2 -- include/block/accounting.h | 2 -- include/block/aio.h | 1 - include/block/write-threshold.h | 2 -- include/exec/cpu-common.h | 1 - include/exec/memory.h | 1 - include/hw/acpi/acpi.h | 1 - include/hw/acpi/piix4.h | 2 -- include/hw/acpi/tco.h | 1 - include/hw/boards.h | 1 - include/hw/char/digic-uart.h | 1 - include/hw/hotplug.h | 1 - include/hw/i386/pc.h | 1 - include/hw/nvram/fw_cfg.h | 1 - include/hw/qdev-core.h | 1 - include/hw/scsi/scsi.h | 1 - include/hw/timer/digic-timer.h | 1 - include/hw/vfio/vfio.h | 2 -- include/hw/xen/xen.h | 1 - include/monitor/qdev.h | 1 - include/net/filter.h | 1 - include/qapi/visitor.h | 1 - include/qemu-common.h | 1 - include/qemu/coroutine.h | 1 - include/qemu/option.h | 1 - include/qemu/timer.h | 1 - include/qom/cpu.h | 1 - include/qom/object.h | 1 - include/sysemu/accel.h | 1 - include/sysemu/block-backend.h | 2 -- include/sysemu/memory_mapping.h | 1 - include/sysemu/replay.h | 1 - include/sysemu/sysemu.h | 1 - include/ui/console.h | 1 - include/ui/qemu-pixman.h | 2 -- stubs/target-get-monitor-def.c | 1 - stubs/target-monitor-defs.c | 1 - trace/control.h | 1 - trace/qmp.c | 1 - ui/egl-helpers.c | 1 - 40 files changed, 47 deletions(-)
hw/i386/acpi-build.h +0 -2
@@ -2,8 +2,6 @@#ifndef HW_I386_ACPI_BUILD_H #define HW_I386_ACPI_BUILD_H -#include "qemu/typedefs.h" -void acpi_setup (void );#endif
include/block/accounting.h +0 -2
@@ -25,8 +25,6 @@#ifndef BLOCK_ACCOUNTING_H #define BLOCK_ACCOUNTING_H - -#include "qemu/typedefs.h" #include "qemu/timed-average.h" typedef struct BlockAcctTimedStats BlockAcctTimedStats ;
include/block/aio.h +0 -1
@@ -14,7 +14,6 @@#ifndef QEMU_AIO_H #define QEMU_AIO_H -#include "qemu/typedefs.h" #include "qemu-common.h" #include "qemu/queue.h" #include "qemu/event_notifier.h"
include/block/write-threshold.h +0 -2
@@ -12,8 +12,6 @@#ifndef BLOCK_WRITE_THRESHOLD_H #define BLOCK_WRITE_THRESHOLD_H - -#include "qemu/typedefs.h" #include "qemu-common.h" /*
include/exec/cpu-common.h +0 -1
@@ -14,7 +14,6 @@#include "qemu/bswap.h" #include "qemu/queue.h" #include "qemu/fprintf-fn.h" -#include "qemu/typedefs.h" /** * CPUListState:
include/exec/memory.h +0 -1
@@ -31,7 +31,6 @@#include "qemu/notify.h" #include "qom/object.h" #include "qemu/rcu.h" -#include "qemu/typedefs.h" #define MAX_PHYS_ADDR_SPACE_BITS 62#define MAX_PHYS_ADDR (((hwaddr)1 << MAX_PHYS_ADDR_SPACE_BITS) - 1)
include/hw/acpi/acpi.h +0 -1
@@ -19,7 +19,6 @@* <http://www.gnu.org/licenses/>. */ -#include "qemu/typedefs.h" #include "qemu/notify.h" #include "qemu/option.h" #include "exec/memory.h"
include/hw/acpi/piix4.h +0 -2
@@ -1,8 +1,6 @@#ifndef HW_ACPI_PIIX4_H #define HW_ACPI_PIIX4_H -#include "qemu/typedefs.h" -Object *piix4_pm_find (void );#endif
include/hw/acpi/tco.h +0 -1
@@ -9,7 +9,6 @@#ifndef HW_ACPI_TCO_H #define HW_ACPI_TCO_H -#include "qemu/typedefs.h" #include "qemu-common.h" /* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */
include/hw/boards.h +0 -1
@@ -3,7 +3,6 @@#ifndef HW_BOARDS_H #define HW_BOARDS_H -#include "qemu/typedefs.h" #include "sysemu/blockdev.h" #include "sysemu/accel.h" #include "hw/qdev.h"
include/hw/char/digic-uart.h +0 -1
@@ -19,7 +19,6 @@#define HW_CHAR_DIGIC_UART_H #include "hw/sysbus.h" -#include "qemu/typedefs.h" #define TYPE_DIGIC_UART "digic-uart"#define DIGIC_UART (obj) \
include/hw/hotplug.h +0 -1
@@ -13,7 +13,6 @@#define HOTPLUG_H #include "qom/object.h" -#include "qemu/typedefs.h" #define TYPE_HOTPLUG_HANDLER "hotplug-handler"
include/hw/i386/pc.h +0 -1
@@ -2,7 +2,6 @@#define HW_PC_H #include "qemu-common.h" -#include "qemu/typedefs.h" #include "exec/memory.h" #include "hw/boards.h" #include "hw/isa/isa.h"
include/hw/nvram/fw_cfg.h +0 -1
@@ -4,7 +4,6 @@#ifndef NO_QEMU_PROTOS #include "exec/hwaddr.h" -#include "qemu/typedefs.h" #endif #define FW_CFG_SIGNATURE 0x00
include/hw/qdev-core.h +0 -1
@@ -3,7 +3,6 @@#include "qemu/queue.h" #include "qemu/option.h" -#include "qemu/typedefs.h" #include "qemu/bitmap.h" #include "qom/object.h" #include "hw/irq.h"
include/hw/scsi/scsi.h +0 -1
@@ -2,7 +2,6 @@#define QEMU_HW_SCSI_H #include "hw/qdev.h" -#include "qemu/typedefs.h" #include "hw/block/block.h" #include "sysemu/sysemu.h" #include "qemu/notify.h"
include/hw/timer/digic-timer.h +0 -1
@@ -19,7 +19,6 @@#define HW_TIMER_DIGIC_TIMER_H #include "hw/sysbus.h" -#include "qemu/typedefs.h" #include "hw/ptimer.h" #define TYPE_DIGIC_TIMER "digic-timer"
include/hw/vfio/vfio.h +0 -2
@@ -1,8 +1,6 @@#ifndef VFIO_API_H #define VFIO_API_H -#include "qemu/typedefs.h" -extern int vfio_container_ioctl (AddressSpace *as,int32_t groupid,int req,void *param);
include/hw/xen/xen.h +0 -1
@@ -9,7 +9,6 @@#include "hw/irq.h" #include "qemu-common.h" -#include "qemu/typedefs.h" /* xen-machine.c */ enum xen_mode {
include/monitor/qdev.h +0 -1
@@ -2,7 +2,6 @@#define QEMU_QDEV_MONITOR_H #include "hw/qdev-core.h" -#include "qemu/typedefs.h" /*** monitor commands ***/
include/net/filter.h +0 -1
@@ -11,7 +11,6 @@#include "qom/object.h" #include "qemu-common.h" -#include "qemu/typedefs.h" #include "net/queue.h" #define TYPE_NETFILTER "netfilter"
include/qapi/visitor.h +0 -1
@@ -14,7 +14,6 @@#ifndef QAPI_VISITOR_CORE_H #define QAPI_VISITOR_CORE_H -#include "qemu/typedefs.h" #include "qapi/qmp/qobject.h" /* This struct is layout-compatible with all other *List structs
include/qemu-common.h +0 -1
@@ -12,7 +12,6 @@#ifndef QEMU_COMMON_H #define QEMU_COMMON_H -#include "qemu/typedefs.h" #include "qemu/fprintf-fn.h" #if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__) || defined(__ia64__)
include/qemu/coroutine.h +0 -1
@@ -15,7 +15,6 @@#ifndef QEMU_COROUTINE_H #define QEMU_COROUTINE_H -#include "qemu/typedefs.h" #include "qemu/queue.h" #include "qemu/timer.h"
include/qemu/option.h +0 -1
@@ -28,7 +28,6 @@#include "qemu/queue.h" #include "qapi/qmp/qdict.h" -#include "qemu/typedefs.h" const char *get_opt_name (char *buf,int buf_size,const char *p,char delim);const char *get_opt_value (char *buf,int buf_size,const char *p);
include/qemu/timer.h +0 -1
@@ -1,7 +1,6 @@#ifndef QEMU_TIMER_H #define QEMU_TIMER_H -#include "qemu/typedefs.h" #include "qemu-common.h" #include "qemu/notify.h" #include "qemu/host-utils.h"
include/qom/cpu.h +0 -1
@@ -27,7 +27,6 @@#include "exec/memattrs.h" #include "qemu/queue.h" #include "qemu/thread.h" -#include "qemu/typedefs.h" typedef int (*WriteCoreDumpFunction )(const void *buf,size_t size,void *opaque);
include/qom/object.h +0 -1
@@ -17,7 +17,6 @@#include <glib.h> #include "qapi-types.h" #include "qemu/queue.h" -#include "qemu/typedefs.h" struct TypeImpl ;typedef struct TypeImpl *Type ;
include/sysemu/accel.h +0 -1
@@ -23,7 +23,6 @@ #ifndef HW_ACCEL_H #define HW_ACCEL_H -#include "qemu/typedefs.h" #include "qom/object.h" typedef struct AccelState {
include/sysemu/block-backend.h +0 -2
@@ -13,8 +13,6 @@#ifndef BLOCK_BACKEND_H #define BLOCK_BACKEND_H -#include "qemu/typedefs.h" -/* * TODO Have to include block/block.h for a bunch of block layer * types. Unfortunately, this pulls in the whole BlockDriverState
include/sysemu/memory_mapping.h +0 -1
@@ -15,7 +15,6 @@#define MEMORY_MAPPING_H #include "qemu/queue.h" -#include "qemu/typedefs.h" #include "exec/memory.h" typedef struct GuestPhysBlock {
include/sysemu/replay.h +0 -1
@@ -13,7 +13,6 @@*/ #include "qapi-types.h" -#include "qemu/typedefs.h" /* replay clock kinds */ enum ReplayClockKind {
include/sysemu/sysemu.h +0 -1
@@ -2,7 +2,6 @@#define SYSEMU_H /* Misc. things related to the system emulator. */ -#include "qemu/typedefs.h" #include "qemu/option.h" #include "qemu/queue.h" #include "qemu/timer.h"
include/ui/console.h +0 -1
@@ -5,7 +5,6 @@#include "qom/object.h" #include "qapi/qmp/qdict.h" #include "qemu/notify.h" -#include "qemu/typedefs.h" #include "qapi-types.h" #ifdef CONFIG_OPENGL
include/ui/qemu-pixman.h +0 -2
@@ -16,8 +16,6 @@#pragma GCC diagnostic pop#endif -#include "qemu/typedefs.h" -/* * pixman image formats are defined to be native endian, * that means host byte order on qemu. So we go define
stubs/target-get-monitor-def.c +0 -1
@@ -20,7 +20,6 @@*/ #include "qemu/osdep.h" -#include "qemu/typedefs.h" #include "stdint.h" int target_get_monitor_def (CPUState *cs,const char *name,uint64_t *pval);
stubs/target-monitor-defs.c +0 -1
@@ -1,6 +1,5 @@#include "qemu/osdep.h" #include "stddef.h" -#include "qemu/typedefs.h" const MonitorDef *target_monitor_defs (void );
trace/control.h +0 -1
@@ -11,7 +11,6 @@#define TRACE__CONTROL_H #include "qemu-common.h" -#include "qemu/typedefs.h" #include "trace/generated-events.h"
trace/qmp.c +0 -1
@@ -8,7 +8,6 @@*/ #include "qemu/osdep.h" -#include "qemu/typedefs.h" #include "qmp-commands.h" #include "trace/control.h"
ui/egl-helpers.c +0 -1
@@ -2,7 +2,6 @@#include <glob.h> #include <dirent.h> -#include "config-host.h" #include "ui/egl-helpers.h" EGLDisplay *qemu_egl_display;
Signature · 1 line
2.4.3
PATCH 3/15 include/config.h: Unused, remove
In reply to Markus ArmbrusterCommit 90ce6e2 removed one of its two lines, but missed the fact that it also removed the last of its users. Bury the body.
--- include/config.h | 1 - scripts/clean-includes | 1 - 2 files changed, 2 deletions(-) delete mode 100644 include/config.h
include/config.h deleted +0 -1
@@ -1 +0,0 @@ -#include "config-target.h"
scripts/clean-includes +0 -1
@@ -104,7 +104,6 @@ for f in "$@"; do ;; *include/qemu/osdep.h | \ *include/qemu/compiler.h | \ - *include/config.h | \ *include/standard-headers/ ) # Removing include lines from osdep.h itself would be counterproductive. echo "SKIPPING $f (special case header)"
Signature · 1 line
2.4.3
PATCH 4/15 Clean up includes some more
In reply to Markus ArmbrusterManually drop redundant includes that scripts/clean-includes misses, e.g. because they're hidden in generator programs, or they use the wrong kind of delimiter.
--- hw/net/vmxnet_rx_pkt.h | 2 -- hw/net/vmxnet_tx_pkt.h | 2 -- hw/scsi/virtio-scsi-dataplane.c | 1 - include/hw/acpi/pcihp.h | 1 - include/qemu/range.h | 1 - qga/main.c | 1 - qga/vss-win32/requester.cpp | 1 - scripts/qapi-types.py | 5 ----- scripts/tracetool/backend/log.py | 6 +----- scripts/tracetool/format/events_h.py | 2 -- scripts/tracetool/format/h.py | 1 - scripts/tracetool/format/tcg_h.py | 2 -- scripts/tracetool/format/ust_events_c.py | 1 - stubs/gdbstub.c | 2 -- stubs/target-get-monitor-def.c | 1 - stubs/target-monitor-defs.c | 1 - tests/tcg/test-i386-fprem.c | 4 +--- util/base64.c | 2 -- 18 files changed, 2 insertions(+), 34 deletions(-)
hw/net/vmxnet_rx_pkt.h +0 -2
@@ -18,8 +18,6 @@#ifndef VMXNET_RX_PKT_H #define VMXNET_RX_PKT_H -#include "stdint.h" -#include "stdbool.h" #include "net/eth.h" /* defines to enable packet dump functions */
hw/net/vmxnet_tx_pkt.h +0 -2
@@ -18,8 +18,6 @@#ifndef VMXNET_TX_PKT_H #define VMXNET_TX_PKT_H -#include "stdint.h" -#include "stdbool.h" #include "net/eth.h" #include "exec/hwaddr.h"
hw/scsi/virtio-scsi-dataplane.c +0 -1
@@ -19,7 +19,6 @@#include <block/scsi.h> #include <hw/virtio/virtio-bus.h> #include "hw/virtio/virtio-access.h" -#include "stdio.h" /* Context: QEMU global mutex held */ void virtio_scsi_set_iothread (VirtIOSCSI *s,IOThread *iothread)
include/hw/acpi/pcihp.h +0 -1
@@ -27,7 +27,6 @@#ifndef HW_ACPI_PCIHP_H #define HW_ACPI_PCIHP_H -#include <qemu/typedefs.h> #include "hw/acpi/acpi.h" #include "migration/vmstate.h"
include/qemu/range.h +0 -1
@@ -1,7 +1,6 @@#ifndef QEMU_RANGE_H #define QEMU_RANGE_H -#include <qemu/typedefs.h> #include "qemu/queue.h" /*
qga/main.c +0 -1
@@ -24,7 +24,6 @@#include "qapi/qmp/qjson.h" #include "qga/guest-agent-core.h" #include "qemu/module.h" -#include "signal.h" #include "qapi/qmp/qerror.h" #include "qapi/qmp/dispatch.h" #include "qga/channel.h"
qga/vss-win32/requester.cpp +0 -1
@@ -13,7 +13,6 @@ #include "qemu/osdep.h" #include "vss-common.h" #include "requester.h" -#include "assert.h" #include "inc/win2003/vswriter.h" #include "inc/win2003/vsbackup.h"
scripts/qapi-types.py +0 -5
@@ -292,11 +292,6 @@ fdef.write(mcgen(''' ''', prefix=prefix)) -# To avoid circular headers, use only typedefs.h here, not qobject.h -fdecl.write(mcgen(''' -#include "qemu/typedefs.h" -''')) - schema = QAPISchema(input_file) gen = QAPISchemaGenTypeVisitor() schema.visit(gen)
scripts/tracetool/backend/log.py +1 -5
@@ -20,11 +20,7 @@ PUBLIC = True def generate_h_begin(events): - out('#include <stdio.h>', - '#include <sys/time.h>', - '#include <sys/types.h>', - '#include <unistd.h>', - '#include "trace/control.h"', + out('#include "trace/control.h"', '#include "qemu/log.h"', '')
scripts/tracetool/format/events_h.py +0 -2
@@ -21,8 +21,6 @@ def generate(events, backend): '', '#ifndef TRACE__GENERATED_EVENTS_H', '#define TRACE__GENERATED_EVENTS_H', - '', - '#include <stdbool.h>', '') # event identifiers
scripts/tracetool/format/h.py +0 -1
@@ -23,7 +23,6 @@ def generate(events, backend): '#define TRACE__GENERATED_TRACERS_H', '', '#include "qemu-common.h"', - '#include "qemu/typedefs.h"', '') backend.generate_begin(events)
scripts/tracetool/format/tcg_h.py +0 -2
@@ -34,8 +34,6 @@ def generate(events, backend): '#ifndef TRACE__GENERATED_TCG_TRACERS_H', '#define TRACE__GENERATED_TCG_TRACERS_H', '', - '#include <stdint.h>', - '', '#include "trace.h"', '#include "exec/helper-proto.h"', '',
scripts/tracetool/format/ust_events_c.py +0 -1
@@ -32,5 +32,4 @@ def generate(events, backend): ' */', '#pragma GCC diagnostic ignored "-Wredundant-decls"', '', - '#include "qemu/typedefs.h"', '#include "generated-ust-provider.h"')
stubs/gdbstub.c +0 -2
@@ -1,6 +1,4 @@#include "qemu/osdep.h" -#include "stdbool.h" /* bool (in exec/gdbstub.h) */ -#include "stddef.h" /* NULL */ #include "exec/gdbstub.h" /* xml_builtin */ const char *const xml_builtin[][2 ] = {
stubs/target-get-monitor-def.c +0 -1
@@ -20,7 +20,6 @@*/ #include "qemu/osdep.h" -#include "stdint.h" int target_get_monitor_def (CPUState *cs,const char *name,uint64_t *pval);
stubs/target-monitor-defs.c +0 -1
@@ -1,5 +1,4 @@#include "qemu/osdep.h" -#include "stddef.h" const MonitorDef *target_monitor_defs (void );
tests/tcg/test-i386-fprem.c +1 -3
@@ -22,10 +22,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/>. */ -#include "qemu/compiler.h" +#include "qemu/osdep.h" -#include <stdio.h> -#include <inttypes.h> /* * Inspired by <ieee754.h>'s union ieee854_long_double, but with single
util/base64.c +0 -2
@@ -19,8 +19,6 @@*/ #include "qemu/osdep.h" -#include <config-host.h> -#include "qapi/error.h" #include "qemu/base64.h"
Signature · 1 line
2.4.3
PATCH 5/15 fw_cfg: Split fw_cfg_keys.h off fw_cfg.h
In reply to Markus ArmbrusterMuch of fw_cfg.h's contents is #ifndef NO_QEMU_PROTOS. This lets a few places include it without satisfying the dependencies of the suppressed code. If you somehow include it with NO_QEMU_PROTOS, any future includes are ignored. Unnecessarily unclean.
Move the stuff not under NO_QEMU_PROTOS into its own header fw_cfg_keys.h, and include it as appropriate. Tidy up the moved code to please checkpatch.
--- include/hw/nvram/fw_cfg.h | 49 +----------------------------------------- include/hw/nvram/fw_cfg_keys.h | 46 +++++++++++++++++++++++++++++++++++++++ pc-bios/optionrom/optionrom.h | 3 +-- tests/boot-order-test.c | 4 +--- tests/fw_cfg-test.c | 3 +-- tests/libqos/malloc-pc.c | 3 +-- 6 files changed, 51 insertions(+), 57 deletions(-) create mode 100644 include/hw/nvram/fw_cfg_keys.h
include/hw/nvram/fw_cfg.h +1 -48
@@ -1,54 +1,9 @@ #ifndef FW_CFG_H #define FW_CFG_H -#ifndef NO_QEMU_PROTOS - #include "exec/hwaddr.h" -#endif +#include "hw/nvram/fw_cfg_keys.h" -#define FW_CFG_SIGNATURE 0x00 -#define FW_CFG_ID 0x01 -#define FW_CFG_UUID 0x02 -#define FW_CFG_RAM_SIZE 0x03 -#define FW_CFG_NOGRAPHIC 0x04 -#define FW_CFG_NB_CPUS 0x05 -#define FW_CFG_MACHINE_ID 0x06 -#define FW_CFG_KERNEL_ADDR 0x07 -#define FW_CFG_KERNEL_SIZE 0x08 -#define FW_CFG_KERNEL_CMDLINE 0x09 -#define FW_CFG_INITRD_ADDR 0x0a -#define FW_CFG_INITRD_SIZE 0x0b -#define FW_CFG_BOOT_DEVICE 0x0c -#define FW_CFG_NUMA 0x0d -#define FW_CFG_BOOT_MENU 0x0e -#define FW_CFG_MAX_CPUS 0x0f -#define FW_CFG_KERNEL_ENTRY 0x10 -#define FW_CFG_KERNEL_DATA 0x11 -#define FW_CFG_INITRD_DATA 0x12 -#define FW_CFG_CMDLINE_ADDR 0x13 -#define FW_CFG_CMDLINE_SIZE 0x14 -#define FW_CFG_CMDLINE_DATA 0x15 -#define FW_CFG_SETUP_ADDR 0x16 -#define FW_CFG_SETUP_SIZE 0x17 -#define FW_CFG_SETUP_DATA 0x18 -#define FW_CFG_FILE_DIR 0x19 - -#define FW_CFG_FILE_FIRST 0x20 -#define FW_CFG_FILE_SLOTS 0x10 -#define FW_CFG_MAX_ENTRY (FW_CFG_FILE_FIRST+FW_CFG_FILE_SLOTS) - -#define FW_CFG_WRITE_CHANNEL 0x4000 -#define FW_CFG_ARCH_LOCAL 0x8000 -#define FW_CFG_ENTRY_MASK ~(FW_CFG_WRITE_CHANNEL | FW_CFG_ARCH_LOCAL) - -#define FW_CFG_INVALID 0xffff - -/* width in bytes of fw_cfg control register */ -#define FW_CFG_CTL_SIZE 0x02 - -#define FW_CFG_MAX_FILE_PATH 56 - -#ifndef NO_QEMU_PROTOS typedef struct FWCfgFile { uint32_t size; /* file size */ uint16_t select; /* write this to 0x510 to read it */
@@ -220,6 +175,4 @@ FWCfgState *fw_cfg_init_mem_wide(hwaddr ctl_addr,FWCfgState *fw_cfg_find (void ); -#endif /* NO_QEMU_PROTOS */ -#endif
include/hw/nvram/fw_cfg_keys.h new file +46 -0
46 lines not on this page · raw message
pc-bios/optionrom/optionrom.h +1 -2
@@ -19,8 +19,7 @@*/ -#define NO_QEMU_PROTOS -#include "../../include/hw/nvram/fw_cfg.h" +#include "../../include/hw/nvram/fw_cfg_keys.h" #define BIOS_CFG_IOPORT_CFG 0x510#define BIOS_CFG_IOPORT_DATA 0x511
tests/boot-order-test.c +1 -3
@@ -15,9 +15,7 @@#include "libqos/fw_cfg.h" #include "libqtest.h" -#define NO_QEMU_PROTOS -#include "hw/nvram/fw_cfg.h" -#undef NO_QEMU_PROTOS +#include "hw/nvram/fw_cfg_keys.h" typedef struct { const char *args;
tests/fw_cfg-test.c +1 -2
@@ -14,8 +14,7 @@#include <glib.h> #include "libqtest.h" -#define NO_QEMU_PROTOS -#include "hw/nvram/fw_cfg.h" +#include "hw/nvram/fw_cfg_keys.h" #include "libqos/fw_cfg.h" static uint64_t ram_size =128 <<20 ;
tests/libqos/malloc-pc.c +1 -2
@@ -14,8 +14,7 @@#include "libqos/malloc-pc.h" #include "libqos/fw_cfg.h" -#define NO_QEMU_PROTOS -#include "hw/nvram/fw_cfg.h" +#include "hw/nvram/fw_cfg_keys.h" #include "qemu-common.h" #include <glib.h>
Signature · 1 line
2.4.3
PATCH 6/15 include/qemu/iov.h: Don't include qemu-common.h
In reply to Markus Armbrusterqemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies."
qemu/iov.h includes qemu-common.h for QEMUIOVector stuff. Move all that to qemu/iov.h and drop the ill-advised include. Include qemu/iov.h where the QEMUIOVector stuff is now missing.
--- block/raw-aio.h | 2 ++ include/block/block.h | 2 +- include/hw/ppc/mac_dbdma.h | 1 + include/hw/usb.h | 1 + include/qemu-common.h | 28 ---------------------------- include/qemu/iov.h | 30 ++++++++++++++++++++++++++++-- include/sysemu/block-backend.h | 2 ++ util/iov.c | 1 + 8 files changed, 36 insertions(+), 31 deletions(-)
block/raw-aio.h +2 -0
@@ -15,6 +15,8 @@#ifndef QEMU_RAW_AIO_H #define QEMU_RAW_AIO_H +#include "qemu/iov.h" +/* AIO request types */ #define QEMU_AIO_READ 0x0001#define QEMU_AIO_WRITE 0x0002
include/block/block.h +1 -1
@@ -2,7 +2,7 @@#define BLOCK_H #include "block/aio.h" -#include "qemu-common.h" +#include "qemu/iov.h" #include "qemu/option.h" #include "qemu/coroutine.h" #include "block/accounting.h"
include/hw/ppc/mac_dbdma.h +1 -0
@@ -23,6 +23,7 @@#define HW_MAC_DBDMA_H 1#include "exec/memory.h" +#include "qemu/iov.h" typedef struct DBDMA_io DBDMA_io ;
include/hw/usb.h +1 -0
@@ -26,6 +26,7 @@*/ #include "hw/qdev.h" +#include "qemu/iov.h" #include "qemu/queue.h" /* Constants related to the USB / PCI interaction */
include/qemu-common.h +0 -28
@@ -364,34 +364,6 @@ ssize_t qemu_co_send_recv(int sockfd, void *buf, size_t bytes, bool do_send);#define qemu_co_send (sockfd, buf, bytes) \ qemu_co_send_recv(sockfd, buf, bytes, true) -typedef struct QEMUIOVector { -struct iovec *iov; -int niov; -int nalloc; -size_t size; -}QEMUIOVector ; - -void qemu_iovec_init (QEMUIOVector *qiov,int alloc_hint); -void qemu_iovec_init_external (QEMUIOVector *qiov,struct iovec *iov,int niov); -void qemu_iovec_add (QEMUIOVector *qiov,void *base,size_t len); -void qemu_iovec_concat (QEMUIOVector *dst, -QEMUIOVector *src,size_t soffset,size_t sbytes); -size_t qemu_iovec_concat_iov (QEMUIOVector *dst, -struct iovec *src_iov,unsigned int src_cnt, -size_t soffset,size_t sbytes); -bool qemu_iovec_is_zero (QEMUIOVector *qiov); -void qemu_iovec_destroy (QEMUIOVector *qiov); -void qemu_iovec_reset (QEMUIOVector *qiov); -size_t qemu_iovec_to_buf (QEMUIOVector *qiov,size_t offset, -void *buf,size_t bytes); -size_t qemu_iovec_from_buf (QEMUIOVector *qiov,size_t offset, -const void *buf,size_t bytes); -size_t qemu_iovec_memset (QEMUIOVector *qiov,size_t offset, -int fillc,size_t bytes); -ssize_t qemu_iovec_compare (QEMUIOVector *a,QEMUIOVector *b); -void qemu_iovec_clone (QEMUIOVector *dest,const QEMUIOVector *src,void *buf); -void qemu_iovec_discard_back (QEMUIOVector *qiov,size_t bytes); -bool buffer_is_zero (const void *buf,size_t len);void qemu_progress_init (int enabled,float min_skip);
include/qemu/iov.h +28 -2
@@ -14,8 +14,6 @@#ifndef IOV_H #define IOV_H -#include "qemu-common.h" -/** * count and return data size, in bytes, of an iovec * starting at `iov' of `iov_cnt' number of elements.
@@ -138,4 +136,32 @@ size_t iov_discard_front(struct iovec **iov, unsigned int *iov_cnt,size_t iov_discard_back (struct iovec *iov,unsigned int *iov_cnt,size_t bytes); +typedef struct QEMUIOVector { +struct iovec *iov; +int niov; +int nalloc; +size_t size; +}QEMUIOVector ; + +void qemu_iovec_init (QEMUIOVector *qiov,int alloc_hint); +void qemu_iovec_init_external (QEMUIOVector *qiov,struct iovec *iov,int niov); +void qemu_iovec_add (QEMUIOVector *qiov,void *base,size_t len); +void qemu_iovec_concat (QEMUIOVector *dst, +QEMUIOVector *src,size_t soffset,size_t sbytes); +size_t qemu_iovec_concat_iov (QEMUIOVector *dst, +struct iovec *src_iov,unsigned int src_cnt, +size_t soffset,size_t sbytes); +bool qemu_iovec_is_zero (QEMUIOVector *qiov); +void qemu_iovec_destroy (QEMUIOVector *qiov); +void qemu_iovec_reset (QEMUIOVector *qiov); +size_t qemu_iovec_to_buf (QEMUIOVector *qiov,size_t offset, +void *buf,size_t bytes); +size_t qemu_iovec_from_buf (QEMUIOVector *qiov,size_t offset, +const void *buf,size_t bytes); +size_t qemu_iovec_memset (QEMUIOVector *qiov,size_t offset, +int fillc,size_t bytes); +ssize_t qemu_iovec_compare (QEMUIOVector *a,QEMUIOVector *b); +void qemu_iovec_clone (QEMUIOVector *dest,const QEMUIOVector *src,void *buf); +void qemu_iovec_discard_back (QEMUIOVector *qiov,size_t bytes); +#endif
include/sysemu/block-backend.h +2 -0
@@ -13,6 +13,8 @@#ifndef BLOCK_BACKEND_H #define BLOCK_BACKEND_H +#include "qemu/iov.h" +/* * TODO Have to include block/block.h for a bunch of block layer * types. Unfortunately, this pulls in the whole BlockDriverState
util/iov.c +1 -0
@@ -17,6 +17,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qemu/iov.h" #include "qemu/sockets.h"
Signature · 1 line
2.4.3
PATCH 7/15 include/hw/hw.h: Don't include qemu-common.h
In reply to Markus Armbrusterqemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies."
hw/hw.h includes qemu-common.h, but its users generally need only hw_error() and qemu/module.h from it. Move the former to hw/hw.h, include the latter there, and drop the ill-advised include. hw/misc/cbus.c now misses hw_error(), so include hw/hw.h there.
--- hw/misc/cbus.c | 2 +- include/hw/hw.h | 4 +++- include/qemu-common.h | 4 ---- 3 files changed, 4 insertions(+), 6 deletions(-)
hw/misc/cbus.c +1 -1
@@ -21,7 +21,7 @@*/ #include "qemu/osdep.h" -#include "qemu-common.h" +#include "hw/hw.h" #include "hw/irq.h" #include "hw/devices.h" #include "sysemu/sysemu.h"
include/hw/hw.h +3 -1
@@ -2,7 +2,6 @@#ifndef QEMU_HW_H #define QEMU_HW_H -#include "qemu-common.h" #if !defined(CONFIG_USER_ONLY ) && !defined(NEED_CPU_H )#include "exec/cpu-common.h"
@@ -13,6 +12,7 @@#include "block/aio.h" #include "migration/vmstate.h" #include "qemu/log.h" +#include "qemu/module.h" #ifdef NEED_CPU_H #if TARGET_LONG_BITS ==64
@@ -41,6 +41,8 @@ typedef void QEMUResetHandler(void *opaque);void qemu_register_reset (QEMUResetHandler *func,void *opaque);void qemu_unregister_reset (QEMUResetHandler *func,void *opaque); +void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2); +#ifdef NEED_CPU_H #if TARGET_LONG_BITS ==64 #define VMSTATE_UINTTL_V (_f, _s, _v) \
include/qemu-common.h +0 -4
@@ -303,10 +303,6 @@ int qemu_openpty_raw(int *aslave, char *pty_name); sendto(sockfd, buf, len, flags, destaddr, addrlen)#endif -/* Error handling. */ - -void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2); -struct ParallelIOArg {void *buffer;int count;
Signature · 1 line
2.4.3
PATCH 8/15 hw/pci/pci.h: Don't include qemu-common.h
In reply to Markus Armbrusterqemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies."
hw/pci/pci.h includes qemu-common.h, but its users only need pcibus_t and PCIHostDeviceAddress from it. Move them to hw/pci/pci.h and drop the ill-advised include. Include hw/pci/pci.h where the moved stuff is now missing. Except we can't in target-i386/kvm_i386.h, because that would break the i386-linux-user compile. Add PCIHostDeviceAddress to qemu/typedefs.h instead.
--- hw/core/qdev-properties.c | 1 + include/hw/pci/pci.h | 11 +++++++++-- include/qemu-common.h | 9 --------- include/qemu/typedefs.h | 1 + 4 files changed, 11 insertions(+), 11 deletions(-)
hw/core/qdev-properties.c +1 -0
@@ -2,6 +2,7 @@#include "net/net.h" #include "hw/qdev.h" #include "qapi/error.h" +#include "hw/pci/pci.h" #include "qapi/qmp/qerror.h" #include "qemu/error-report.h" #include "sysemu/block-backend.h"
include/hw/pci/pci.h +9 -2
@@ -1,8 +1,6 @@#ifndef QEMU_PCI_H #define QEMU_PCI_H -#include "qemu-common.h" -#include "hw/qdev.h" #include "exec/memory.h" #include "sysemu/dma.h"
@@ -97,6 +95,15 @@#define FMT_PCIBUS PRIx64 +typedef uint64_t pcibus_t ; + +struct PCIHostDeviceAddress { +unsigned int domain; +unsigned int bus; +unsigned int slot; +unsigned int function; +}; +typedef void PCIConfigWriteFunc (PCIDevice *pci_dev,uint32_t address,uint32_t data,int len); typedef uint32_t PCIConfigReadFunc(PCIDevice *pci_dev,
include/qemu-common.h +0 -9
@@ -310,15 +310,6 @@ struct ParallelIOArg {typedef int (*DMA_transfer_handler ) (void *opaque,int nchan,int pos,int size); -typedef uint64_t pcibus_t ; - -typedef struct PCIHostDeviceAddress { -unsigned int domain; -unsigned int bus; -unsigned int slot; -unsigned int function; -}PCIHostDeviceAddress ; -void tcg_exec_init (unsigned long tb_size);bool tcg_enabled (void );
include/qemu/typedefs.h +1 -0
@@ -65,6 +65,7 @@ typedef struct PCIEPort PCIEPort;typedef struct PCIESlot PCIESlot ;typedef struct PCIExpressDevice PCIExpressDevice ;typedef struct PCIExpressHost PCIExpressHost ; +typedef struct PCIHostDeviceAddress PCIHostDeviceAddress ;typedef struct PCIHostState PCIHostState ;typedef struct PCMachineClass PCMachineClass ;typedef struct PCMachineState PCMachineState ;
Signature · 1 line
2.4.3
PATCH 9/15 Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h
In reply to Markus Armbrusterqemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies."
One of the reasons for headers to include it is HOST_LONG_BITS. Move that to its more natural home qemu/osdep.h, to facilitate removing these ill-advised includes later on.
This also lets us use HOST_LONG_BITS in bswap.h instead of duplicating its definition there to avoid cyclic inclusion.
--- include/qemu-common.h | 9 --------- include/qemu/bswap.h | 6 ++---- include/qemu/osdep.h | 9 +++++++++ 3 files changed, 11 insertions(+), 13 deletions(-)
include/qemu-common.h +0 -9
@@ -23,15 +23,6 @@#include "qemu/option.h" #include "qemu/host-utils.h" -/* HOST_LONG_BITS is the size of a native pointer in bits. */ -#if UINTPTR_MAX ==UINT32_MAX -# define HOST_LONG_BITS 32 -#elif UINTPTR_MAX ==UINT64_MAX -# define HOST_LONG_BITS 64 -#else -# error Unknown pointer size -#endif -void cpu_ticks_init (void );/* icount */
include/qemu/bswap.h +2 -4
@@ -419,11 +419,9 @@ static inline void stfq_be_p(void *ptr, float64 v)static inline unsigned long leul_to_cpu (unsigned long v) { -/* In order to break an include loop between here and -qemu-common.h, don't rely on HOST_LONG_BITS. */ -#if ULONG_MAX ==UINT32_MAX +#if HOST_LONG_BITS ==32 return le_bswap (v,32 ); -#elif ULONG_MAX ==UINT64_MAX +#elif HOST_LONG_BITS ==64 return le_bswap (v,64 );#else # error Unknown sizeof long
include/qemu/osdep.h +9 -0
@@ -127,6 +127,15 @@ extern int daemon(int, int);#define TIME_MAX LONG_MAX#endif +/* HOST_LONG_BITS is the size of a native pointer in bits. */ +#if UINTPTR_MAX ==UINT32_MAX +# define HOST_LONG_BITS 32 +#elif UINTPTR_MAX ==UINT64_MAX +# define HOST_LONG_BITS 64 +#else +# error Unknown pointer size +#endif +#ifndef MIN #define MIN (a, b) (((a) < (b)) ? (a) : (b))#endif
Signature · 1 line
2.4.3
PATCH 10/15 Move QEMU_ALIGN_*() from qemu-common.h to qemu/osdep.h
In reply to Markus Armbrusterqemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies."
One of the reasons for headers to include it is QEMU_ALIGN_UP() and QEMU_ALIGN_DOWN(). Move them next to ROUND_UP() in qemu/osdep.h, to facilitate removing these ill-advised includes later on.
--- include/qemu-common.h | 6 ------ include/qemu/osdep.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-)
include/qemu-common.h +0 -6
@@ -369,12 +369,6 @@ static inline uint8_t from_bcd(uint8_t val)return ((val >>4 ) *10 ) + (val &0x0f ); } -/* Round number down to multiple */ -#define QEMU_ALIGN_DOWN (n, m) ((n) / (m) * (m)) - -/* Round number up to multiple */ -#define QEMU_ALIGN_UP (n, m) QEMU_ALIGN_DOWN((n) + (m) - 1, (m)) -#include "qemu/module.h" /*
include/qemu/osdep.h +6 -0
@@ -149,6 +149,12 @@ extern int daemon(int, int);#define MIN_NON_ZERO (a, b) (((a) != 0 && (a) < (b)) ? (a) : (b))#endif +/* Round number down to multiple */ +#define QEMU_ALIGN_DOWN (n, m) ((n) / (m) * (m)) + +/* Round number up to multiple */ +#define QEMU_ALIGN_UP (n, m) QEMU_ALIGN_DOWN((n) + (m) - 1, (m)) +#ifndef ROUND_UP #define ROUND_UP (n,d) (((n) + (d) - 1) & -(d))#endif
Signature · 1 line
2.4.3
PATCH 11/15 Move ParallelIOArg from qemu-common.h to sysemu/char.h
In reply to Markus ArmbrusterParallelIOArg is shared between just qemu-char.c and hw/char/parallel.c, and as such has no business in qemu-common.h. Move it to sysemu/char.h.
--- include/qemu-common.h | 5 ----- include/sysemu/char.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-)
include/qemu-common.h +0 -5
@@ -294,11 +294,6 @@ int qemu_openpty_raw(int *aslave, char *pty_name); sendto(sockfd, buf, len, flags, destaddr, addrlen)#endif -struct ParallelIOArg { -void *buffer; -int count; -}; -typedef int (*DMA_transfer_handler ) (void *opaque,int nchan,int pos,int size);void tcg_exec_init (unsigned long tb_size);
include/sysemu/char.h +5 -0
@@ -41,6 +41,11 @@ typedef struct {#define CHR_IOCTL_PP_EPP_WRITE 11#define CHR_IOCTL_PP_DATA_DIR 12 +struct ParallelIOArg { +void *buffer; +int count; +}; +#define CHR_IOCTL_SERIAL_SET_TIOCM 13#define CHR_IOCTL_SERIAL_GET_TIOCM 14
Signature · 1 line
2.4.3
PATCH 12/15 isa: Move DMA_transfer_handler from qemu-common.h to hw/isa/isa.h
In reply to Markus ArmbrusterDMA_transfer_handler is actually an ISA thing, and as such has no business in qemu-common.h. Move it to hw/isa/isa.h, and rename it to IsaDmaTransferHandler.
--- hw/dma/i8257.c | 2 +- include/hw/isa/i8257.h | 2 +- include/hw/isa/isa.h | 5 ++++- include/qemu-common.h | 2 -- 4 files changed, 6 insertions(+), 5 deletions(-)
hw/dma/i8257.c +1 -1
@@ -381,7 +381,7 @@ out: }static void i8257_dma_register_channel (IsaDma *obj,int nchan, -DMA_transfer_handler transfer_handler, +IsaDmaTransferHandler transfer_handler,void *opaque) {I8257State *d =I8257 (obj);
include/hw/isa/i8257.h +1 -1
@@ -11,7 +11,7 @@ typedef struct I8257Regs {uint8_t pageh;uint8_t dack;uint8_t eop; -DMA_transfer_handler transfer_handler; +IsaDmaTransferHandler transfer_handler;void *opaque; } I8257Regs;
include/hw/isa/isa.h +4 -1
@@ -54,6 +54,9 @@ typedef enum {ISADMA_TRANSFER_ILLEGAL , } IsaDmaTransferMode; +typedef int (*IsaDmaTransferHandler )(void *opaque,int nchan,int pos, +int size); + typedef struct IsaDmaClass { InterfaceClass parent;
@@ -65,7 +68,7 @@ typedef struct IsaDmaClass {void (*release_DREQ)(IsaDma *obj,int nchan);void (*schedule)(IsaDma *obj);void (*register_channel)(IsaDma *obj,int nchan, -DMA_transfer_handler transfer_handler, +IsaDmaTransferHandler transfer_handler,void *opaque); } IsaDmaClass;
include/qemu-common.h +0 -2
@@ -294,8 +294,6 @@ int qemu_openpty_raw(int *aslave, char *pty_name); sendto(sockfd, buf, len, flags, destaddr, addrlen)#endif -typedef int (*DMA_transfer_handler ) (void *opaque,int nchan,int pos,int size); -void tcg_exec_init (unsigned long tb_size);bool tcg_enabled (void );
Signature · 1 line
2.4.3
PATCH 13/15 include/crypto: Include qapi-types.h instead of qemu-common.h
In reply to Markus Armbrusterqemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies."
Several include/crypto/ headers include qemu-common.h, but either need just qapi-types.h from it, or nothing at all. Replace or drop the include accordingly. tests/test-crypto-secret.c now misses qemu/module.h, so include it there.
--- include/crypto/cipher.h | 2 +- include/crypto/hash.h | 2 +- include/crypto/init.h | 2 -- include/crypto/secret.h | 1 - include/crypto/tlscreds.h | 1 - tests/test-crypto-secret.c | 1 + 6 files changed, 3 insertions(+), 6 deletions(-)
include/crypto/cipher.h +1 -1
@@ -21,7 +21,7 @@#ifndef QCRYPTO_CIPHER_H__ #define QCRYPTO_CIPHER_H__ -#include "qemu-common.h" +#include "qapi-types.h" typedef struct QCryptoCipher QCryptoCipher ;
include/crypto/hash.h +1 -1
@@ -21,7 +21,7 @@#ifndef QCRYPTO_HASH_H__ #define QCRYPTO_HASH_H__ -#include "qemu-common.h" +#include "qapi-types.h" /* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */
include/crypto/init.h +0 -2
@@ -21,8 +21,6 @@#ifndef QCRYPTO_INIT_H__ #define QCRYPTO_INIT_H__ -#include "qemu-common.h" -int qcrypto_init (Error **errp);#endif /* QCRYPTO_INIT_H__ */
include/crypto/secret.h +0 -1
@@ -21,7 +21,6 @@#ifndef QCRYPTO_SECRET_H__ #define QCRYPTO_SECRET_H__ -#include "qemu-common.h" #include "qom/object.h" #define TYPE_QCRYPTO_SECRET "secret"
include/crypto/tlscreds.h +0 -1
@@ -21,7 +21,6 @@#ifndef QCRYPTO_TLSCRED_H__ #define QCRYPTO_TLSCRED_H__ -#include "qemu-common.h" #include "qom/object.h" #ifdef CONFIG_GNUTLS
tests/test-crypto-secret.c +1 -0
@@ -24,6 +24,7 @@#include "crypto/init.h" #include "crypto/secret.h" #include "qapi/error.h" +#include "qemu/module.h" static void test_secret_direct (void ) {
Signature · 1 line
2.4.3
Re: [Qemu-devel] [PATCH 13/15] include/crypto: Include qapi-types.h instead of qemu-common.h
Quoted 50 lines · Markus Armbruster
qemu-common.hshould only be included by .c files. Its file comment explains why: "No header file should depend onqemu-common.h, as this would easily lead to circular header dependencies."Several
include/crypto/headers includeqemu-common.h, but either need justqapi-types.hfrom it, or nothing at all. Replace or drop the include accordingly.tests/test-crypto-secret.cnow missesqemu/module.h, so include it there.Signed-off-by Markus Armbruster <[email protected]>--- include/crypto/cipher.h | 2 +- include/crypto/hash.h | 2 +- include/crypto/init.h | 2 -- include/crypto/secret.h | 1 - include/crypto/tlscreds.h | 1 - tests/test-crypto-secret.c | 1 + 6 files changed, 3 insertions(+), 6 deletions(-)include/crypto/cipher.h +1
-1@@ -21,7 +21,7 @@#ifndef QCRYPTO_CIPHER_H__ #define QCRYPTO_CIPHER_H__ -#include "qemu-common.h" +#include "qapi-types.h" typedef struct QCryptoCipher QCryptoCipher ;include/crypto/hash.h +1
-1@@ -21,7 +21,7 @@#ifndef QCRYPTO_HASH_H__ #define QCRYPTO_HASH_H__ -#include "qemu-common.h" +#include "qapi-types.h" /* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */ include/crypto/init.h +0
-0
include/crypto/init.h line 24
Quoted 6 lines
include/crypto/init.h +0
-2@@ -21,8 +21,6 @@#ifndef QCRYPTO_INIT_H__ #define QCRYPTO_INIT_H__ -#include "qemu-common.h" -int qcrypto_init (Error **errp);
Nothing provides the definition of the 'Error' type now. Needs to add in
#include "qapi/error.h"
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Re: [Qemu-devel] [PATCH 13/15] include/crypto: Include qapi-types.h instead of qemu-common.h
Quoted 54 lines · Daniel P. Berrange
Quoted 53 lines · Markus Armbruster
qemu-common.hshould only be included by .c files. Its file comment explains why: "No header file should depend onqemu-common.h, as this would easily lead to circular header dependencies."Several
include/crypto/headers includeqemu-common.h, but either need justqapi-types.hfrom it, or nothing at all. Replace or drop the include accordingly.tests/test-crypto-secret.cnow missesqemu/module.h, so include it there.Signed-off-by Markus Armbruster <[email protected]>--- include/crypto/cipher.h | 2 +- include/crypto/hash.h | 2 +- include/crypto/init.h | 2 -- include/crypto/secret.h | 1 - include/crypto/tlscreds.h | 1 - tests/test-crypto-secret.c | 1 + 6 files changed, 3 insertions(+), 6 deletions(-)include/crypto/cipher.h +1
-1@@ -21,7 +21,7 @@#ifndef QCRYPTO_CIPHER_H__ #define QCRYPTO_CIPHER_H__ -#include "qemu-common.h" +#include "qapi-types.h" typedef struct QCryptoCipher QCryptoCipher ;include/crypto/hash.h +1
-1@@ -21,7 +21,7 @@#ifndef QCRYPTO_HASH_H__ #define QCRYPTO_HASH_H__ -#include "qemu-common.h" +#include "qapi-types.h" /* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */ include/crypto/init.h +0
-0@@ -21,8 +21,6 @@#ifndef QCRYPTO_INIT_H__ #define QCRYPTO_INIT_H__
Quoted 8 lines
include/crypto/init.h line 24
Quoted 3 lines
include/crypto/init.h +0
-2-#include "qemu-common.h" -int qcrypto_init (Error **errp);Nothing provides the definition of the 'Error' type now. Needs to add in
#include "qapi/error.h"
qemu/typedefs.h does, since PATCH 01. Standard technique to disentangle includes.
PATCH 14/15 Don't include qemu-common.h in headers
In reply to Markus Armbrusterqemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies."
We include it in many headers anyway. Fix that.
Dropping these ill-advised includes requires including qemu/fprintf-fn.h, cpu.h or exec/hwaddr.h instead in a few headers that actually need those, and of course including qemu-common.h in .c files that need it, except some of them need only qemu/module.h.
--- arch_init.c | 2 ++ audio/audio.c | 2 ++ backends/hostmem-ram.c | 2 ++ backends/rng-random.c | 1 + backends/rng.c | 1 + backends/tpm.c | 1 + block/backup.c | 2 +- block/blkverify.c | 1 + block/block-backend.c | 1 + block/gluster.c | 2 ++ block/io.c | 1 + block/nbd-client.h | 1 - block/nbd.c | 1 + block/null.c | 1 + block/qapi.c | 1 + block/qed.c | 1 + block/quorum.c | 1 + block/raw_bsd.c | 1 + block/ssh.c | 3 +-- block/throttle-groups.c | 1 + blockdev.c | 1 + cpu-exec.c | 1 + cpus.c | 3 +-- cputlb.c | 1 + crypto/secret.c | 1 + crypto/tlscreds.c | 1 + crypto/tlscredsanon.c | 1 + crypto/tlscredsx509.c | 1 + hmp.c | 1 + hmp.h | 1 - hw/9pfs/9p-handle.c | 1 + hw/9pfs/9p-local.c | 1 + hw/9pfs/9p-proxy.c | 1 + hw/9pfs/9p-synth.c | 1 + hw/alpha/dp264.c | 1 + hw/arm/boot.c | 1 + hw/arm/digic_boards.c | 1 + hw/arm/highbank.c | 1 + hw/arm/omap1.c | 1 + hw/arm/pxa2xx.c | 1 + hw/arm/strongarm.c | 1 + hw/arm/vexpress.c | 1 + hw/arm/virt.c | 1 + hw/block/nvme.c | 1 + hw/core/fw-path-provider.c | 1 + hw/core/loader.c | 1 + hw/core/machine.c | 1 + hw/core/nmi.c | 1 + hw/core/ptimer.c | 2 ++ hw/core/qdev-properties.c | 1 + hw/core/qdev.c | 1 + hw/core/stream.c | 1 + hw/display/qxl.h | 2 -- hw/dma/pl330.c | 1 + hw/i386/pc.c | 2 ++ hw/i386/pc_sysfw.c | 1 + hw/ide/core.c | 1 + hw/lm32/lm32_boards.c | 1 + hw/lm32/lm32_hwsetup.h | 1 - hw/lm32/milkymist.c | 1 + hw/mips/mips_fulong2e.c | 1 + hw/mips/mips_jazz.c | 1 + hw/mips/mips_malta.c | 1 + hw/mips/mips_mipssim.c | 2 ++ hw/mips/mips_r4k.c | 2 ++ hw/misc/ivshmem.c | 2 ++ hw/misc/macio/cuda.c | 1 + hw/net/allwinner_emac.c | 1 + hw/nvram/fw_cfg.c | 1 + hw/nvram/mac_nvram.c | 2 ++ hw/pci-bridge/dec.h | 2 -- hw/pci-host/prep.c | 1 + hw/pci/msix.c | 1 + hw/pci/pci.c | 2 ++ hw/ppc/mac_newworld.c | 2 ++ hw/ppc/mac_oldworld.c | 2 ++ hw/ppc/ppc405_boards.c | 2 ++ hw/ppc/spapr_drc.c | 1 + hw/ppc/spapr_events.c | 2 ++ hw/ppc/spapr_rtas.c | 2 ++ hw/ppc/spapr_rtc.c | 2 ++ hw/ppc/virtex_ml507.c | 1 + hw/s390x/ipl.c | 1 + hw/scsi/megasas.c | 1 + hw/scsi/scsi-bus.c | 1 + hw/scsi/vhost-scsi.c | 1 + hw/sd/core.c | 1 + hw/smbios/smbios.c | 1 + hw/sparc/leon3.c | 2 ++ hw/sparc/sun4m.c | 2 ++ hw/sparc64/sun4u.c | 2 ++ hw/timer/ds1338.c | 1 + hw/timer/m48t59.c | 1 + hw/timer/mc146818rtc.c | 2 ++ hw/timer/pl031.c | 1 + hw/timer/twl92230.c | 1 + hw/tpm/tpm_tis.h | 1 - hw/usb/bus.c | 1 + hw/usb/ccid-card-passthru.c | 1 + hw/vfio/pci.h | 1 - hw/virtio/vhost-user.c | 1 + hw/xen/xen_pt.h | 1 - include/block/aio.h | 1 - include/block/nbd.h | 2 -- include/block/qapi.h | 1 + include/block/snapshot.h | 1 - include/block/write-threshold.h | 2 -- include/disas/bfd.h | 2 +- include/disas/disas.h | 2 -- include/exec/cpu-all.h | 1 - include/exec/exec-all.h | 2 -- include/exec/ioport.h | 1 - include/hw/acpi/tco.h | 1 - include/hw/arm/allwinner-a10.h | 1 - include/hw/arm/bcm2835_peripherals.h | 1 - include/hw/arm/exynos4210.h | 1 - include/hw/arm/omap.h | 1 + include/hw/arm/sysbus-fdt.h | 1 - include/hw/arm/virt-acpi-build.h | 1 - include/hw/arm/virt.h | 2 +- include/hw/arm/xlnx-zynqmp.h | 1 - include/hw/block/block.h | 1 - include/hw/fw-path-provider.h | 1 - include/hw/hw.h | 1 + include/hw/i386/apic.h | 2 +- include/hw/i386/pc.h | 1 - include/hw/ipmi/ipmi.h | 1 - include/hw/isa/apm.h | 1 - include/hw/lm32/lm32_pic.h | 1 - include/hw/nmi.h | 1 - include/hw/pci-host/apb.h | 1 - include/hw/pci-host/pam.h | 1 - include/hw/pci/msi.h | 1 - include/hw/pci/msix.h | 1 - include/hw/pci/shpc.h | 1 - include/hw/pci/slotid_cap.h | 1 - include/hw/ppc/openpic.h | 1 - include/hw/ptimer.h | 1 - include/hw/sd/sdhci.h | 1 - include/hw/sh4/sh_intc.h | 1 - include/hw/sparc/sun4m.h | 1 - include/hw/stream.h | 1 - include/hw/timer/m48t59.h | 1 - include/hw/vfio/vfio-common.h | 1 - include/hw/virtio/vhost-scsi.h | 1 - include/hw/xen/xen.h | 1 - include/io/channel.h | 1 - include/io/task.h | 1 - include/migration/migration.h | 1 - include/monitor/monitor.h | 1 - include/net/filter.h | 1 - include/net/net.h | 1 - include/net/queue.h | 2 -- include/net/slirp.h | 1 - include/net/tap.h | 1 - include/qapi/qmp/json-parser.h | 1 - include/qemu-io.h | 2 -- include/qemu/base64.h | 3 --- include/qemu/buffer.h | 2 -- include/qemu/crc32c.h | 2 -- include/qemu/event_notifier.h | 2 -- include/qemu/mmap-alloc.h | 2 -- include/qemu/throttle.h | 1 - include/qemu/timer.h | 1 - include/sysemu/char.h | 1 - include/sysemu/cpus.h | 2 ++ include/sysemu/kvm.h | 4 ++++ include/sysemu/qtest.h | 2 -- include/sysemu/rng.h | 1 - include/sysemu/tpm_backend.h | 1 - io/channel-buffer.c | 1 + io/channel-command.c | 1 + io/channel-file.c | 1 + io/channel-socket.c | 1 + io/channel-tls.c | 1 + io/channel-util.c | 1 + io/channel-websock.c | 1 + io/channel.c | 1 + ioport.c | 1 + linux-user/elfload.c | 2 ++ linux-user/uaccess.c | 2 +- memory.c | 1 + migration/qemu-file-internal.h | 1 - migration/ram.c | 1 + monitor.c | 2 ++ net/hub.h | 2 -- net/slirp.c | 1 + net/tap_int.h | 1 - os-posix.c | 1 + qdev-monitor.c | 1 + qemu-io-cmds.c | 1 + qemu-io.c | 1 + qemu-timer.c | 1 + qga/commands-posix.c | 1 + qga/commands.c | 1 + qga/guest-agent-core.h | 1 - qga/main.c | 1 + qobject/qjson.c | 1 + qtest.c | 1 + scripts/tracetool/format/h.py | 2 -- scripts/tracetool/format/ust_events_h.py | 1 - slirp/ip_icmp.c | 1 + slirp/libslirp.h | 2 -- slirp/misc.c | 2 +- slirp/tcp_subr.c | 1 + spice-qemu-char.c | 1 + target-alpha/cpu.h | 1 - target-alpha/translate.c | 1 + target-arm/cpu.h | 1 - target-cris/cpu.h | 1 - target-i386/cpu.c | 3 ++- target-i386/cpu.h | 1 - target-i386/machine.c | 1 + target-lm32/cpu.h | 1 - target-m68k/cpu.h | 1 - target-microblaze/cpu.h | 1 - target-mips/cpu.h | 1 - target-moxie/cpu.h | 1 - target-openrisc/cpu.h | 1 - target-openrisc/exception.h | 1 - target-ppc/cpu-models.c | 1 + target-ppc/cpu.h | 1 - target-ppc/translate_init.c | 1 + target-s390x/cpu.h | 1 - target-s390x/helper.c | 1 + target-s390x/misc_helper.c | 1 + target-sh4/cpu.h | 1 - target-sparc/cpu.c | 2 ++ target-sparc/cpu.h | 1 - target-tilegx/cpu.h | 1 - target-tricore/cpu.h | 1 - target-unicore32/cpu.h | 1 - target-xtensa/cpu.h | 1 - tcg/tcg.h | 2 +- tests/crypto-tls-x509-helpers.h | 2 -- tests/test-crypto-tlscredsx509.c | 1 + tests/test-crypto-tlssession.c | 1 + tests/test-io-channel-buffer.c | 2 +- tests/test-io-channel-command.c | 1 + tests/test-io-channel-file.c | 1 + tests/test-io-channel-socket.c | 1 + tests/test-io-channel-tls.c | 1 + tests/test-io-task.c | 1 + tests/vhost-user-test.c | 1 + trace/control.c | 1 + trace/control.h | 1 - ui/keymaps.c | 1 + ui/keymaps.h | 2 -- ui/vnc.c | 1 + ui/vnc.h | 1 - util/buffer.c | 1 + util/mmap-alloc.c | 2 ++ util/oslib-posix.c | 2 +- util/qemu-sockets.c | 3 ++- vl.c | 1 + 255 files changed, 188 insertions(+), 133 deletions(-)
arch_init.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "sysemu/sysemu.h" #include "sysemu/arch_init.h" #include "hw/pci/pci.h"
audio/audio.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "audio.h" #include "monitor/monitor.h"
backends/hostmem-ram.c +2 -0
@@ -9,9 +9,11 @@* 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 "qemu/osdep.h" #include "sysemu/hostmem.h" #include "qapi/error.h" +#include "qemu/module.h" #include "qom/object_interfaces.h" #define TYPE_MEMORY_BACKEND_RAM "memory-backend-ram"
backends/rng-random.c +1 -0
@@ -16,6 +16,7 @@#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "qemu/main-loop.h" +#include "qemu/module.h" struct RndRandom {
backends/rng.c +1 -0
@@ -14,6 +14,7 @@#include "sysemu/rng.h" #include "qapi/error.h" #include "qapi/qmp/qerror.h" +#include "qemu/module.h" #include "qom/object_interfaces.h" void rng_backend_request_entropy(RngBackend *s, size_t size,
backends/tpm.c +1 -0
@@ -17,6 +17,7 @@#include "qapi/error.h" #include "qapi/qmp/qerror.h" #include "sysemu/tpm.h" +#include "qemu/module.h" #include "qemu/thread.h" #include "sysemu/tpm_backend_int.h"
block/backup.c +1 -1
@@ -12,7 +12,7 @@*/ #include "qemu/osdep.h" - +#include "qemu-common.h" #include "trace.h" #include "block/block.h" #include "block/block_int.h"
block/blkverify.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "qemu/sockets.h" /* for EINPROGRESS on Windows */ #include "block/block_int.h"
block/block-backend.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "sysemu/block-backend.h" #include "block/block_int.h" #include "block/blockjob.h"
block/gluster.c +2 -0
@@ -7,10 +7,12 @@* See the COPYING file in the top-level directory. * */ +#include "qemu/osdep.h" #include <glusterfs/api/glfs.h> #include "block/block_int.h" #include "qapi/error.h" +#include "qemu/module.h" #include "qemu/uri.h" typedef struct GlusterAIOCB {
block/io.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "trace.h" #include "sysemu/block-backend.h" #include "block/blockjob.h"
block/nbd-client.h +0 -1
@@ -1,7 +1,6 @@#ifndef NBD_CLIENT_H #define NBD_CLIENT_H -#include "qemu-common.h" #include "block/nbd.h" #include "block/block_int.h" #include "io/channel-socket.h"
block/nbd.c +1 -0
@@ -27,6 +27,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "block/nbd-client.h" #include "qapi/error.h" #include "qemu/uri.h"
block/null.c +1 -0
@@ -13,6 +13,7 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "block/block_int.h" +#include "qemu/module.h" #define NULL_OPT_LATENCY "latency-ns"
block/qapi.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "block/qapi.h" #include "block/block_int.h" #include "block/throttle-groups.h"
block/qed.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "qemu/timer.h" #include "trace.h"
block/quorum.c +1 -0
@@ -23,6 +23,7 @@#include "qapi/qmp/qlist.h" #include "qapi/qmp/qstring.h" #include "qapi-event.h" +#include "qemu/module.h" #include "crypto/hash.h" #define HASH_LENGTH 32
block/raw_bsd.c +1 -0
@@ -27,6 +27,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "block/block_int.h" #include "qapi/error.h" #include "qemu/option.h"
block/ssh.c +1 -2
@@ -23,10 +23,9 @@*/ #include "qemu/osdep.h" -#include <libssh2.h> #include <libssh2_sftp.h> - +#include "qemu-common.h" #include "block/block_int.h" #include "qapi/error.h" #include "qemu/error-report.h"
block/throttle-groups.c +1 -0
@@ -25,6 +25,7 @@#include "qemu/osdep.h" #include "block/throttle-groups.h" #include "qemu/queue.h" +#include "qemu/module.h" #include "qemu/thread.h" #include "sysemu/qtest.h"
blockdev.c +1 -0
@@ -31,6 +31,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/block/block.h"
cpu-exec.c +1 -0
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "cpu.h" #include "trace.h" #include "disas/disas.h"
cpus.c +1 -2
@@ -22,9 +22,8 @@* THE SOFTWARE. */ -/* Needed early for CONFIG_BSD etc. */ #include "qemu/osdep.h" - +#include "qemu-common.h" #include "monitor/monitor.h" #include "qapi/qmp/qerror.h" #include "qemu/error-report.h"
cputlb.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/memory.h"
crypto/secret.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/secret.h" #include "crypto/cipher.h" #include "qapi/error.h"
crypto/tlscreds.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "qapi/error.h" +#include "qemu/module.h" #include "crypto/tlscredspriv.h" #include "trace.h"
crypto/tlscredsanon.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/tlscredsanon.h" #include "crypto/tlscredspriv.h" #include "qapi/error.h"
crypto/tlscredsx509.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/tlscredsx509.h" #include "crypto/tlscredspriv.h" #include "crypto/secret.h"
hmp.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hmp.h" #include "net/net.h" #include "net/eth.h"
hmp.h +0 -1
@@ -14,7 +14,6 @@#ifndef HMP_H #define HMP_H -#include "qemu-common.h" #include "qemu/readline.h" #include "qapi-types.h" #include "qapi/qmp/qdict.h"
hw/9pfs/9p-handle.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "9p.h" #include "9p-xattr.h" #include <arpa/inet.h>
hw/9pfs/9p-local.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "9p.h" #include "9p-xattr.h" #include "fsdev/qemu-fsdev.h" /* local_ops */
hw/9pfs/9p-proxy.c +1 -0
@@ -10,6 +10,7 @@* the COPYING file in the top-level directory. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include <sys/socket.h> #include <sys/un.h> #include "9p.h"
hw/9pfs/9p-synth.c +1 -0
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/virtio/virtio.h" #include "9p.h" #include "9p-xattr.h"
hw/alpha/dp264.c +1 -0
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "elf.h" #include "hw/loader.h"
hw/arm/boot.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/arm/arm.h"
hw/arm/digic_boards.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/boards.h" #include "exec/address-spaces.h"
hw/arm/highbank.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h"
hw/arm/omap1.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/boards.h" #include "hw/hw.h"
hw/arm/pxa2xx.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/pxa.h"
hw/arm/strongarm.c +1 -0
@@ -28,6 +28,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/boards.h" #include "hw/sysbus.h" #include "strongarm.h"
hw/arm/vexpress.c +1 -0
@@ -22,6 +22,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h"
hw/arm/virt.c +1 -0
@@ -29,6 +29,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "hw/arm/arm.h"
hw/block/nvme.c +1 -0
@@ -21,6 +21,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include <hw/block/block.h> #include <hw/hw.h> #include <hw/pci/msix.h>
hw/core/fw-path-provider.c +1 -0
@@ -17,6 +17,7 @@#include "qemu/osdep.h" #include "hw/fw-path-provider.h" +#include "qemu/module.h" char *fw_path_provider_get_dev_path (FWPathProvider *p,BusState *bus,DeviceState *dev)
hw/core/loader.c +1 -0
@@ -43,6 +43,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "disas/disas.h"
hw/core/machine.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/boards.h" #include "qapi/error.h" #include "qapi-visit.h"
hw/core/nmi.c +1 -0
@@ -23,6 +23,7 @@#include "hw/nmi.h" #include "qapi/error.h" #include "qapi/qmp/qerror.h" +#include "qemu/module.h" #include "monitor/monitor.h" struct do_nmi_s {
hw/core/ptimer.c +2 -0
@@ -5,7 +5,9 @@* * This code is licensed under the GNU LGPL. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/ptimer.h"
hw/core/qdev-properties.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qemu-common.h" #include "net/net.h" #include "hw/qdev.h" #include "qapi/error.h"
hw/core/qdev.c +1 -0
@@ -26,6 +26,7 @@this API directly. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/qdev.h" #include "hw/fw-path-provider.h" #include "sysemu/sysemu.h"
hw/core/stream.c +1 -0
@@ -1,5 +1,6 @@#include "qemu/osdep.h" #include "hw/stream.h" +#include "qemu/module.h" size_t stream_push (StreamSlave *sink,uint8_t *buf,size_t len)
hw/display/qxl.h +0 -2
@@ -1,8 +1,6 @@#ifndef HW_QXL_H #define HW_QXL_H 1 -#include "qemu-common.h" -#include "ui/console.h" #include "hw/hw.h" #include "hw/pci/pci.h"
hw/dma/pl330.c +1 -0
@@ -15,6 +15,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "qapi/error.h" #include "qemu/timer.h"
hw/i386/pc.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/char/serial.h"
hw/i386/pc_sysfw.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "sysemu/block-backend.h" #include "qemu/error-report.h"
hw/ide/core.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include <hw/hw.h> #include <hw/i386/pc.h> #include <hw/pci/pci.h>
hw/lm32/lm32_boards.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h"
hw/lm32/lm32_hwsetup.h +0 -1
@@ -25,7 +25,6 @@ #ifndef QEMU_HW_LM32_HWSETUP_H #define QEMU_HW_LM32_HWSETUP_H -#include "qemu-common.h" #include "hw/loader.h" typedef struct {
hw/lm32/milkymist.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/block/flash.h"
hw/mips/mips_fulong2e.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/i386/pc.h"
hw/mips/mips_jazz.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/mips/mips.h" #include "hw/mips/cpudevs.h"
hw/mips/mips_malta.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/char/serial.h"
hw/mips/mips_mipssim.c +2 -0
@@ -24,7 +24,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/mips/mips.h"
hw/mips/mips_r4k.c +2 -0
@@ -7,7 +7,9 @@* All peripherial devices are attached to this "bus" with * the standard PC ISA addresses. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/mips/mips.h"
hw/misc/ivshmem.c +2 -0
@@ -16,7 +16,9 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/i386/pc.h"
hw/misc/macio/cuda.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/input/adb.h"
hw/net/allwinner_emac.c +1 -0
@@ -17,6 +17,7 @@* */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "net/net.h" #include "qemu/fifo8.h"
hw/nvram/fw_cfg.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "sysemu/sysemu.h" #include "sysemu/dma.h"
hw/nvram/mac_nvram.c +2 -0
@@ -22,7 +22,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/nvram/openbios_firmware_abi.h" #include "sysemu/sysemu.h"
hw/pci-bridge/dec.h +0 -2
@@ -1,8 +1,6 @@#ifndef DEC_PCI_H #define DEC_PCI_H -#include "qemu-common.h" -#define TYPE_DEC_21154 "dec-21154-sysbus"PCIBus *pci_dec_21154_init (PCIBus *parent_bus,int devfn);
hw/pci-host/prep.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/pci/pci.h"
hw/pci/msix.c +1 -0
@@ -15,6 +15,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h"
hw/pci/pci.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "hw/pci/pci_bridge.h"
hw/ppc/mac_newworld.c +2 -0
@@ -46,7 +46,9 @@* 0001:05:0c.0 IDE interface [0101]: Broadcom K2 SATA [1166:0240] * */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/ppc.h"
hw/ppc/mac_oldworld.c +2 -0
@@ -23,7 +23,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/ppc.h"
hw/ppc/ppc405_boards.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/ppc/ppc.h"
hw/ppc/spapr_drc.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/ppc/spapr_drc.h" #include "qom/object.h"
hw/ppc/spapr_events.c +2 -0
@@ -24,7 +24,9 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "cpu.h" #include "sysemu/sysemu.h"
hw/ppc/spapr_rtas.c +2 -0
@@ -24,7 +24,9 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "cpu.h" #include "sysemu/sysemu.h" #include "sysemu/char.h"
hw/ppc/spapr_rtc.c +2 -0
@@ -25,7 +25,9 @@* THE SOFTWARE. * */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "cpu.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
hw/ppc/virtex_ml507.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/hw.h" #include "hw/char/serial.h"
hw/s390x/ipl.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "sysemu/sysemu.h" #include "cpu.h"
hw/scsi/megasas.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/pci/pci.h" #include "sysemu/dma.h"
hw/scsi/scsi-bus.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "qapi/error.h" #include "qemu/error-report.h"
hw/scsi/vhost-scsi.c +1 -0
@@ -17,6 +17,7 @@#include "qemu/osdep.h" #include "qapi/error.h" #include <sys/ioctl.h> +#include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/queue.h" #include "monitor/monitor.h"
hw/sd/core.c +1 -0
@@ -21,6 +21,7 @@#include "qemu/osdep.h" #include "hw/qdev-core.h" +#include "qemu/module.h" #include "sysemu/block-backend.h" #include "hw/sd/sd.h"
hw/smbios/smbios.c +1 -0
@@ -16,6 +16,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "qemu/config-file.h" #include "qemu/error-report.h"
hw/sparc/leon3.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "qemu/timer.h"
hw/sparc/sun4m.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "qemu/error-report.h"
hw/sparc64/sun4u.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/pci/pci.h"
hw/timer/ds1338.c +1 -0
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/i2c/i2c.h" /* Size of NVRAM including both the user-accessible area and the
hw/timer/m48t59.c +1 -0
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/timer/m48t59.h" #include "qapi/error.h"
hw/timer/mc146818rtc.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
hw/timer/pl031.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "qemu/timer.h" #include "sysemu/sysemu.h"
hw/timer/twl92230.c +1 -0
@@ -20,6 +20,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/i2c/i2c.h"
hw/tpm/tpm_tis.h +0 -1
@@ -19,7 +19,6 @@#include "hw/isa/isa.h" #include "hw/acpi/tpm.h" -#include "qemu-common.h" #define TPM_TIS_NUM_LOCALITIES 5/* per spec */ #define TPM_TIS_LOCALITY_SHIFT 12
hw/usb/bus.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/usb.h" #include "hw/qdev.h"
hw/usb/ccid-card-passthru.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "sysemu/char.h" #include "qemu/error-report.h" #include "qemu/sockets.h"
hw/vfio/pci.h +0 -1
@@ -12,7 +12,6 @@#ifndef HW_VFIO_VFIO_PCI_H #define HW_VFIO_VFIO_PCI_H -#include "qemu-common.h" #include "exec/memory.h" #include "hw/pci/pci.h" #include "hw/vfio/vfio-common.h"
hw/virtio/vhost-user.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "hw/virtio/vhost.h" #include "hw/virtio/vhost-backend.h"
hw/xen/xen_pt.h +0 -1
@@ -1,7 +1,6 @@#ifndef XEN_PT_H #define XEN_PT_H -#include "qemu-common.h" #include "hw/xen/xen_common.h" #include "hw/pci/pci.h" #include "xen-host-pci-device.h"
include/block/aio.h +0 -1
@@ -14,7 +14,6 @@#ifndef QEMU_AIO_H #define QEMU_AIO_H -#include "qemu-common.h" #include "qemu/queue.h" #include "qemu/event_notifier.h" #include "qemu/thread.h"
include/block/nbd.h +0 -2
@@ -19,8 +19,6 @@#ifndef NBD_H #define NBD_H - -#include "qemu-common.h" #include "qemu/option.h" #include "io/channel-socket.h" #include "crypto/tlscreds.h"
include/block/qapi.h +1 -0
@@ -26,6 +26,7 @@#define BLOCK_QAPI_H #include "qapi-types.h" +#include "qemu/fprintf-fn.h" #include "block/block.h" #include "block/snapshot.h"
include/block/snapshot.h +0 -1
@@ -25,7 +25,6 @@#ifndef SNAPSHOT_H #define SNAPSHOT_H -#include "qemu-common.h" #include "qemu/option.h"
include/block/write-threshold.h +0 -2
@@ -12,8 +12,6 @@#ifndef BLOCK_WRITE_THRESHOLD_H #define BLOCK_WRITE_THRESHOLD_H -#include "qemu-common.h" -/* * bdrv_write_threshold_set: *
include/disas/bfd.h +1 -1
@@ -9,7 +9,7 @@#ifndef DIS_ASM_H #define DIS_ASM_H -#include "qemu-common.h" +#include "qemu/fprintf-fn.h" typedef void *PTR ;typedef uint64_t bfd_vma ;
include/disas/disas.h +0 -2
@@ -1,8 +1,6 @@#ifndef _QEMU_DISAS_H#define _QEMU_DISAS_H -#include "qemu-common.h" -#ifdef NEED_CPU_H /* Disassemble this for me please... (debugging). */ void disas (FILE *out,void *code,unsigned long size);
include/exec/cpu-all.h +0 -1
@@ -19,7 +19,6 @@#ifndef CPU_ALL_H #define CPU_ALL_H -#include "qemu-common.h" #include "exec/cpu-common.h" #include "exec/memory.h" #include "qemu/thread.h"
include/exec/exec-all.h +0 -2
@@ -20,8 +20,6 @@#ifndef _EXEC_ALL_H_#define _EXEC_ALL_H_ -#include "qemu-common.h" -/* allow to see translation results - the slowdown should be negligible, so we leave it */ #define DEBUG_DISAS
include/exec/ioport.h +0 -1
@@ -24,7 +24,6 @@#ifndef IOPORT_H #define IOPORT_H -#include "qemu-common.h" #include "qom/object.h" #include "exec/memory.h"
include/hw/acpi/tco.h +0 -1
@@ -9,7 +9,6 @@#ifndef HW_ACPI_TCO_H #define HW_ACPI_TCO_H -#include "qemu-common.h" /* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */ #define TCO_TICK_NSEC 600000000LL
include/hw/arm/allwinner-a10.h +0 -1
@@ -1,6 +1,5 @@#ifndef ALLWINNER_H_ -#include "qemu-common.h" #include "qemu/error-report.h" #include "hw/char/serial.h" #include "hw/arm/arm.h"
include/hw/arm/bcm2835_peripherals.h +0 -1
@@ -11,7 +11,6 @@#ifndef BCM2835_PERIPHERALS_H #define BCM2835_PERIPHERALS_H -#include "qemu-common.h" #include "exec/address-spaces.h" #include "hw/sysbus.h" #include "hw/intc/bcm2835_ic.h"
include/hw/arm/exynos4210.h +0 -1
@@ -26,7 +26,6 @@#ifndef EXYNOS4210_H_ #define EXYNOS4210_H_ -#include "qemu-common.h" #include "exec/memory.h" #define EXYNOS4210_NCPUS 2
include/hw/arm/omap.h +1 -0
@@ -20,6 +20,7 @@#include "exec/memory.h" # define hw_omap_h "omap.h"#include "hw/irq.h" +#include "cpu.h" # define OMAP_EMIFS_BASE 0x00000000# define OMAP2_Q0_BASE 0x00000000
include/hw/arm/sysbus-fdt.h +0 -1
@@ -25,7 +25,6 @@#define HW_ARM_SYSBUS_FDT_H #include "hw/arm/arm.h" -#include "qemu-common.h" #include "hw/sysbus.h" /*
include/hw/arm/virt-acpi-build.h +0 -1
@@ -20,7 +20,6 @@#ifndef QEMU_VIRT_ACPI_BUILD_H #define QEMU_VIRT_ACPI_BUILD_H -#include "qemu-common.h" #include "hw/arm/virt.h" #define ACPI_GICC_ENABLED 1
include/hw/arm/virt.h +1 -1
@@ -30,7 +30,7 @@#ifndef QEMU_ARM_VIRT_H #define QEMU_ARM_VIRT_H -#include "qemu-common.h" +#include "exec/hwaddr.h" #define NUM_GICV2M_SPIS 64#define NUM_VIRTIO_TRANSPORTS 32
include/hw/arm/xlnx-zynqmp.h +0 -1
@@ -17,7 +17,6 @@#ifndef XLNX_ZYNQMP_H -#include "qemu-common.h" #include "hw/arm/arm.h" #include "hw/intc/arm_gic.h" #include "hw/net/cadence_gem.h"
include/hw/block/block.h +0 -1
@@ -11,7 +11,6 @@#ifndef HW_BLOCK_COMMON_H #define HW_BLOCK_COMMON_H -#include "qemu-common.h" /* Configuration */
include/hw/fw-path-provider.h +0 -1
@@ -18,7 +18,6 @@#ifndef FW_PATH_PROVIDER_H #define FW_PATH_PROVIDER_H 1 -#include "qemu-common.h" #include "qom/object.h" #define TYPE_FW_PATH_PROVIDER "fw-path-provider"
include/hw/hw.h +1 -0
@@ -15,6 +15,7 @@#include "qemu/module.h" #ifdef NEED_CPU_H +#include "cpu.h" #if TARGET_LONG_BITS ==64 #define qemu_put_betl qemu_put_be64#define qemu_get_betl qemu_get_be64
include/hw/i386/apic.h +1 -1
@@ -1,7 +1,7 @@#ifndef APIC_H #define APIC_H -#include "qemu-common.h" +#include "cpu.h" /* apic.c */ void apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode,
include/hw/i386/pc.h +0 -1
@@ -1,7 +1,6 @@#ifndef HW_PC_H #define HW_PC_H -#include "qemu-common.h" #include "exec/memory.h" #include "hw/boards.h" #include "hw/isa/isa.h"
include/hw/ipmi/ipmi.h +0 -1
@@ -26,7 +26,6 @@#define HW_IPMI_H #include "exec/memory.h" -#include "qemu-common.h" #include "hw/qdev.h" #define MAX_IPMI_MSG_SIZE 300
include/hw/isa/apm.h +0 -1
@@ -1,7 +1,6 @@#ifndef APM_H #define APM_H -#include "qemu-common.h" #include "hw/hw.h" #include "exec/memory.h"
include/hw/lm32/lm32_pic.h +0 -1
@@ -1,7 +1,6 @@#ifndef QEMU_HW_LM32_PIC_H #define QEMU_HW_LM32_PIC_H -#include "qemu-common.h" uint32_t lm32_pic_get_ip (DeviceState *d);uint32_t lm32_pic_get_im (DeviceState *d);
include/hw/nmi.h +0 -1
@@ -22,7 +22,6 @@#ifndef NMI_H #define NMI_H 1 -#include "qemu-common.h" #include "qom/object.h" #define TYPE_NMI "nmi"
include/hw/pci-host/apb.h +0 -1
@@ -1,7 +1,6 @@#ifndef APB_PCI_H #define APB_PCI_H -#include "qemu-common.h" PCIBus *pci_apb_init(hwaddr special_base, hwaddr mem_base,
include/hw/pci-host/pam.h +0 -1
@@ -50,7 +50,6 @@* 0xf0000 - 0xfffff System BIOS Area Memory Segments */ -#include "qemu-common.h" #include "exec/memory.h" #define SMRAM_C_BASE 0xa0000
include/hw/pci/msi.h +0 -1
@@ -21,7 +21,6 @@#ifndef QEMU_MSI_H #define QEMU_MSI_H -#include "qemu-common.h" #include "hw/pci/pci.h" struct MSIMessage {
include/hw/pci/msix.h +0 -1
@@ -1,7 +1,6 @@#ifndef QEMU_MSIX_H #define QEMU_MSIX_H -#include "qemu-common.h" #include "hw/pci/pci.h" void msix_set_message (PCIDevice *dev,int vector,MSIMessage msg);
include/hw/pci/shpc.h +0 -1
@@ -1,7 +1,6 @@#ifndef SHPC_H #define SHPC_H -#include "qemu-common.h" #include "exec/memory.h" #include "migration/vmstate.h" #include "hw/hotplug.h"
include/hw/pci/slotid_cap.h +0 -1
@@ -1,7 +1,6 @@#ifndef PCI_SLOTID_CAP_H #define PCI_SLOTID_CAP_H -#include "qemu-common.h" int slotid_cap_init(PCIDevice *dev, int nslots, uint8_t chassis,
include/hw/ppc/openpic.h +0 -1
@@ -1,7 +1,6 @@#if !defined(__OPENPIC_H__)#define __OPENPIC_H__ -#include "qemu-common.h" #include "hw/qdev.h" #define TYPE_OPENPIC "openpic"
include/hw/ptimer.h +0 -1
@@ -8,7 +8,6 @@#ifndef PTIMER_H #define PTIMER_H -#include "qemu-common.h" #include "qemu/timer.h" #include "migration/vmstate.h"
include/hw/sd/sdhci.h +0 -1
@@ -25,7 +25,6 @@#ifndef SDHCI_H #define SDHCI_H -#include "qemu-common.h" #include "hw/block/block.h" #include "hw/pci/pci.h" #include "hw/sysbus.h"
include/hw/sh4/sh_intc.h +0 -1
@@ -1,7 +1,6 @@#ifndef __SH_INTC_H__#define __SH_INTC_H__ -#include "qemu-common.h" #include "hw/irq.h" #include "exec/address-spaces.h"
include/hw/sparc/sun4m.h +0 -1
@@ -1,7 +1,6 @@#ifndef SUN4M_H #define SUN4M_H -#include "qemu-common.h" #include "exec/hwaddr.h" #include "qapi/qmp/types.h"
include/hw/stream.h +0 -1
@@ -1,7 +1,6 @@#ifndef STREAM_H #define STREAM_H 1 -#include "qemu-common.h" #include "qom/object.h" /* stream slave. Used until qdev provides a generic way. */
include/hw/timer/m48t59.h +0 -1
@@ -1,7 +1,6 @@#ifndef NVRAM_H #define NVRAM_H -#include "qemu-common.h" #include "qom/object.h" #define TYPE_NVRAM "nvram"
include/hw/vfio/vfio-common.h +0 -1
@@ -20,7 +20,6 @@#ifndef HW_VFIO_VFIO_COMMON_H #define HW_VFIO_VFIO_COMMON_H -#include "qemu-common.h" #include "exec/address-spaces.h" #include "exec/memory.h" #include "qemu/queue.h"
include/hw/virtio/vhost-scsi.h +0 -1
@@ -14,7 +14,6 @@#ifndef VHOST_SCSI_H #define VHOST_SCSI_H -#include "qemu-common.h" #include "hw/qdev.h" #include "hw/virtio/virtio-scsi.h" #include "hw/virtio/vhost.h"
include/hw/xen/xen.h +0 -1
@@ -8,7 +8,6 @@*/ #include "hw/irq.h" -#include "qemu-common.h" /* xen-machine.c */ enum xen_mode {
include/io/channel.h +0 -1
@@ -21,7 +21,6 @@#ifndef QIO_CHANNEL_H__ #define QIO_CHANNEL_H__ -#include "qemu-common.h" #include "qom/object.h" #define TYPE_QIO_CHANNEL "qio-channel"
include/io/task.h +0 -1
@@ -21,7 +21,6 @@#ifndef QIO_TASK_H__ #define QIO_TASK_H__ -#include "qemu-common.h" #include "qom/object.h" typedef struct QIOTask QIOTask ;
include/migration/migration.h +0 -1
@@ -15,7 +15,6 @@#define QEMU_MIGRATION_H #include "qapi/qmp/qdict.h" -#include "qemu-common.h" #include "qemu/thread.h" #include "qemu/notify.h" #include "migration/vmstate.h"
include/monitor/monitor.h +0 -1
@@ -1,7 +1,6 @@#ifndef MONITOR_H #define MONITOR_H -#include "qemu-common.h" #include "qapi/qmp/qdict.h" #include "block/block.h" #include "qemu/readline.h"
include/net/filter.h +0 -1
@@ -10,7 +10,6 @@#define QEMU_NET_FILTER_H #include "qom/object.h" -#include "qemu-common.h" #include "net/queue.h" #define TYPE_NETFILTER "netfilter"
include/net/net.h +0 -1
@@ -2,7 +2,6 @@#define QEMU_NET_H #include "qemu/queue.h" -#include "qemu-common.h" #include "qapi/qmp/qdict.h" #include "qemu/option.h" #include "net/queue.h"
include/net/queue.h +0 -2
@@ -24,8 +24,6 @@#ifndef QEMU_NET_QUEUE_H #define QEMU_NET_QUEUE_H -#include "qemu-common.h" -typedef struct NetPacket NetPacket ;typedef struct NetQueue NetQueue ;
include/net/slirp.h +0 -1
@@ -24,7 +24,6 @@#ifndef QEMU_NET_SLIRP_H #define QEMU_NET_SLIRP_H -#include "qemu-common.h" #include "qapi/qmp/qdict.h" #include "qemu/option.h" #include "qapi-types.h"
include/net/tap.h +0 -1
@@ -26,7 +26,6 @@#ifndef QEMU_NET_TAP_H #define QEMU_NET_TAP_H -#include "qemu-common.h" #include "qapi-types.h" #include "standard-headers/linux/virtio_net.h"
include/qapi/qmp/json-parser.h +0 -1
@@ -14,7 +14,6 @@#ifndef QEMU_JSON_PARSER_H #define QEMU_JSON_PARSER_H -#include "qemu-common.h" #include "qapi/qmp/qlist.h" QObject *json_parser_parse (GQueue *tokens,va_list *ap);
include/qemu-io.h +0 -2
@@ -18,8 +18,6 @@#ifndef QEMU_IO_H #define QEMU_IO_H -#include "qemu-common.h" -#define CMD_FLAG_GLOBAL ((int)0x80000000)/* don't iterate "args" */ typedef int (*cfunc_t )(BlockBackend *blk,int argc,char **argv);
include/qemu/base64.h +0 -3
@@ -21,9 +21,6 @@#ifndef QEMU_BASE64_H__ #define QEMU_BASE64_H__ -#include "qemu-common.h" - -/** * qbase64_decode: * @input: the (possibly) base64 encoded text
include/qemu/buffer.h +0 -2
@@ -21,8 +21,6 @@#ifndef QEMU_BUFFER_H__ #define QEMU_BUFFER_H__ -#include "qemu-common.h" -typedef struct Buffer Buffer ;/**
include/qemu/crc32c.h +0 -2
@@ -28,8 +28,6 @@#ifndef QEMU_CRC32C_H #define QEMU_CRC32C_H -#include "qemu-common.h" -uint32_t crc32c (uint32_t crc,const uint8_t *data,unsigned int length);#endif
include/qemu/event_notifier.h +0 -2
@@ -13,8 +13,6 @@#ifndef QEMU_EVENT_NOTIFIER_H #define QEMU_EVENT_NOTIFIER_H -#include "qemu-common.h" -#ifdef _WIN32#include <windows.h> #endif
include/qemu/mmap-alloc.h +0 -2
@@ -1,8 +1,6 @@#ifndef QEMU_MMAP_ALLOC #define QEMU_MMAP_ALLOC -#include "qemu-common.h" -size_t qemu_fd_getpagesize (int fd);void *qemu_ram_mmap (int fd,size_t size,size_t align,bool shared);
include/qemu/throttle.h +0 -1
@@ -25,7 +25,6 @@#ifndef THROTTLE_H #define THROTTLE_H -#include "qemu-common.h" #include "qemu/timer.h" #define THROTTLE_VALUE_MAX 1000000000000000LL
include/qemu/timer.h +0 -1
@@ -1,7 +1,6 @@#ifndef QEMU_TIMER_H #define QEMU_TIMER_H -#include "qemu-common.h" #include "qemu/notify.h" #include "qemu/host-utils.h"
include/sysemu/char.h +0 -1
@@ -1,7 +1,6 @@#ifndef QEMU_CHAR_H #define QEMU_CHAR_H -#include "qemu-common.h" #include "qemu/queue.h" #include "qemu/option.h" #include "qemu/config-file.h"
include/sysemu/cpus.h +2 -0
@@ -1,6 +1,8 @@#ifndef QEMU_CPUS_H #define QEMU_CPUS_H +#include "qemu/fprintf-fn.h" +/* cpus.c */ bool qemu_in_vcpu_thread (void );void qemu_init_cpu_loop (void );
include/sysemu/kvm.h +4 -0
@@ -19,6 +19,10 @@#include "exec/memattrs.h" #include "hw/irq.h" +#ifdef NEED_CPU_H +#include "cpu.h" +#endif +#ifdef CONFIG_KVM #include <linux/kvm.h> #include <linux/kvm_para.h>
include/sysemu/qtest.h +0 -2
@@ -14,8 +14,6 @@#ifndef QTEST_H #define QTEST_H -#include "qemu-common.h" -extern bool qtest_allowed;static inline bool qtest_enabled (void )
include/sysemu/rng.h +0 -1
@@ -14,7 +14,6 @@#define QEMU_RNG_H #include "qom/object.h" -#include "qemu-common.h" #define TYPE_RNG_BACKEND "rng-backend"#define RNG_BACKEND (obj) \
include/sysemu/tpm_backend.h +0 -1
@@ -14,7 +14,6 @@#define _QEMU_TPM_H#include "qom/object.h" -#include "qemu-common.h" #include "qapi-types.h" #include "qemu/option.h" #include "sysemu/tpm.h"
io/channel-buffer.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "io/channel-buffer.h" #include "io/channel-watch.h" #include "qemu/sockets.h"
io/channel-command.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "io/channel-command.h" #include "io/channel-watch.h" #include "qapi/error.h"
io/channel-file.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "io/channel-file.h" #include "io/channel-watch.h" #include "qapi/error.h"
io/channel-socket.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "io/channel-socket.h" #include "io/channel-watch.h"
io/channel-tls.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "qapi/error.h" #include "io/channel-tls.h" #include "trace.h"
io/channel-util.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "io/channel-util.h" #include "io/channel-file.h" #include "io/channel-socket.h"
io/channel-websock.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "io/channel-websock.h" #include "crypto/hash.h"
io/channel.c +1 -0
@@ -22,6 +22,7 @@#include "io/channel.h" #include "qapi/error.h" #include "qemu/coroutine.h" +#include "qemu/module.h" bool qio_channel_has_feature (QIOChannel *ioc,QIOChannelFeature feature)
ioport.c +1 -0
@@ -26,6 +26,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "exec/ioport.h" #include "trace.h" #include "exec/memory.h"
linux-user/elfload.c +2 -0
@@ -1,5 +1,7 @@/* This is the Linux kernel elf-loading code, ported into user space */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include <sys/param.h> #include <sys/mman.h>
linux-user/uaccess.c +1 -1
@@ -1,6 +1,6 @@/* User memory access */ #include "qemu/osdep.h" - +#include "qemu-common.h" #include "qemu.h" /* copy_from_user() and copy_to_user() are usually used to copy data
memory.c +1 -0
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "exec/memory.h" #include "exec/address-spaces.h"
migration/qemu-file-internal.h +0 -1
@@ -25,7 +25,6 @@#ifndef QEMU_FILE_INTERNAL_H #define QEMU_FILE_INTERNAL_H 1 -#include "qemu-common.h" #include "qemu/iov.h" #define IO_BUF_SIZE 32768
migration/ram.c +1 -0
@@ -27,6 +27,7 @@*/ #include "qemu/osdep.h" #include <zlib.h> +#include "qemu-common.h" #include "qapi-event.h" #include "qemu/bitops.h" #include "qemu/bitmap.h"
monitor.c +2 -0
@@ -21,7 +21,9 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" +#include "qemu-common.h" #include <dirent.h> #include "hw/hw.h" #include "monitor/qdev.h"
net/hub.h +0 -2
@@ -15,8 +15,6 @@#ifndef NET_HUB_H #define NET_HUB_H -#include "qemu-common.h" -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);
net/slirp.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "net/slirp.h"
net/tap_int.h +0 -1
@@ -26,7 +26,6 @@#ifndef QEMU_TAP_H #define QEMU_TAP_H -#include "qemu-common.h" #include "qapi-types.h" int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
os-posix.c +1 -0
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include <sys/wait.h> /*needed for MAP_POPULATE before including qemu-options.h */ #include <sys/mman.h>
qdev-monitor.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/qdev.h" #include "hw/sysbus.h" #include "monitor/monitor.h"
qemu-io-cmds.c +1 -0
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "qemu-io.h" #include "sysemu/block-backend.h"
qemu-io.c +1 -0
@@ -15,6 +15,7 @@#include "qemu-io.h" #include "qemu/error-report.h" #include "qemu/main-loop.h" +#include "qemu/module.h" #include "qemu/option.h" #include "qemu/config-file.h" #include "qemu/readline.h"
qemu-timer.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qemu/main-loop.h" #include "qemu/timer.h" #include "sysemu/replay.h"
qga/commands-posix.c +1 -0
@@ -16,6 +16,7 @@#include <sys/ioctl.h> #include <sys/wait.h> #include <dirent.h> +#include "qemu-common.h" #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" #include "qapi/qmp/qerror.h"
qga/commands.c +1 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include <glib.h> +#include "qemu-common.h" #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" #include "qapi/qmp/qerror.h"
qga/guest-agent-core.h +0 -1
@@ -11,7 +11,6 @@* See the COPYING file in the top-level directory. */ #include "qapi/qmp/dispatch.h" -#include "qemu-common.h" #include "qga-qmp-commands.h" #define QGA_READ_COUNT_DEFAULT 4096
qga/main.c +1 -0
@@ -18,6 +18,7 @@#include <syslog.h> #include <sys/wait.h> #endif +#include "qemu-common.h" #include "qapi/qmp/json-streamer.h" #include "qapi/qmp/json-parser.h" #include "qapi/qmp/qint.h"
qobject/qjson.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/qmp/json-lexer.h" #include "qapi/qmp/json-parser.h" #include "qapi/qmp/json-streamer.h"
qtest.c +1 -0
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "sysemu/qtest.h" #include "hw/qdev.h"
scripts/tracetool/format/h.py +0 -2
@@ -21,8 +21,6 @@ def generate(events, backend): '', '#ifndef TRACE__GENERATED_TRACERS_H', '#define TRACE__GENERATED_TRACERS_H', - '', - '#include "qemu-common.h"', '') backend.generate_begin(events)
scripts/tracetool/format/ust_events_h.py +0 -1
@@ -31,7 +31,6 @@ def generate(events, backend): '#if !defined (TRACE__GENERATED_UST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)', '#define TRACE__GENERATED_UST_H', '', - '#include "qemu-common.h"', '#include <lttng/tracepoint.h>', '', '/*',
slirp/ip_icmp.c +1 -0
@@ -31,6 +31,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "slirp.h" #include "ip_icmp.h"
slirp/libslirp.h +0 -2
@@ -1,8 +1,6 @@#ifndef _LIBSLIRP_H#define _LIBSLIRP_H -#include "qemu-common.h" -struct Slirp ;typedef struct Slirp Slirp ;
slirp/misc.c +1 -1
@@ -8,7 +8,7 @@#include "qemu/osdep.h" #include <slirp.h> #include <libslirp.h> - +#include "qemu-common.h" #include "monitor/monitor.h" #include "qemu/error-report.h" #include "qemu/main-loop.h"
slirp/tcp_subr.c +1 -0
@@ -39,6 +39,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include <slirp.h> /* patchable/settable parameters for tcp */
spice-qemu-char.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qemu/module.h" #include "trace.h" #include "ui/qemu-spice.h" #include "sysemu/char.h"
target-alpha/cpu.h +0 -1
@@ -20,7 +20,6 @@#if !defined (__CPU_ALPHA_H__)#define __CPU_ALPHA_H__ -#include "qemu-common.h" #define TARGET_LONG_BITS 64#define ALIGNED_ONLY
target-alpha/translate.c +1 -0
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "cpu.h" #include "disas/disas.h" #include "qemu/host-utils.h"
target-arm/cpu.h +0 -1
@@ -33,7 +33,6 @@#define CPUArchState struct CPUARMState -#include "qemu-common.h" #include "exec/cpu-defs.h" #include "fpu/softfloat.h"
target-cris/cpu.h +0 -1
@@ -20,7 +20,6 @@#ifndef CPU_CRIS_H #define CPU_CRIS_H -#include "qemu-common.h" #define TARGET_LONG_BITS 32
target-i386/cpu.c +2 -1
@@ -16,8 +16,9 @@* 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/>. */ +#include "qemu/osdep.h" - +#include "qemu-common.h" #include "cpu.h" #include "sysemu/kvm.h" #include "sysemu/cpus.h"
target-i386/cpu.h +0 -1
@@ -19,7 +19,6 @@#ifndef CPU_I386_H #define CPU_I386_H -#include "qemu-common.h" #include "standard-headers/asm-x86/hyperv.h" #ifdef TARGET_X86_64
target-i386/machine.c +1 -0
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/hw.h" #include "hw/boards.h" #include "hw/i386/pc.h"
target-lm32/cpu.h +0 -1
@@ -24,7 +24,6 @@#define CPUArchState struct CPULM32State -#include "qemu-common.h" #include "exec/cpu-defs.h" struct CPULM32State ;typedef struct CPULM32State CPULM32State ;
target-m68k/cpu.h +0 -1
@@ -24,7 +24,6 @@#define CPUArchState struct CPUM68KState -#include "qemu-common.h" #include "exec/cpu-defs.h" #include "fpu/softfloat.h"
target-microblaze/cpu.h +0 -1
@@ -19,7 +19,6 @@#ifndef CPU_MICROBLAZE_H #define CPU_MICROBLAZE_H -#include "qemu-common.h" #define TARGET_LONG_BITS 32
target-mips/cpu.h +0 -1
@@ -7,7 +7,6 @@#define CPUArchState struct CPUMIPSState -#include "qemu-common.h" #include "mips-defs.h" #include "exec/cpu-defs.h" #include "fpu/softfloat.h"
target-moxie/cpu.h +0 -1
@@ -19,7 +19,6 @@#ifndef _CPU_MOXIE_H#define _CPU_MOXIE_H -#include "qemu-common.h" #define TARGET_LONG_BITS 32
target-openrisc/cpu.h +0 -1
@@ -27,7 +27,6 @@/* cpu_openrisc_map_address_* in CPUOpenRISCTLBContext need this decl. */ struct OpenRISCCPU ; -#include "qemu-common.h" #include "exec/cpu-defs.h" #include "fpu/softfloat.h" #include "qom/cpu.h"
target-openrisc/exception.h +0 -1
@@ -21,7 +21,6 @@#define QEMU_OPENRISC_EXCP_H #include "cpu.h" -#include "qemu-common.h" void QEMU_NORETURN raise_exception(OpenRISCCPU *cpu, uint32_t excp);
target-ppc/cpu-models.c +1 -0
@@ -25,6 +25,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "cpu.h" #include "cpu-models.h"
target-ppc/cpu.h +0 -1
@@ -19,7 +19,6 @@#if !defined (__CPU_PPC_H__)#define __CPU_PPC_H__ -#include "qemu-common.h" //#define PPC_EMULATE_32BITS_HYPV
target-ppc/translate_init.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "disas/bfd.h" #include "exec/gdbstub.h" #include <sysemu/kvm.h>
target-s390x/cpu.h +0 -1
@@ -22,7 +22,6 @@#ifndef CPU_S390X_H #define CPU_S390X_H -#include "qemu-common.h" #define TARGET_LONG_BITS 64
target-s390x/helper.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "cpu.h" #include "exec/gdbstub.h"
target-s390x/misc_helper.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "cpu.h" #include "exec/memory.h" #include "qemu/host-utils.h"
target-sh4/cpu.h +0 -1
@@ -19,7 +19,6 @@#ifndef _CPU_SH4_H#define _CPU_SH4_H -#include "qemu-common.h" #define TARGET_LONG_BITS 32
target-sparc/cpu.c +2 -0
@@ -18,9 +18,11 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "cpu.h" #include "qemu/error-report.h" +#include "qemu/module.h" //#define DEBUG_FEATURES
target-sparc/cpu.h +0 -1
@@ -1,7 +1,6 @@#ifndef CPU_SPARC_H #define CPU_SPARC_H -#include "qemu-common.h" #include "qemu/bswap.h" #define ALIGNED_ONLY
target-tilegx/cpu.h +0 -1
@@ -19,7 +19,6 @@#ifndef CPU_TILEGX_H #define CPU_TILEGX_H -#include "qemu-common.h" #define TARGET_LONG_BITS 64
target-tricore/cpu.h +0 -1
@@ -20,7 +20,6 @@#define __TRICORE_CPU_H__#include "tricore-defs.h" -#include "qemu-common.h" #include "exec/cpu-defs.h" #include "fpu/softfloat.h"
target-unicore32/cpu.h +0 -1
@@ -19,7 +19,6 @@#define CPUArchState struct CPUUniCore32State -#include "qemu-common.h" #include "exec/cpu-defs.h" #include "fpu/softfloat.h"
target-xtensa/cpu.h +0 -1
@@ -33,7 +33,6 @@#define CPUArchState struct CPUXtensaState -#include "qemu-common.h" #include "exec/cpu-defs.h" #include "fpu/softfloat.h"
tcg/tcg.h +1 -1
@@ -25,7 +25,7 @@#ifndef TCG_H #define TCG_H -#include "qemu-common.h" +#include "cpu.h" #include "qemu/bitops.h" #include "tcg-target.h"
tests/crypto-tls-x509-helpers.h +0 -2
@@ -34,8 +34,6 @@#ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT # include <libtasn1.h> -# include "qemu-common.h" -/* * This contains parameter about how to generate * certificates.
tests/test-crypto-tlscredsx509.c +1 -0
@@ -23,6 +23,7 @@#include "crypto-tls-x509-helpers.h" #include "crypto/tlscredsx509.h" #include "qapi/error.h" +#include "qemu/module.h" #ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT
tests/test-crypto-tlssession.c +1 -0
@@ -25,6 +25,7 @@#include "crypto/tlssession.h" #include "qom/object_interfaces.h" #include "qapi/error.h" +#include "qemu/module.h" #include "qemu/sockets.h" #include "qemu/acl.h"
tests/test-io-channel-buffer.c +1 -1
@@ -21,7 +21,7 @@#include "qemu/osdep.h" #include "io/channel-buffer.h" #include "io-channel-helpers.h" - +#include "qemu/module.h" static void test_io_channel_buf (void ) {
tests/test-io-channel-command.c +1 -0
@@ -22,6 +22,7 @@#include "io/channel-command.h" #include "io-channel-helpers.h" #include "qapi/error.h" +#include "qemu/module.h" #ifndef WIN32 static void test_io_channel_command_fifo (bool async)
tests/test-io-channel-file.c +1 -0
@@ -23,6 +23,7 @@#include "io/channel-util.h" #include "io-channel-helpers.h" #include "qapi/error.h" +#include "qemu/module.h" static void test_io_channel_file (void ) {
tests/test-io-channel-socket.c +1 -0
@@ -23,6 +23,7 @@#include "io/channel-util.h" #include "io-channel-helpers.h" #include "qapi/error.h" +#include "qemu/module.h" static int check_bind (struct sockaddr *sa,socklen_t salen,bool *has_proto) {
tests/test-io-channel-tls.c +1 -0
@@ -29,6 +29,7 @@#include "io-channel-helpers.h" #include "crypto/tlscredsx509.h" #include "qemu/acl.h" +#include "qemu/module.h" #include "qom/object_interfaces.h" #ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT
tests/test-io-task.c +1 -0
@@ -23,6 +23,7 @@#include "io/task.h" #include "qapi/error.h" +#include "qemu/module.h" #define TYPE_DUMMY "qemu:dummy"
tests/vhost-user-test.c +1 -0
@@ -12,6 +12,7 @@#include <glib.h> #include "libqtest.h" +#include "qemu/module.h" #include "qemu/option.h" #include "qemu/range.h" #include "sysemu/char.h"
trace/control.c +1 -0
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "trace/control.h" #ifdef CONFIG_TRACE_SIMPLE #include "trace/simple.h"
trace/control.h +0 -1
@@ -10,7 +10,6 @@#ifndef TRACE__CONTROL_H #define TRACE__CONTROL_H -#include "qemu-common.h" #include "trace/generated-events.h"
ui/keymaps.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "keymaps.h" #include "sysemu/sysemu.h"
ui/keymaps.h +0 -2
@@ -25,8 +25,6 @@ #ifndef __QEMU_KEYMAPS_H__ #define __QEMU_KEYMAPS_H__ -#include "qemu-common.h" - typedef struct { const char* name; int keysym;
ui/vnc.c +1 -0
@@ -25,6 +25,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "vnc.h" #include "vnc-jobs.h" #include "trace.h"
ui/vnc.h +0 -1
@@ -27,7 +27,6 @@#ifndef __QEMU_VNC_H#define __QEMU_VNC_H -#include "qemu-common.h" #include "qemu/queue.h" #include "qemu/thread.h" #include "ui/console.h"
util/buffer.c +1 -0
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qemu/buffer.h" #include "trace.h"
util/mmap-alloc.c +2 -0
@@ -9,9 +9,11 @@* 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 "qemu/osdep.h" #include <qemu/mmap-alloc.h> #include <sys/mman.h> +#include "qemu-common.h" #define HUGETLBFS_MAGIC 0x958458f6
util/oslib-posix.c +1 -1
@@ -39,7 +39,7 @@#endif #include "qemu/osdep.h" -#include <termios.h> +#include "qemu-common.h" #include <termios.h> #include <glib/gprintf.h>
util/qemu-sockets.c +2 -1
@@ -15,8 +15,9 @@* Contributions after 2012-01-13 are licensed under the terms of the * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" - +#include "qemu-common.h" #include "monitor/monitor.h" #include "qapi/error.h" #include "qemu/sockets.h"
vl.c +1 -0
@@ -52,6 +52,7 @@ int main(int argc, char **argv)#include <glib.h> +#include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/sockets.h" #include "hw/hw.h"
Signature · 1 line
2.4.3
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
Quoted 60 lines · Markus Armbruster
qemu-common.hshould only be included by .c files. Its file comment explains why: "No header file should depend onqemu-common.h, as this would easily lead to circular header dependencies."We include it in many headers anyway. Fix that.
Dropping these ill-advised includes requires including
qemu/fprintf-fn.h,cpu.horexec/hwaddr.hinstead in a few headers that actually need those, and of course includingqemu-common.hin .c files that need it, except some of them need onlyqemu/module.h.Signed-off-by Markus Armbruster <[email protected]>--- crypto/secret.c | 1 + crypto/tlscreds.c | 1 + crypto/tlscredsanon.c | 1 + crypto/tlscredsx509.c | 1 +crypto/secret.c +1
-0@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/secret.h" #include "crypto/cipher.h" #include "qapi/error.h" crypto/tlscreds.c +1
-0@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "qapi/error.h" +#include "qemu/module.h" #include "crypto/tlscredspriv.h" #include "trace.h" crypto/tlscredsanon.c +1
-0@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/tlscredsanon.h" #include "crypto/tlscredspriv.h" #include "qapi/error.h" crypto/tlscredsx509.c +0
-0
crypto/tlscredsx509.c line 25
Quoted 7 lines
crypto/tlscredsx509.c +1
-0@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/tlscredsx509.h" #include "crypto/tlscredspriv.h" #include "crypto/secret.h"
It feels like these should be in the previous patch that removes qemu-common.h from the include/crypto files ?
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
Quoted 63 lines · Daniel P. Berrange
Quoted 62 lines · Markus Armbruster
qemu-common.hshould only be included by .c files. Its file comment explains why: "No header file should depend onqemu-common.h, as this would easily lead to circular header dependencies."We include it in many headers anyway. Fix that.
Dropping these ill-advised includes requires including
qemu/fprintf-fn.h,cpu.horexec/hwaddr.hinstead in a few headers that actually need those, and of course includingqemu-common.hin .c files that need it, except some of them need onlyqemu/module.h.Signed-off-by Markus Armbruster <[email protected]>--- crypto/secret.c | 1 + crypto/tlscreds.c | 1 + crypto/tlscredsanon.c | 1 + crypto/tlscredsx509.c | 1 +crypto/secret.c +1
-0@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/secret.h" #include "crypto/cipher.h" #include "qapi/error.h" crypto/tlscreds.c +1
-0@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "qapi/error.h" +#include "qemu/module.h" #include "crypto/tlscredspriv.h" #include "trace.h" crypto/tlscredsanon.c +1
-0@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/tlscredsanon.h" #include "crypto/tlscredspriv.h" #include "qapi/error.h" crypto/tlscredsx509.c +0
-0@@ -19,6 +19,7 @@*/
Quoted 8 lines
crypto/tlscredsx509.c line 25
Quoted 5 lines
crypto/tlscredsx509.c +1
-0#include "qemu/osdep.h" +#include "qemu/module.h" #include "crypto/tlscredsx509.h" #include "crypto/tlscredspriv.h" #include "crypto/secret.h" It feels like these should be in the previous patch that removes
qemu-common.hfrom theinclude/cryptofiles ?
They aren't actually needed then, because qemu/module.h is still included via some inclusion of qemu-common.h in a header. But I can certainly move them to the previous patch anyway, if you'd prefer that. Since we'll probably defer this patch and the next for a bit, I might prefer it myself :)
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
In reply to Markus Armbrusterinclude/hw/hw.h line 21
Quoted 12 lines · Markus Armbruster
include/hw/hw.h +1
-0@@ -15,6 +15,7 @@#include "qemu/module.h" #ifdef NEED_CPU_H +#include "cpu.h" #if TARGET_LONG_BITS ==64 #define qemu_put_betl qemu_put_be64#define qemu_get_betl qemu_get_be64
This actually makes things somewhat worse. This dependency of hw/hw.h on NEED_CPU_H should go away altogether.
Would it be okay to stick to patches 1-13 for now?
Paolo
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
Quoted 17 lines · Paolo Bonzini
include/hw/hw.h line 21
Quoted 12 lines · Markus Armbruster
include/hw/hw.h +1
-0@@ -15,6 +15,7 @@#include "qemu/module.h" #ifdef NEED_CPU_H +#include "cpu.h" #if TARGET_LONG_BITS ==64 #define qemu_put_betl qemu_put_be64#define qemu_get_betl qemu_get_be64This actually makes things somewhat worse. This dependency of
hw/hw.honNEED_CPU_Hshould go away altogether.
Quoted 1 line
Would it be okay to stick to patches 1-13 for now?
Yes, as long as "for now" approximately means "until 2.7 opens up".
Proposed plan: I pursue 01-13 now, you rebase your need-cpu-h branch onto this work when it's ready, I rebase 14-15 onto yours, and carry on. Makes sense?
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
Quoted 19 lines · Markus Armbruster
Quoted 17 lines · Paolo Bonzini
include/hw/hw.h line 21
Quoted 12 lines · Markus Armbruster
include/hw/hw.h +1
-0@@ -15,6 +15,7 @@#include "qemu/module.h" #ifdef NEED_CPU_H +#include "cpu.h" #if TARGET_LONG_BITS ==64 #define qemu_put_betl qemu_put_be64#define qemu_get_betl qemu_get_be64This actually makes things somewhat worse. This dependency of
hw/hw.honNEED_CPU_Hshould go away altogether.
Quoted 7 lines
Quoted 1 line
Would it be okay to stick to patches 1-13 for now?
Yes, as long as "for now" approximately means "until 2.7 opens up".
Proposed plan: I pursue 01-13 now, you rebase your need-cpu-h branch onto this work when it's ready, I rebase 14-15 onto yours, and carry on. Makes sense?
Yes, totally. I've already started rebasing and there's nothing else that sticks out.
Since I have your attention, what about getting rid of fprintf-fn.h and moving it into qemu/osdep.h?
Paolo
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
Quoted 2 lines · Paolo Bonzini
Since I have your attention, what about getting rid of
fprintf-fn.hand moving it intoqemu/osdep.h?
Not a lot very osdep-ish about it... If you're going to put it anywhere then typedefs.h seems more appropriate.
(It's in its own file at the moment as part of a previous idea of cleaning up qemu-common.h by splitting it into separate parts where necessary so that only the needed parts could be included by the code that wanted them.)
thanks
-- PMM
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
Quoted 4 lines · Peter Maydell
Quoted 2 lines
Quoted 2 lines
Since I have your attention, what about getting rid of
fprintf-fn.hand moving it intoqemu/osdep.h?Not a lot very osdep-ish about it... If you're going to put it anywhere then
typedefs.hseems more appropriate.
Well, osdep.h is the new qemu-common.h. At least it doesn't include other^Wtoo many other QEMU header files, but it does have a lot of prototypes that are even more out of place than fprintf_function.
On the other hand, there are few enough headers that use fprintf-fn.h that it's feasible to just push it down from qemu-common.h.
Paolo
Quoted 4 lines
(It's in its own file at the moment as part of a previous idea of cleaning up
qemu-common.hby splitting it into separate parts where necessary so that only the needed parts could be included by the code that wanted them.)
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
Quoted 3 lines · Paolo Bonzini
Well,
osdep.his the newqemu-common.h. At least it doesn't include other^Wtoo many other QEMU header files, but it does have a lot of prototypes that are even more out of place thanfprintf_function.
Yes, those should be moved to somewhere else, they're in the wrong place (as noted in the comment at the top of osdep.h).
The comment at the top of osdep.h describes the plan:
* In an ideal world this header would contain only:
* (1) things which everybody needs
* (2) things without which code would work on most platforms but
* fail to compile or misbehave on a minority of host OSes
and I think we should be aiming to move towards the ideal world rather than away from it.
thanks
-- PMM
Re: [Qemu-devel] [PATCH 14/15] Don't include qemu-common.h in headers
In reply to Peter MaydellQuoted 6 lines · Peter Maydell
Quoted 2 lines · Paolo Bonzini
Since I have your attention, what about getting rid of
fprintf-fn.hand moving it intoqemu/osdep.h?Not a lot very osdep-ish about it... If you're going to put it anywhere then
typedefs.hseems more appropriate.
Makes sense to me.
Quoted 4 lines
(It's in its own file at the moment as part of a previous idea of cleaning up
qemu-common.hby splitting it into separate parts where necessary so that only the needed parts could be included by the code that wanted them.)
Sensible idea, but fprintf_function is hardly worth its very own header. typedefs.h should do nicely.