mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
aio / timers: Untangle include files
include/qemu/timer.h has no need to include main-loop.h and doing so causes an issue for the next patch. Unfortunately various files assume including timers.h will pull in main-loop.h. Untangle this mess. Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
ff83c66ecc
commit
6a1751b7aa
@@ -11,6 +11,7 @@
|
||||
#include "trace.h"
|
||||
#include "qemu/range.h"
|
||||
#include "qemu/thread.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
/* #define DEBUG_IOMMU */
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "hw/ptimer.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qapi/qmp/qerror.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#include "hw/stream.h"
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "qemu-common.h"
|
||||
#include "hw/qdev.h"
|
||||
#include "hw/ptimer.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
/* Common timer implementation. */
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "qemu-common.h"
|
||||
#include "hw/ptimer.h"
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "hw/ptimer.h"
|
||||
|
||||
#include "hw/arm/exynos4210.h"
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "hw/ptimer.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#include "trace.h"
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "hw/ptimer.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm/imx.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#define TYPE_IMX_EPIT "imx.epit"
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "hw/ptimer.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm/imx.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#define TYPE_IMX_GPT "imx.gpt"
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "qemu/timer.h"
|
||||
#include "hw/ptimer.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#define DEFAULT_FREQUENCY (50*1000000)
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/ptimer.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#undef DEBUG_PUV3
|
||||
#include "hw/unicore32/puv3.h"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "hw/hw.h"
|
||||
#include "hw/sh4/sh.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "hw/ptimer.h"
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "hw/ptimer.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "trace.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
/*
|
||||
* Registers of hardware timer in sun4m.
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/ptimer.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#define D(x)
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "hw/pci/pci_ids.h"
|
||||
#include "tpm_tis.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
/*#define DEBUG_TIS */
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "qemu/iov.h"
|
||||
#include "sysemu/dma.h"
|
||||
#include "trace.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
//#define DEBUG
|
||||
//#define DEBUG_DUMP_DATA
|
||||
|
||||
+3
-2
@@ -14,6 +14,7 @@
|
||||
#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"
|
||||
@@ -42,7 +43,7 @@ typedef struct AioHandler AioHandler;
|
||||
typedef void QEMUBHFunc(void *opaque);
|
||||
typedef void IOHandler(void *opaque);
|
||||
|
||||
typedef struct AioContext {
|
||||
struct AioContext {
|
||||
GSource source;
|
||||
|
||||
/* The list of registered AIO handlers */
|
||||
@@ -72,7 +73,7 @@ typedef struct AioContext {
|
||||
|
||||
/* Thread pool for performing work and receiving completion callbacks */
|
||||
struct ThreadPool *thread_pool;
|
||||
} AioContext;
|
||||
};
|
||||
|
||||
/**
|
||||
* aio_context_new: Allocate a new AioContext.
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "monitor/monitor.h"
|
||||
#include "qemu/hbitmap.h"
|
||||
#include "block/snapshot.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#define BLOCK_FLAG_ENCRYPT 1
|
||||
#define BLOCK_FLAG_COMPAT6 4
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#define QEMU_COROUTINE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "qemu/notify.h"
|
||||
|
||||
/* timers */
|
||||
|
||||
@@ -7,6 +7,8 @@ typedef struct QEMUTimer QEMUTimer;
|
||||
typedef struct QEMUFile QEMUFile;
|
||||
typedef struct QEMUBH QEMUBH;
|
||||
|
||||
typedef struct AioContext AioContext;
|
||||
|
||||
struct Monitor;
|
||||
typedef struct Monitor Monitor;
|
||||
typedef struct MigrationParams MigrationParams;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user