qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

clean-up: removed duplicate #includes

Some files contain multiple #includes of the same header file.
Removed most of those unnecessary duplicate entries using
scripts/clean-includes.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Anand J <anand.indukala@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

authored by

Anand J and committed by
Michael Tokarev
814bb12a d66253e4

-36
-1
accel.c
··· 33 33 #include "sysemu/qtest.h" 34 34 #include "hw/xen/xen.h" 35 35 #include "qom/object.h" 36 - #include "hw/boards.h" 37 36 38 37 int tcg_tb_size; 39 38 static bool tcg_allowed = true;
-1
cputlb.c
··· 26 26 #include "exec/cputlb.h" 27 27 #include "exec/memory-internal.h" 28 28 #include "exec/ram_addr.h" 29 - #include "exec/exec-all.h" 30 29 #include "tcg/tcg.h" 31 30 #include "qemu/error-report.h" 32 31 #include "exec/log.h"
-1
gdbstub.c
··· 31 31 32 32 #define MAX_PACKET_LENGTH 4096 33 33 34 - #include "cpu.h" 35 34 #include "qemu/sockets.h" 36 35 #include "sysemu/kvm.h" 37 36 #include "exec/semihost.h"
-1
hw/i386/acpi-build.c
··· 53 53 #include "hw/pci/pci_bus.h" 54 54 #include "hw/pci-host/q35.h" 55 55 #include "hw/i386/x86-iommu.h" 56 - #include "hw/timer/hpet.h" 57 56 58 57 #include "hw/acpi/aml-build.h" 59 58
-1
hw/microblaze/boot.c
··· 30 30 #include "qemu/option.h" 31 31 #include "qemu/config-file.h" 32 32 #include "qemu/error-report.h" 33 - #include "qemu-common.h" 34 33 #include "sysemu/device_tree.h" 35 34 #include "sysemu/sysemu.h" 36 35 #include "hw/loader.h"
-1
hw/mips/mips_malta.c
··· 47 47 #include "elf.h" 48 48 #include "hw/timer/mc146818rtc.h" 49 49 #include "hw/timer/i8254.h" 50 - #include "sysemu/block-backend.h" 51 50 #include "sysemu/blockdev.h" 52 51 #include "exec/address-spaces.h" 53 52 #include "hw/sysbus.h" /* SysBusDevice */
-1
hw/nvram/fw_cfg.c
··· 29 29 #include "hw/isa/isa.h" 30 30 #include "hw/nvram/fw_cfg.h" 31 31 #include "hw/sysbus.h" 32 - #include "hw/boards.h" 33 32 #include "trace.h" 34 33 #include "qemu/error-report.h" 35 34 #include "qemu/config-file.h"
-1
hw/pci-bridge/pci_expander_bridge.c
··· 15 15 #include "hw/pci/pci.h" 16 16 #include "hw/pci/pci_bus.h" 17 17 #include "hw/pci/pci_host.h" 18 - #include "hw/pci/pci_bus.h" 19 18 #include "hw/pci/pci_bridge.h" 20 19 #include "hw/i386/pc.h" 21 20 #include "qemu/range.h"
-1
hw/ppc/ppc405_boards.c
··· 37 37 #include "qemu/log.h" 38 38 #include "qemu/error-report.h" 39 39 #include "hw/loader.h" 40 - #include "sysemu/block-backend.h" 41 40 #include "sysemu/blockdev.h" 42 41 #include "exec/address-spaces.h" 43 42
-1
hw/ppc/spapr.c
··· 37 37 #include "sysemu/block-backend.h" 38 38 #include "sysemu/cpus.h" 39 39 #include "sysemu/kvm.h" 40 - #include "sysemu/device_tree.h" 41 40 #include "kvm_ppc.h" 42 41 #include "migration/migration.h" 43 42 #include "mmu-hash64.h"
-1
hw/timer/grlib_gptimer.c
··· 26 26 #include "hw/sysbus.h" 27 27 #include "qemu/timer.h" 28 28 #include "hw/ptimer.h" 29 - #include "qemu/timer.h" 30 29 #include "qemu/main-loop.h" 31 30 32 31 #include "trace.h"
-1
hw/tpm/tpm_tis.c
··· 34 34 #include "qapi/error.h" 35 35 #include "qemu-common.h" 36 36 #include "qemu/main-loop.h" 37 - #include "sysemu/tpm_backend.h" 38 37 39 38 #define DEBUG_TIS 0 40 39
-1
hw/unicore32/puv3.c
··· 13 13 #include "qapi/error.h" 14 14 #include "qemu-common.h" 15 15 #include "cpu.h" 16 - #include "qemu-common.h" 17 16 #include "ui/console.h" 18 17 #include "elf.h" 19 18 #include "exec/address-spaces.h"
-1
hw/usb/dev-mtp.c
··· 17 17 #include <sys/statvfs.h> 18 18 #ifdef CONFIG_INOTIFY1 19 19 #include <sys/inotify.h> 20 - #include "qapi/error.h" 21 20 #include "qemu/main-loop.h" 22 21 #endif 23 22
-1
include/hw/i386/pc.h
··· 13 13 #include "qemu/bitmap.h" 14 14 #include "sysemu/sysemu.h" 15 15 #include "hw/pci/pci.h" 16 - #include "hw/boards.h" 17 16 #include "hw/compat.h" 18 17 #include "hw/mem/pc-dimm.h" 19 18 #include "hw/mem/nvdimm.h"
-2
monitor.c
··· 59 59 #include "qapi/qmp/json-streamer.h" 60 60 #include "qapi/qmp/json-parser.h" 61 61 #include "qom/object_interfaces.h" 62 - #include "cpu.h" 63 62 #include "trace.h" 64 63 #include "trace/control.h" 65 64 #include "monitor/hmp-target.h" ··· 76 75 #include "qapi/qmp-event.h" 77 76 #include "qapi-event.h" 78 77 #include "qmp-introspect.h" 79 - #include "sysemu/block-backend.h" 80 78 #include "sysemu/qtest.h" 81 79 #include "qemu/cutils.h" 82 80 #include "qapi/qmp/dispatch.h"
-1
qemu-io-cmds.c
··· 18 18 #include "qemu/error-report.h" 19 19 #include "qemu/main-loop.h" 20 20 #include "qemu/timer.h" 21 - #include "sysemu/block-backend.h" 22 21 #include "qemu/cutils.h" 23 22 24 23 #define CMD_NOFILE_OK 0x01
-1
qmp.c
··· 36 36 #include "qom/object_interfaces.h" 37 37 #include "hw/mem/pc-dimm.h" 38 38 #include "hw/acpi/acpi_dev_interface.h" 39 - #include "qemu/uuid.h" 40 39 41 40 NameInfo *qmp_query_name(Error **errp) 42 41 {
-3
target-i386/machine.c
··· 7 7 #include "hw/i386/pc.h" 8 8 #include "hw/isa/isa.h" 9 9 #include "migration/cpu.h" 10 - #include "exec/exec-all.h" 11 10 12 - #include "cpu.h" 13 - #include "exec/exec-all.h" 14 11 #include "sysemu/kvm.h" 15 12 16 13 #include "qemu/error-report.h"
-1
target-mips/machine.c
··· 2 2 #include "qemu-common.h" 3 3 #include "cpu.h" 4 4 #include "hw/hw.h" 5 - #include "cpu.h" 6 5 #include "migration/cpu.h" 7 6 8 7 static int cpu_post_load(void *opaque, int version_id)
-1
target-ppc/machine.c
··· 8 8 #include "helper_regs.h" 9 9 #include "mmu-hash64.h" 10 10 #include "migration/cpu.h" 11 - #include "exec/exec-all.h" 12 11 13 12 static int cpu_load_old(QEMUFile *f, void *opaque, int version_id) 14 13 {
-1
target-ppc/mem_helper.c
··· 23 23 #include "exec/helper-proto.h" 24 24 25 25 #include "helper_regs.h" 26 - #include "exec/exec-all.h" 27 26 #include "exec/cpu_ldst.h" 28 27 29 28 //#define DEBUG_OP
-3
target-sparc/machine.c
··· 6 6 #include "hw/boards.h" 7 7 #include "qemu/timer.h" 8 8 9 - #include "cpu.h" 10 - #include "exec/exec-all.h" 11 9 #include "migration/cpu.h" 12 - #include "exec/exec-all.h" 13 10 14 11 #ifdef TARGET_SPARC64 15 12 static const VMStateDescription vmstate_cpu_timer = {
-1
target-xtensa/translate.c
··· 36 36 #include "tcg-op.h" 37 37 #include "qemu/log.h" 38 38 #include "sysemu/sysemu.h" 39 - #include "exec/exec-all.h" 40 39 #include "exec/cpu_ldst.h" 41 40 #include "exec/semihost.h" 42 41
-3
tests/crypto-tls-x509-helpers.h
··· 21 21 #include <gnutls/gnutls.h> 22 22 #include <gnutls/x509.h> 23 23 24 - #include <gnutls/gnutls.h> 25 - #include <gnutls/x509.h> 26 - 27 24 #if !(defined WIN32) && \ 28 25 defined(CONFIG_TASN1) && \ 29 26 (LIBGNUTLS_VERSION_NUMBER >= 0x020600)
-2
tests/vhost-user-test.c
··· 22 22 #include "libqos/virtio-pci.h" 23 23 #include "qapi/error.h" 24 24 25 - #include "libqos/pci-pc.h" 26 - #include "libqos/virtio-pci.h" 27 25 #include "libqos/malloc-pc.h" 28 26 #include "hw/virtio/virtio-net.h" 29 27
-1
util/oslib-posix.c
··· 28 28 29 29 #include "qemu/osdep.h" 30 30 #include <termios.h> 31 - #include <termios.h> 32 31 33 32 #include <glib/gprintf.h> 34 33
-1
vl.c
··· 110 110 #include "trace.h" 111 111 #include "trace/control.h" 112 112 #include "qemu/queue.h" 113 - #include "sysemu/cpus.h" 114 113 #include "sysemu/arch_init.h" 115 114 116 115 #include "ui/qemu-spice.h"