Use #include "..." for our own headers, <...> for others

Tracked down with an ugly, brittle and probably buggy Perl script.

Also move includes converted to <...> up so they get included before
ours where that's obviously okay.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
Markus Armbruster 2016-06-22 19:11:19 +02:00
parent b35399bb4e
commit a9c94277f0
91 changed files with 169 additions and 172 deletions

View File

@ -46,7 +46,6 @@
#ifdef __linux__ #ifdef __linux__
#include <scsi/sg.h> #include <scsi/sg.h>
#include <block/scsi.h>
#endif #endif
typedef struct IscsiLun { typedef struct IscsiLun {

View File

@ -19,9 +19,9 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <gcrypt.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "crypto/hash.h" #include "crypto/hash.h"
#include "gcrypt.h"
static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALG__MAX] = { static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALG__MAX] = {

View File

@ -19,9 +19,9 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <gcrypt.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "crypto/pbkdf.h" #include "crypto/pbkdf.h"
#include "gcrypt.h"
bool qcrypto_pbkdf2_supports(QCryptoHashAlgorithm hash) bool qcrypto_pbkdf2_supports(QCryptoHashAlgorithm hash)
{ {

View File

@ -19,9 +19,9 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <nettle/pbkdf2.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "crypto/pbkdf.h" #include "crypto/pbkdf.h"
#include "nettle/pbkdf2.h"
bool qcrypto_pbkdf2_supports(QCryptoHashAlgorithm hash) bool qcrypto_pbkdf2_supports(QCryptoHashAlgorithm hash)

2
exec.c
View File

@ -36,7 +36,7 @@
#include "qemu/config-file.h" #include "qemu/config-file.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#if defined(CONFIG_USER_ONLY) #if defined(CONFIG_USER_ONLY)
#include <qemu.h> #include "qemu.h"
#else /* !CONFIG_USER_ONLY */ #else /* !CONFIG_USER_ONLY */
#include "hw/hw.h" #include "hw/hw.h"
#include "exec/memory.h" #include "exec/memory.h"

View File

@ -21,10 +21,10 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/block/block.h> #include "hw/block/block.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/pci/msix.h> #include "hw/pci/msix.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qapi/visitor.h" #include "qapi/visitor.h"

View File

@ -13,7 +13,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/qdev.h> #include "hw/qdev.h"
#include "qemu/thread.h" #include "qemu/thread.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"

View File

@ -24,7 +24,7 @@
#ifndef HW_VGA_INT_H #ifndef HW_VGA_INT_H
#define HW_VGA_INT_H 1 #define HW_VGA_INT_H 1
#include <hw/hw.h> #include "hw/hw.h"
#include "exec/memory.h" #include "exec/memory.h"
#define ST01_V_RETRACE 0x08 #define ST01_V_RETRACE 0x08

View File

@ -21,7 +21,7 @@
#ifdef CONFIG_VIRGL #ifdef CONFIG_VIRGL
#include "virglrenderer.h" #include <virglrenderer.h>
static struct virgl_renderer_callbacks virtio_gpu_3d_cbs; static struct virgl_renderer_callbacks virtio_gpu_3d_cbs;

View File

@ -28,7 +28,7 @@ static struct virtio_gpu_simple_resource*
virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id); virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id);
#ifdef CONFIG_VIRGL #ifdef CONFIG_VIRGL
#include "virglrenderer.h" #include <virglrenderer.h>
#define VIRGL(_g, _virgl, _simple, ...) \ #define VIRGL(_g, _virgl, _simple, ...) \
do { \ do { \
if (_g->use_virgl_renderer) { \ if (_g->use_virgl_renderer) { \

View File

@ -22,14 +22,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <linux/kvm.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/timer/i8254.h" #include "hw/timer/i8254.h"
#include "hw/timer/i8254_internal.h" #include "hw/timer/i8254_internal.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "linux/kvm.h"
#define KVM_PIT_REINJECT_BIT 0 #define KVM_PIT_REINJECT_BIT 0

View File

@ -20,7 +20,9 @@
* Copyright (C) 2008, Red Hat, Amit Shah (amit.shah@redhat.com) * Copyright (C) 2008, Red Hat, Amit Shah (amit.shah@redhat.com)
* Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com) * Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com)
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <linux/kvm.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/i386/pc.h" #include "hw/i386/pc.h"
@ -32,7 +34,6 @@
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "hw/pci/msi.h" #include "hw/pci/msi.h"
#include "linux/kvm.h"
#include "kvm_i386.h" #include "kvm_i386.h"
#include "hw/pci/pci-assign.h" #include "hw/pci/pci-assign.h"

View File

@ -22,17 +22,17 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/pci/msi.h> #include "hw/pci/msi.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
#include <hw/ide/pci.h> #include "hw/ide/pci.h"
#include <hw/ide/ahci.h> #include "hw/ide/ahci.h"
#define DEBUG_AHCI 0 #define DEBUG_AHCI 0

View File

@ -23,15 +23,15 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/pci.h> #include "hw/ide/pci.h"
/* CMD646 specific */ /* CMD646 specific */
#define CFR 0x50 #define CFR 0x50

View File

@ -23,10 +23,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
@ -35,7 +35,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
/* These values were based on a Seagate ST3500418AS but have been modified /* These values were based on a Seagate ST3500418AS but have been modified
to make more sense in QEMU */ to make more sense in QEMU */

View File

@ -61,15 +61,15 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/pci/msi.h> #include "hw/pci/msi.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/pci.h> #include "hw/ide/pci.h"
#include <hw/ide/ahci.h> #include "hw/ide/ahci.h"
#define ICH9_MSI_CAP_OFFSET 0x80 #define ICH9_MSI_CAP_OFFSET 0x80
#define ICH9_SATA_CAP_OFFSET 0xA8 #define ICH9_SATA_CAP_OFFSET 0xA8

View File

@ -23,13 +23,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
/***********************************************************/ /***********************************************************/
/* ISA IDE definitions */ /* ISA IDE definitions */

View File

@ -29,7 +29,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
/* debug MACIO */ /* debug MACIO */
// #define DEBUG_MACIO // #define DEBUG_MACIO

View File

@ -23,13 +23,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pcmcia.h> #include "hw/pcmcia.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
#define TYPE_MICRODRIVE "microdrive" #define TYPE_MICRODRIVE "microdrive"
#define MICRODRIVE(obj) OBJECT_CHECK(MicroDriveState, (obj), TYPE_MICRODRIVE) #define MICRODRIVE(obj) OBJECT_CHECK(MicroDriveState, (obj), TYPE_MICRODRIVE)

View File

@ -28,7 +28,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
/***********************************************************/ /***********************************************************/
/* MMIO based ide port /* MMIO based ide port

View File

@ -23,14 +23,14 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include <hw/ide/pci.h> #include "hw/ide/pci.h"
#define BMDMA_PAGE_SIZE 4096 #define BMDMA_PAGE_SIZE 4096

View File

@ -24,15 +24,15 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/pci.h> #include "hw/ide/pci.h"
static uint64_t bmdma_read(void *opaque, hwaddr addr, unsigned size) static uint64_t bmdma_read(void *opaque, hwaddr addr, unsigned size)
{ {

View File

@ -17,11 +17,11 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "hw/block/block.h" #include "hw/block/block.h"

View File

@ -24,15 +24,15 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/hw.h> #include "hw/hw.h"
#include <hw/i386/pc.h> #include "hw/i386/pc.h"
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include <hw/ide/pci.h> #include "hw/ide/pci.h"
static uint64_t bmdma_read(void *opaque, hwaddr addr, static uint64_t bmdma_read(void *opaque, hwaddr addr,
unsigned size) unsigned size)

View File

@ -12,11 +12,11 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <linux/kvm.h>
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/qdev.h" #include "hw/qdev.h"
#include "hw/isa/isa.h" #include "hw/isa/isa.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#include "linux/kvm.h"
#include "target-i386/hyperv.h" #include "target-i386/hyperv.h"
#include "kvm_i386.h" #include "kvm_i386.h"

View File

@ -12,11 +12,11 @@
#include "hw/ppc/spapr.h" #include "hw/ppc/spapr.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "qapi/error.h" #include "qapi/error.h"
#include <sysemu/cpus.h> #include "sysemu/cpus.h"
#include "target-ppc/kvm_ppc.h" #include "target-ppc/kvm_ppc.h"
#include "hw/ppc/ppc.h" #include "hw/ppc/ppc.h"
#include "target-ppc/mmu-hash64.h" #include "target-ppc/mmu-hash64.h"
#include <sysemu/numa.h> #include "sysemu/numa.h"
static void spapr_cpu_reset(void *opaque) static void spapr_cpu_reset(void *opaque)
{ {

View File

@ -18,13 +18,13 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <linux/vfio.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "cpu.h" #include "cpu.h"
#include "hw/ppc/spapr.h" #include "hw/ppc/spapr.h"
#include "hw/pci-host/spapr.h" #include "hw/pci-host/spapr.h"
#include "hw/pci/msix.h" #include "hw/pci/msix.h"
#include "linux/vfio.h"
#include "hw/vfio/vfio.h" #include "hw/vfio/vfio.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "sysemu/qtest.h" #include "sysemu/qtest.h"

View File

@ -12,7 +12,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qapi/visitor.h" #include "qapi/visitor.h"
#include <hw/qdev.h> #include "hw/qdev.h"
#include "qemu/bitops.h" #include "qemu/bitops.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "cpu.h" #include "cpu.h"

View File

@ -18,9 +18,9 @@
#include "cpu.h" #include "cpu.h"
#include "s390-pci-bus.h" #include "s390-pci-bus.h"
#include "s390-pci-inst.h" #include "s390-pci-inst.h"
#include <hw/pci/pci_bus.h> #include "hw/pci/pci_bus.h"
#include <hw/pci/msi.h> #include "hw/pci/msi.h"
#include <qemu/error-report.h> #include "qemu/error-report.h"
/* #define DEBUG_S390PCI_BUS */ /* #define DEBUG_S390PCI_BUS */
#ifdef DEBUG_S390PCI_BUS #ifdef DEBUG_S390PCI_BUS

View File

@ -14,8 +14,8 @@
#ifndef HW_S390_PCI_BUS_H #ifndef HW_S390_PCI_BUS_H
#define HW_S390_PCI_BUS_H #define HW_S390_PCI_BUS_H
#include <hw/pci/pci.h> #include "hw/pci/pci.h"
#include <hw/pci/pci_host.h> #include "hw/pci/pci_host.h"
#include "hw/s390x/sclp.h" #include "hw/s390x/sclp.h"
#include "hw/s390x/s390_flic.h" #include "hw/s390x/s390_flic.h"
#include "hw/s390x/css.h" #include "hw/s390x/css.h"

View File

@ -16,8 +16,8 @@
#include "cpu.h" #include "cpu.h"
#include "s390-pci-inst.h" #include "s390-pci-inst.h"
#include "s390-pci-bus.h" #include "s390-pci-bus.h"
#include <exec/memory-internal.h> #include "exec/memory-internal.h"
#include <qemu/error-report.h> #include "qemu/error-report.h"
/* #define DEBUG_S390PCI_INST */ /* #define DEBUG_S390PCI_INST */
#ifdef DEBUG_S390PCI_INST #ifdef DEBUG_S390PCI_INST

View File

@ -15,7 +15,7 @@
#define HW_S390_PCI_INST_H #define HW_S390_PCI_INST_H
#include "s390-pci-bus.h" #include "s390-pci-bus.h"
#include <sysemu/dma.h> #include "sysemu/dma.h"
/* CLP common request & response block size */ /* CLP common request & response block size */
#define CLP_BLK_SIZE 4096 #define CLP_BLK_SIZE 4096

View File

@ -12,7 +12,7 @@
* *
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <hw/qdev.h> #include "hw/qdev.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/s390x/sclp.h" #include "hw/s390x/sclp.h"
#include "hw/s390x/event-facility.h" #include "hw/s390x/event-facility.h"

View File

@ -13,19 +13,19 @@
#ifndef HW_S390X_VIRTIO_CCW_H #ifndef HW_S390X_VIRTIO_CCW_H
#define HW_S390X_VIRTIO_CCW_H #define HW_S390X_VIRTIO_CCW_H
#include <hw/virtio/virtio-blk.h> #include "hw/virtio/virtio-blk.h"
#include <hw/virtio/virtio-net.h> #include "hw/virtio/virtio-net.h"
#include <hw/virtio/virtio-serial.h> #include "hw/virtio/virtio-serial.h"
#include <hw/virtio/virtio-scsi.h> #include "hw/virtio/virtio-scsi.h"
#ifdef CONFIG_VHOST_SCSI #ifdef CONFIG_VHOST_SCSI
#include <hw/virtio/vhost-scsi.h> #include "hw/virtio/vhost-scsi.h"
#endif #endif
#include <hw/virtio/virtio-balloon.h> #include "hw/virtio/virtio-balloon.h"
#include <hw/virtio/virtio-rng.h> #include "hw/virtio/virtio-rng.h"
#include <hw/virtio/virtio-bus.h> #include "hw/virtio/virtio-bus.h"
#include <hw/s390x/s390_flic.h> #include "hw/s390x/s390_flic.h"
#include <hw/s390x/css.h> #include "hw/s390x/css.h"
#include "ccw-device.h" #include "ccw-device.h"
#include "hw/s390x/css-bridge.h" #include "hw/s390x/css-bridge.h"

View File

@ -15,8 +15,9 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include <linux/vhost.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "qapi/error.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "monitor/monitor.h" #include "monitor/monitor.h"
@ -27,7 +28,6 @@
#include "hw/virtio/virtio-bus.h" #include "hw/virtio/virtio-bus.h"
#include "hw/virtio/virtio-access.h" #include "hw/virtio/virtio-access.h"
#include "hw/fw-path-provider.h" #include "hw/fw-path-provider.h"
#include "linux/vhost.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
/* Features supported by host kernel. */ /* Features supported by host kernel. */

View File

@ -15,9 +15,9 @@
#include "hw/virtio/virtio-scsi.h" #include "hw/virtio/virtio-scsi.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include <hw/scsi/scsi.h> #include "hw/scsi/scsi.h"
#include <block/scsi.h> #include "block/scsi.h"
#include <hw/virtio/virtio-bus.h> #include "hw/virtio/virtio-bus.h"
#include "hw/virtio/virtio-access.h" #include "hw/virtio/virtio-access.h"
/* Context: QEMU global mutex held */ /* Context: QEMU global mutex held */

View File

@ -20,9 +20,9 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/iov.h" #include "qemu/iov.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include <hw/scsi/scsi.h> #include "hw/scsi/scsi.h"
#include <block/scsi.h> #include "block/scsi.h"
#include <hw/virtio/virtio-bus.h> #include "hw/virtio/virtio-bus.h"
#include "hw/virtio/virtio-access.h" #include "hw/virtio/virtio-access.h"
static inline int virtio_scsi_get_lun(uint8_t *lun) static inline int virtio_scsi_get_lun(uint8_t *lun)

View File

@ -28,7 +28,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "hw/scsi/scsi.h" #include "hw/scsi/scsi.h"
#include <block/scsi.h> #include "block/scsi.h"
#include "hw/pci/msi.h" #include "hw/pci/msi.h"
#include "vmw_pvscsi.h" #include "vmw_pvscsi.h"
#include "trace.h" #include "trace.h"

View File

@ -21,6 +21,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <libusb.h> #include <libusb.h>
#include <sys/user.h>
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/config-file.h" #include "qemu/config-file.h"
@ -31,7 +32,6 @@
#include "qapi/qmp/qbool.h" #include "qapi/qmp/qbool.h"
#include "qapi/qmp/qint.h" #include "qapi/qmp/qint.h"
#include "qapi/qmp/qstring.h" #include "qapi/qmp/qstring.h"
#include "sys/user.h"
#include <xen/io/ring.h> #include <xen/io/ring.h>
#include <xen/io/usbif.h> #include <xen/io/usbif.h>

View File

@ -20,6 +20,9 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef CONFIG_KVM
#include <linux/kvm.h>
#endif
#include <linux/vfio.h> #include <linux/vfio.h>
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-common.h"
@ -30,9 +33,6 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/range.h" #include "qemu/range.h"
#include "sysemu/kvm.h" #include "sysemu/kvm.h"
#ifdef CONFIG_KVM
#include "linux/kvm.h"
#endif
#include "trace.h" #include "trace.h"
struct vfio_group_head vfio_group_list = struct vfio_group_head vfio_group_list =

View File

@ -9,12 +9,11 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <linux/vhost.h>
#include <sys/ioctl.h>
#include "hw/virtio/vhost.h" #include "hw/virtio/vhost.h"
#include "hw/virtio/vhost-backend.h" #include "hw/virtio/vhost-backend.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "linux/vhost.h"
#include <sys/ioctl.h>
static int vhost_kernel_call(struct vhost_dev *dev, unsigned long int request, static int vhost_kernel_call(struct vhost_dev *dev, unsigned long int request,
void *arg) void *arg)

View File

@ -4,7 +4,7 @@
#ifndef HELPER_GEN_H #ifndef HELPER_GEN_H
#define HELPER_GEN_H 1 #define HELPER_GEN_H 1
#include <exec/helper-head.h> #include "exec/helper-head.h"
#define DEF_HELPER_FLAGS_0(name, flags, ret) \ #define DEF_HELPER_FLAGS_0(name, flags, ret) \
static inline void glue(gen_helper_, name)(dh_retvar_decl0(ret)) \ static inline void glue(gen_helper_, name)(dh_retvar_decl0(ret)) \

View File

@ -4,7 +4,7 @@
#ifndef HELPER_PROTO_H #ifndef HELPER_PROTO_H
#define HELPER_PROTO_H 1 #define HELPER_PROTO_H 1
#include <exec/helper-head.h> #include "exec/helper-head.h"
#define DEF_HELPER_FLAGS_0(name, flags, ret) \ #define DEF_HELPER_FLAGS_0(name, flags, ret) \
dh_ctype(ret) HELPER(name) (void); dh_ctype(ret) HELPER(name) (void);

View File

@ -4,7 +4,7 @@
#ifndef HELPER_TCG_H #ifndef HELPER_TCG_H
#define HELPER_TCG_H 1 #define HELPER_TCG_H 1
#include <exec/helper-head.h> #include "exec/helper-head.h"
#define DEF_HELPER_FLAGS_0(NAME, FLAGS, ret) \ #define DEF_HELPER_FLAGS_0(NAME, FLAGS, ret) \
{ .func = HELPER(NAME), .name = #NAME, .flags = FLAGS, \ { .func = HELPER(NAME), .name = #NAME, .flags = FLAGS, \

View File

@ -33,7 +33,7 @@
#ifndef EXEC_TB_HASH_XX #ifndef EXEC_TB_HASH_XX
#define EXEC_TB_HASH_XX #define EXEC_TB_HASH_XX
#include <qemu/bitops.h> #include "qemu/bitops.h"
#define PRIME32_1 2654435761U #define PRIME32_1 2654435761U
#define PRIME32_2 2246822519U #define PRIME32_2 2246822519U

View File

@ -20,7 +20,7 @@
#ifndef __IMX_GPIO_H_ #ifndef __IMX_GPIO_H_
#define __IMX_GPIO_H_ #define __IMX_GPIO_H_
#include <hw/sysbus.h> #include "hw/sysbus.h"
#define TYPE_IMX_GPIO "imx.gpio" #define TYPE_IMX_GPIO "imx.gpio"
#define IMX_GPIO(obj) OBJECT_CHECK(IMXGPIOState, (obj), TYPE_IMX_GPIO) #define IMX_GPIO(obj) OBJECT_CHECK(IMXGPIOState, (obj), TYPE_IMX_GPIO)

View File

@ -21,7 +21,7 @@
#ifndef __IMX_I2C_H_ #ifndef __IMX_I2C_H_
#define __IMX_I2C_H_ #define __IMX_I2C_H_
#include <hw/sysbus.h> #include "hw/sysbus.h"
#define TYPE_IMX_I2C "imx.i2c" #define TYPE_IMX_I2C "imx.i2c"
#define IMX_I2C(obj) OBJECT_CHECK(IMXI2CState, (obj), TYPE_IMX_I2C) #define IMX_I2C(obj) OBJECT_CHECK(IMXI2CState, (obj), TYPE_IMX_I2C)

View File

@ -24,7 +24,7 @@
#ifndef HW_IDE_AHCI_H #ifndef HW_IDE_AHCI_H
#define HW_IDE_AHCI_H #define HW_IDE_AHCI_H
#include <hw/sysbus.h> #include "hw/sysbus.h"
#define AHCI_MEM_BAR_SIZE 0x1000 #define AHCI_MEM_BAR_SIZE 0x1000
#define AHCI_MAX_PORTS 32 #define AHCI_MAX_PORTS 32

View File

@ -6,8 +6,8 @@
* only files in hw/ide/ are supposed to include this file. * only files in hw/ide/ are supposed to include this file.
* non-internal declarations are in hw/ide.h * non-internal declarations are in hw/ide.h
*/ */
#include <hw/ide.h> #include "hw/ide.h"
#include <hw/isa/isa.h> #include "hw/isa/isa.h"
#include "sysemu/dma.h" #include "sysemu/dma.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/block/block.h" #include "hw/block/block.h"

View File

@ -1,7 +1,7 @@
#ifndef HW_IDE_PCI_H #ifndef HW_IDE_PCI_H
#define HW_IDE_PCI_H #define HW_IDE_PCI_H
#include <hw/ide/internal.h> #include "hw/ide/internal.h"
#define BM_STATUS_DMAING 0x01 #define BM_STATUS_DMAING 0x01
#define BM_STATUS_ERROR 0x02 #define BM_STATUS_ERROR 0x02

View File

@ -12,9 +12,9 @@
#if !defined(__HW_SPAPR_DRC_H__) #if !defined(__HW_SPAPR_DRC_H__)
#define __HW_SPAPR_DRC_H__ #define __HW_SPAPR_DRC_H__
#include <libfdt.h>
#include "qom/object.h" #include "qom/object.h"
#include "hw/qdev.h" #include "hw/qdev.h"
#include "libfdt.h"
#define TYPE_SPAPR_DR_CONNECTOR "spapr-dr-connector" #define TYPE_SPAPR_DR_CONNECTOR "spapr-dr-connector"
#define SPAPR_DR_CONNECTOR_GET_CLASS(obj) \ #define SPAPR_DR_CONNECTOR_GET_CLASS(obj) \

View File

@ -15,7 +15,7 @@
#ifndef HW_S390_SCLP_EVENT_FACILITY_H #ifndef HW_S390_SCLP_EVENT_FACILITY_H
#define HW_S390_SCLP_EVENT_FACILITY_H #define HW_S390_SCLP_EVENT_FACILITY_H
#include <hw/qdev.h> #include "hw/qdev.h"
#include "qemu/thread.h" #include "qemu/thread.h"
#include "hw/s390x/sclp.h" #include "hw/s390x/sclp.h"

View File

@ -14,8 +14,8 @@
#ifndef HW_S390_SCLP_H #ifndef HW_S390_SCLP_H
#define HW_S390_SCLP_H #define HW_S390_SCLP_H
#include <hw/sysbus.h> #include "hw/sysbus.h"
#include <hw/qdev.h> #include "hw/qdev.h"
#define SCLP_CMD_CODE_MASK 0xffff00ff #define SCLP_CMD_CODE_MASK 0xffff00ff

View File

@ -12,7 +12,7 @@
#ifndef __S390_STORAGE_KEYS_H #ifndef __S390_STORAGE_KEYS_H
#define __S390_STORAGE_KEYS_H #define __S390_STORAGE_KEYS_H
#include <hw/qdev.h> #include "hw/qdev.h"
#include "monitor/monitor.h" #include "monitor/monitor.h"
#define TYPE_S390_SKEYS "s390-skeys" #define TYPE_S390_SKEYS "s390-skeys"

View File

@ -27,7 +27,7 @@
#define QEMU_VMSTATE_H 1 #define QEMU_VMSTATE_H 1
#ifndef CONFIG_USER_ONLY #ifndef CONFIG_USER_ONLY
#include <migration/qemu-file.h> #include "migration/qemu-file.h"
#endif #endif
#include "migration/qjson.h" #include "migration/qjson.h"

View File

@ -13,8 +13,8 @@
#ifndef QEMU_SEQLOCK_H #ifndef QEMU_SEQLOCK_H
#define QEMU_SEQLOCK_H 1 #define QEMU_SEQLOCK_H 1
#include <qemu/atomic.h> #include "qemu/atomic.h"
#include <qemu/thread.h> #include "qemu/thread.h"
typedef struct QemuSeqLock QemuSeqLock; typedef struct QemuSeqLock QemuSeqLock;

View File

@ -1,6 +1,7 @@
#ifndef __QEMU_THREAD_POSIX_H #ifndef __QEMU_THREAD_POSIX_H
#define __QEMU_THREAD_POSIX_H 1 #define __QEMU_THREAD_POSIX_H 1
#include "pthread.h"
#include <pthread.h>
#include <semaphore.h> #include <semaphore.h>
struct QemuMutex { struct QemuMutex {

View File

@ -1,6 +1,7 @@
#ifndef __QEMU_THREAD_WIN32_H #ifndef __QEMU_THREAD_WIN32_H
#define __QEMU_THREAD_WIN32_H 1 #define __QEMU_THREAD_WIN32_H 1
#include "windows.h"
#include <windows.h>
struct QemuMutex { struct QemuMutex {
CRITICAL_SECTION lock; CRITICAL_SECTION lock;

View File

@ -21,8 +21,7 @@
#ifndef __FPA11_H__ #ifndef __FPA11_H__
#define __FPA11_H__ #define __FPA11_H__
#include "cpu.h"
#include <cpu.h>
#define GET_FPA11() (qemufpa) #define GET_FPA11() (qemufpa)

View File

@ -37,7 +37,7 @@
#include "qemu.h" #include "qemu.h"
#include "flat.h" #include "flat.h"
#include <target_flat.h> #include "target_flat.h"
//#define DEBUG //#define DEBUG

View File

@ -58,7 +58,7 @@
#include "qapi/qmp/qjson.h" #include "qapi/qmp/qjson.h"
#include "qapi/qmp/json-streamer.h" #include "qapi/qmp/json-streamer.h"
#include "qapi/qmp/json-parser.h" #include "qapi/qmp/json-parser.h"
#include <qom/object_interfaces.h> #include "qom/object_interfaces.h"
#include "cpu.h" #include "cpu.h"
#include "trace.h" #include "trace.h"
#include "trace/control.h" #include "trace/control.h"

View File

@ -13,8 +13,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "vss-common.h" #include "vss-common.h"
#include "inc/win2003/vscoordint.h" #include <inc/win2003/vscoordint.h>
#include <comadmin.h> #include <comadmin.h>
#include <wbemidl.h> #include <wbemidl.h>
#include <comdef.h> #include <comdef.h>

View File

@ -12,8 +12,8 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "vss-common.h" #include "vss-common.h"
#include "inc/win2003/vscoordint.h" #include <inc/win2003/vscoordint.h>
#include "inc/win2003/vsprov.h" #include <inc/win2003/vsprov.h>
#define VSS_TIMEOUT_MSEC (60*1000) #define VSS_TIMEOUT_MSEC (60*1000)

View File

@ -13,8 +13,8 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "vss-common.h" #include "vss-common.h"
#include "requester.h" #include "requester.h"
#include "inc/win2003/vswriter.h" #include <inc/win2003/vswriter.h>
#include "inc/win2003/vsbackup.h" #include <inc/win2003/vsbackup.h>
/* Max wait time for frozen event (VSS can only hold writes for 10 seconds) */ /* Max wait time for frozen event (VSS can only hold writes for 10 seconds) */
#define VSS_TIMEOUT_FREEZE_MSEC 10000 #define VSS_TIMEOUT_FREEZE_MSEC 10000

View File

@ -50,7 +50,7 @@
* VSS headers must be installed from Microsoft VSS SDK 7.2 available at: * VSS headers must be installed from Microsoft VSS SDK 7.2 available at:
* http://www.microsoft.com/en-us/download/details.aspx?id=23490 * http://www.microsoft.com/en-us/download/details.aspx?id=23490
*/ */
#include "inc/win2003/vss.h" #include <inc/win2003/vss.h>
/* Macros to convert char definitions to wchar */ /* Macros to convert char definitions to wchar */
#define _L(a) L##a #define _L(a) L##a

View File

@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#if defined(_WIN32) #if defined(_WIN32)
/* Windows ntohl() returns an u_long value. /* Windows ntohl() returns an u_long value.

View File

@ -31,7 +31,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
/* /*
* Checksum routine for Internet Protocol family headers (Portable Version). * Checksum routine for Internet Protocol family headers (Portable Version).

View File

@ -6,7 +6,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#include "qemu/timer.h" #include "qemu/timer.h"
static void static void

View File

@ -39,7 +39,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#include "ip_icmp.h" #include "ip_icmp.h"
static struct ip *ip_reass(Slirp *slirp, struct ip *ip, struct ipq *fp); static struct ip *ip_reass(Slirp *slirp, struct ip *ip, struct ipq *fp);

View File

@ -39,7 +39,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
/* Number of packets queued before we start sending /* Number of packets queued before we start sending
* (to prevent allocing too many mbufs) */ * (to prevent allocing too many mbufs) */

View File

@ -16,7 +16,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#define MBUF_THRESH 30 #define MBUF_THRESH 30

View File

@ -6,9 +6,8 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#include <libslirp.h> #include "libslirp.h"
#include "monitor/monitor.h" #include "monitor/monitor.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qemu/main-loop.h" #include "qemu/main-loop.h"

View File

@ -6,8 +6,8 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#include <qemu/main-loop.h> #include "qemu/main-loop.h"
static void sbappendsb(struct sbuf *sb, struct mbuf *m); static void sbappendsb(struct sbuf *sb, struct mbuf *m);

View File

@ -7,7 +7,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include <slirp.h> #include "slirp.h"
#include "ip_icmp.h" #include "ip_icmp.h"
#ifdef __sun__ #ifdef __sun__
#include <sys/filio.h> #include <sys/filio.h>

View File

@ -39,7 +39,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#include "ip_icmp.h" #include "ip_icmp.h"
#define TCPREXMTTHRESH 3 #define TCPREXMTTHRESH 3

View File

@ -39,7 +39,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
static const u_char tcp_outflags[TCP_NSTATES] = { static const u_char tcp_outflags[TCP_NSTATES] = {
TH_RST|TH_ACK, 0, TH_SYN, TH_SYN|TH_ACK, TH_RST|TH_ACK, 0, TH_SYN, TH_SYN|TH_ACK,

View File

@ -39,7 +39,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
/* patchable/settable parameters for tcp */ /* patchable/settable parameters for tcp */
/* Don't do rfc1323 performance enhancements */ /* Don't do rfc1323 performance enhancements */

View File

@ -31,7 +31,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer); static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer);

View File

@ -23,7 +23,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"

View File

@ -39,7 +39,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <slirp.h> #include "slirp.h"
#include "ip_icmp.h" #include "ip_icmp.h"
static uint8_t udp_tos(struct socket *so); static uint8_t udp_tos(struct socket *so);

View File

@ -9,8 +9,8 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <cpu.h> #include "cpu.h"
#include <cpu-qom.h> #include "cpu-qom.h"
#include "internals.h" #include "internals.h"
#include "arm-powerctl.h" #include "arm-powerctl.h"
#include "qemu/log.h" #include "qemu/log.h"

View File

@ -16,10 +16,10 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <cpu.h> #include "cpu.h"
#include <exec/helper-proto.h> #include "exec/helper-proto.h"
#include <kvm-consts.h> #include "kvm-consts.h"
#include <sysemu/sysemu.h> #include "sysemu/sysemu.h"
#include "internals.h" #include "internals.h"
#include "arm-powerctl.h" #include "arm-powerctl.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"

View File

@ -21,7 +21,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "disas/bfd.h" #include "disas/bfd.h"
#include "exec/gdbstub.h" #include "exec/gdbstub.h"
#include <sysemu/kvm.h> #include "sysemu/kvm.h"
#include "kvm_ppc.h" #include "kvm_ppc.h"
#include "sysemu/arch_init.h" #include "sysemu/arch_init.h"
#include "sysemu/cpus.h" #include "sysemu/cpus.h"

View File

@ -219,7 +219,7 @@ int s390_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg);
void s390_cpu_gdb_init(CPUState *cs); void s390_cpu_gdb_init(CPUState *cs);
void s390x_cpu_debug_excp_handler(CPUState *cs); void s390x_cpu_debug_excp_handler(CPUState *cs);
#include <sysemu/kvm.h> #include "sysemu/kvm.h"
/* distinguish between 24 bit and 31 bit addressing */ /* distinguish between 24 bit and 31 bit addressing */
#define HIGH_ORDER_BIT 0x80000000 #define HIGH_ORDER_BIT 0x80000000

View File

@ -13,7 +13,7 @@
#endif #endif
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <cpu.h> #include "cpu.h"
#include "exec/exec-all.h" #include "exec/exec-all.h"
#undef DEBUG_UC32 #undef DEBUG_UC32

View File

@ -15,11 +15,10 @@
#include "libqtest.h" #include "libqtest.h"
#include "qemu/option.h" #include "qemu/option.h"
#include "qemu/range.h" #include "qemu/range.h"
#include "qemu/sockets.h"
#include "sysemu/char.h" #include "sysemu/char.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include <qemu/sockets.h>
const unsigned start_address = 1024 * 1024; const unsigned start_address = 1024 * 1024;
const unsigned end_address = 100 * 1024 * 1024; const unsigned end_address = 100 * 1024 * 1024;
bool got_stop; bool got_stop;

View File

@ -1,4 +1,4 @@
#include <core-isa.h> #include "core-isa.h"
#if XTENSA_HAVE_BE #if XTENSA_HAVE_BE
OUTPUT_FORMAT("elf32-xtensa-be") OUTPUT_FORMAT("elf32-xtensa-be")

View File

@ -36,8 +36,6 @@
#include <sys/eventfd.h> #include <sys/eventfd.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>
#include <qemu/osdep.h>
#include <linux/vhost.h> #include <linux/vhost.h>
#include "qemu/atomic.h" #include "qemu/atomic.h"

View File

@ -13,12 +13,12 @@
#include "libqtest.h" #include "libqtest.h"
#include "qemu/option.h" #include "qemu/option.h"
#include "qemu/range.h" #include "qemu/range.h"
#include "qemu/sockets.h"
#include "sysemu/char.h" #include "sysemu/char.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include <linux/vhost.h> #include <linux/vhost.h>
#include <sys/vfs.h> #include <sys/vfs.h>
#include <qemu/sockets.h>
/* GLIB version compatibility flags */ /* GLIB version compatibility flags */
#if !GLIB_CHECK_VERSION(2, 26, 0) #if !GLIB_CHECK_VERSION(2, 26, 0)

View File

@ -9,8 +9,9 @@
* This work is licensed under the terms of the GNU GPL, version 2 or * This work is licensed under the terms of the GNU GPL, version 2 or
* later. See the COPYING file in the top-level directory. * later. See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <qemu/mmap-alloc.h> #include "qemu/mmap-alloc.h"
#define HUGETLBFS_MAGIC 0x958458f6 #define HUGETLBFS_MAGIC 0x958458f6

View File

@ -48,7 +48,7 @@
#include <sys/sysctl.h> #include <sys/sysctl.h>
#endif #endif
#include <qemu/mmap-alloc.h> #include "qemu/mmap-alloc.h"
int qemu_get_thread_id(void) int qemu_get_thread_id(void)
{ {