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

Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes, with the changes
to the following files manually reverted:

contrib/libvhost-user/libvhost-user-glib.h
contrib/libvhost-user/libvhost-user.c
contrib/libvhost-user/libvhost-user.h
linux-user/mips64/cpu_loop.c
linux-user/mips64/signal.c
linux-user/sparc64/cpu_loop.c
linux-user/sparc64/signal.c
linux-user/x86_64/cpu_loop.c
linux-user/x86_64/signal.c
target/s390x/gen-features.c
tests/migration/s390x/a-b-bios.c
tests/test-rcu-simpleq.c
tests/test-rcu-tailq.c

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20181204172535.2799-1-armbru@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Acked-by: Yuval Shaia <yuval.shaia@oracle.com>
Acked-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>

+5 -18
-2
contrib/elf2dmp/pdb.h
··· 8 8 #ifndef PDB_H 9 9 #define PDB_H 10 10 11 - #include <stdint.h> 12 - #include <stdlib.h> 13 11 14 12 typedef struct GUID { 15 13 unsigned int Data1;
-1
contrib/elf2dmp/pe.h
··· 8 8 #ifndef PE_H 9 9 #define PE_H 10 10 11 - #include <stdint.h> 12 11 13 12 typedef struct IMAGE_DOS_HEADER { 14 13 uint16_t e_magic; /* 0x00: MZ Header signature */
-1
contrib/elf2dmp/qemu_elf.h
··· 8 8 #ifndef QEMU_ELF_H 9 9 #define QEMU_ELF_H 10 10 11 - #include <stdint.h> 12 11 #include <elf.h> 13 12 14 13 typedef struct QEMUCPUSegment {
-1
contrib/vhost-user-blk/vhost-user-blk.c
··· 20 20 #include "contrib/libvhost-user/libvhost-user-glib.h" 21 21 #include "contrib/libvhost-user/libvhost-user.h" 22 22 23 - #include <glib.h> 24 23 25 24 struct virtio_blk_inhdr { 26 25 unsigned char status;
-1
contrib/vhost-user-scsi/vhost-user-scsi.c
··· 16 16 #include "contrib/libvhost-user/libvhost-user-glib.h" 17 17 #include "standard-headers/linux/virtio_scsi.h" 18 18 19 - #include <glib.h> 20 19 21 20 #define VUS_ISCSI_INITIATOR "iqn.2016-11.com.nutanix:vhost-user-scsi" 22 21
+1
hw/rdma/rdma_utils.c
··· 13 13 * 14 14 */ 15 15 16 + #include "qemu/osdep.h" 16 17 #include "rdma_utils.h" 17 18 18 19 #ifdef PVRDMA_DEBUG
-1
hw/rdma/rdma_utils.h
··· 17 17 #ifndef RDMA_UTILS_H 18 18 #define RDMA_UTILS_H 19 19 20 - #include "qemu/osdep.h" 21 20 #include "hw/pci/pci.h" 22 21 #include "sysemu/dma.h" 23 22
-1
hw/rdma/vmw/pvrdma_dev_ring.h
··· 16 16 #ifndef PVRDMA_DEV_RING_H 17 17 #define PVRDMA_DEV_RING_H 18 18 19 - #include "qemu/typedefs.h" 20 19 21 20 #define MAX_RING_NAME_SZ 32 22 21
+1 -1
hw/vfio/ap.c
··· 10 10 * directory. 11 11 */ 12 12 13 + #include "qemu/osdep.h" 13 14 #include <linux/vfio.h> 14 15 #include <sys/ioctl.h> 15 - #include "qemu/osdep.h" 16 16 #include "qapi/error.h" 17 17 #include "hw/sysbus.h" 18 18 #include "hw/vfio/vfio.h"
-1
include/qemu/vfio-helpers.h
··· 12 12 13 13 #ifndef QEMU_VFIO_HELPERS_H 14 14 #define QEMU_VFIO_HELPERS_H 15 - #include "qemu/typedefs.h" 16 15 17 16 typedef struct QEMUVFIOState QEMUVFIOState; 18 17
-1
include/sysemu/whpx.h
··· 13 13 #ifndef QEMU_WHPX_H 14 14 #define QEMU_WHPX_H 15 15 16 - #include "config-host.h" 17 16 #include "qemu-common.h" 18 17 19 18 int whpx_init_vcpu(CPUState *cpu);
+2 -1
target/i386/sev.c
··· 11 11 * 12 12 */ 13 13 14 + #include "qemu/osdep.h" 15 + 14 16 #include <linux/kvm.h> 15 17 #include <linux/psp-sev.h> 16 18 17 19 #include <sys/ioctl.h> 18 20 19 - #include "qemu/osdep.h" 20 21 #include "qapi/error.h" 21 22 #include "qom/object_interfaces.h" 22 23 #include "qemu/base64.h"
-1
target/i386/whp-dispatch.h
··· 1 1 #include "windows.h" 2 - #include <stdbool.h> 3 2 4 3 #include <WinHvPlatform.h> 5 4 #include <WinHvEmulation.h>
-1
target/riscv/fpu_helper.c
··· 17 17 */ 18 18 19 19 #include "qemu/osdep.h" 20 - #include <stdlib.h> 21 20 #include "cpu.h" 22 21 #include "qemu/host-utils.h" 23 22 #include "exec/exec-all.h"
-1
tests/fp/platform.h
··· 29 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 31 */ 32 - #include "config-host.h" 33 32 34 33 #ifndef HOST_WORDS_BIGENDIAN 35 34 #define LITTLEENDIAN 1
-1
tests/tpm-util.h
··· 13 13 #ifndef TESTS_TPM_UTIL_H 14 14 #define TESTS_TPM_UTIL_H 15 15 16 - #include "qemu/osdep.h" 17 16 #include "io/channel-socket.h" 18 17 19 18 typedef void (tx_func)(QTestState *s,
+1 -1
tests/vhost-user-bridge.c
··· 29 29 30 30 #define _FILE_OFFSET_BITS 64 31 31 32 - #include "qemu/atomic.h" 33 32 #include "qemu/osdep.h" 33 + #include "qemu/atomic.h" 34 34 #include "qemu/iov.h" 35 35 #include "standard-headers/linux/virtio_net.h" 36 36 #include "contrib/libvhost-user/libvhost-user.h"
-1
util/qemu-thread-common.h
··· 13 13 #ifndef QEMU_THREAD_COMMON_H 14 14 #define QEMU_THREAD_COMMON_H 15 15 16 - #include "qemu/typedefs.h" 17 16 #include "qemu/thread.h" 18 17 #include "trace.h" 19 18