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

Include exec/memory.h slightly less

Drop unnecessary inclusions from headers. Downgrade a few more to
exec/hwaddr.h.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190812052359.30071-17-armbru@redhat.com>

+20 -10
+1
hw/audio/lm4549.h
··· 13 13 #define HW_LM4549_H 14 14 15 15 #include "audio/audio.h" 16 + #include "exec/hwaddr.h" 16 17 17 18 typedef void (*lm4549_callback)(void *opaque); 18 19
+1
hw/display/edid-region.c
··· 1 1 #include "qemu/osdep.h" 2 + #include "exec/memory.h" 2 3 #include "hw/display/edid.h" 3 4 4 5 static uint64_t edid_region_read(void *ptr, hwaddr addr, unsigned size)
+1
hw/display/tc6393xb.c
··· 17 17 #include "hw/hw.h" 18 18 #include "hw/irq.h" 19 19 #include "hw/display/tc6393xb.h" 20 + #include "exec/memory.h" 20 21 #include "hw/block/flash.h" 21 22 #include "ui/console.h" 22 23 #include "ui/pixel_ops.h"
+1
hw/net/can/can_sja1000.h
··· 27 27 #ifndef HW_CAN_SJA1000_H 28 28 #define HW_CAN_SJA1000_H 29 29 30 + #include "exec/hwaddr.h" 30 31 #include "net/can_emu.h" 31 32 32 33 #define CAN_SJA_MEM_SIZE 128
+1
hw/net/ne2000.c
··· 25 25 #include "qemu/osdep.h" 26 26 #include "net/eth.h" 27 27 #include "qemu/module.h" 28 + #include "exec/memory.h" 28 29 #include "hw/irq.h" 29 30 #include "migration/vmstate.h" 30 31 #include "ne2000.h"
-1
hw/xtensa/xtensa_memory.h
··· 29 29 #define XTENSA_MEMORY_H 30 30 31 31 #include "cpu.h" 32 - #include "exec/memory.h" 33 32 34 33 void xtensa_create_memory_regions(const XtensaMemory *memory, 35 34 const char *name,
-1
include/hw/arm/boot.h
··· 11 11 #ifndef HW_ARM_BOOT_H 12 12 #define HW_ARM_BOOT_H 13 13 14 - #include "exec/memory.h" 15 14 #include "target/arm/cpu-qom.h" 16 15 #include "qemu/notify.h" 17 16
-1
include/hw/arm/fsl-imx7.h
··· 38 38 #include "hw/net/imx_fec.h" 39 39 #include "hw/pci-host/designware.h" 40 40 #include "hw/usb/chipidea.h" 41 - #include "exec/memory.h" 42 41 #include "cpu.h" 43 42 44 43 #define TYPE_FSL_IMX7 "fsl,imx7"
+1 -1
include/hw/arm/soc_dma.h
··· 21 21 #ifndef HW_SOC_DMA_H 22 22 #define HW_SOC_DMA_H 23 23 24 - #include "exec/memory.h" 24 + #include "exec/hwaddr.h" 25 25 26 26 struct soc_dma_s; 27 27 struct soc_dma_ch_s;
+1 -1
include/hw/block/flash.h
··· 3 3 4 4 /* NOR flash devices */ 5 5 6 - #include "exec/memory.h" 6 + #include "exec/hwaddr.h" 7 7 8 8 /* pflash_cfi01.c */ 9 9
+1
include/hw/boards.h
··· 3 3 #ifndef HW_BOARDS_H 4 4 #define HW_BOARDS_H 5 5 6 + #include "exec/memory.h" 6 7 #include "sysemu/blockdev.h" 7 8 #include "sysemu/accel.h" 8 9 #include "hw/qdev.h"
-1
include/hw/char/parallel.h
··· 1 1 #ifndef HW_PARALLEL_H 2 2 #define HW_PARALLEL_H 3 3 4 - #include "exec/memory.h" 5 4 #include "hw/isa/isa.h" 6 5 #include "chardev/char.h" 7 6
+1
include/hw/display/milkymist_tmu2.h
··· 27 27 #ifndef HW_DISPLAY_MILKYMIST_TMU2_H 28 28 #define HW_DISPLAY_MILKYMIST_TMU2_H 29 29 30 + #include "exec/hwaddr.h" 30 31 #include "hw/qdev.h" 31 32 32 33 #if defined(CONFIG_X11) && defined(CONFIG_OPENGL)
-2
include/hw/display/tc6393xb.h
··· 12 12 #ifndef HW_DISPLAY_TC6393XB_H 13 13 #define HW_DISPLAY_TC6393XB_H 14 14 15 - #include "exec/memory.h" 16 - 17 15 typedef struct TC6393xbState TC6393xbState; 18 16 19 17 TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
+1 -1
include/hw/display/vga.h
··· 9 9 #ifndef QEMU_HW_DISPLAY_VGA_H 10 10 #define QEMU_HW_DISPLAY_VGA_H 11 11 12 - #include "exec/memory.h" 12 + #include "exec/hwaddr.h" 13 13 14 14 enum vga_retrace_method { 15 15 VGA_RETRACE_DUMB,
-1
include/hw/hw.h
··· 7 7 #endif 8 8 9 9 #include "qom/object.h" 10 - #include "exec/memory.h" 11 10 12 11 void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2); 13 12
+1
include/hw/i2c/pm_smbus.h
··· 1 1 #ifndef PM_SMBUS_H 2 2 #define PM_SMBUS_H 3 3 4 + #include "exec/memory.h" 4 5 #include "hw/i2c/smbus_master.h" 5 6 6 7 #define PM_SMBUS_MAX_MSG_SIZE 32
+1
include/hw/i2c/smbus_eeprom.h
··· 23 23 #ifndef HW_SMBUS_EEPROM_H 24 24 #define HW_SMBUS_EEPROM_H 25 25 26 + #include "exec/cpu-common.h" 26 27 #include "hw/i2c/i2c.h" 27 28 28 29 void smbus_eeprom_init_one(I2CBus *bus, uint8_t address, uint8_t *eeprom_buf);
+1
include/hw/misc/auxbus.h
··· 25 25 #ifndef HW_MISC_AUXBUS_H 26 26 #define HW_MISC_AUXBUS_H 27 27 28 + #include "exec/memory.h" 28 29 #include "hw/qdev.h" 29 30 30 31 typedef struct AUXBus AUXBus;
+1
include/hw/ppc/xics.h
··· 28 28 #ifndef XICS_H 29 29 #define XICS_H 30 30 31 + #include "exec/memory.h" 31 32 #include "hw/qdev.h" 32 33 33 34 #define XICS_IPI 0x2
+1
include/hw/usb.h
··· 25 25 * THE SOFTWARE. 26 26 */ 27 27 28 + #include "exec/memory.h" 28 29 #include "hw/qdev.h" 29 30 #include "qemu/iov.h" 30 31 #include "qemu/queue.h"
+1
include/hw/virtio/virtio.h
··· 14 14 #ifndef QEMU_VIRTIO_H 15 15 #define QEMU_VIRTIO_H 16 16 17 + #include "exec/memory.h" 17 18 #include "hw/hw.h" 18 19 #include "net/net.h" 19 20 #include "hw/qdev.h"
+1
migration/colo.c
··· 23 23 #include "io/channel-buffer.h" 24 24 #include "trace.h" 25 25 #include "qemu/error-report.h" 26 + #include "qemu/rcu.h" 26 27 #include "migration/failover.h" 27 28 #ifdef CONFIG_REPLICATION 28 29 #include "replication.h"
+1
migration/migration.h
··· 14 14 #ifndef QEMU_MIGRATION_H 15 15 #define QEMU_MIGRATION_H 16 16 17 + #include "exec/cpu-common.h" 17 18 #include "qapi/qapi-types-migration.h" 18 19 #include "qemu/thread.h" 19 20 #include "qemu/coroutine_int.h"
+1
migration/postcopy-ram.c
··· 25 25 #include "ram.h" 26 26 #include "qapi/error.h" 27 27 #include "qemu/notify.h" 28 + #include "qemu/rcu.h" 28 29 #include "sysemu/sysemu.h" 29 30 #include "sysemu/balloon.h" 30 31 #include "qemu/error-report.h"
+1
migration/rdma.c
··· 25 25 #include "qemu/error-report.h" 26 26 #include "qemu/main-loop.h" 27 27 #include "qemu/module.h" 28 + #include "qemu/rcu.h" 28 29 #include "qemu/sockets.h" 29 30 #include "qemu/bitmap.h" 30 31 #include "qemu/coroutine.h"