qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups
@ 2012-11-22 17:27 Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 1/8] user: Move *-user/qemu-types.h to main directory Eduardo Habkost
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

Hi,

These are the remaining header cleanups that didn't enter the tree yet. They
should help breaking some circular header dependencies involving qemu-common.h.

Basically they were reordered by Igor to keep the tree bisectable, and some
changes were made on the qga/channel-posix.c patch to eliminate the
qemu-common.h dependency.

Eduardo Habkost (8):
  user: Move *-user/qemu-types.h to main directory
  user: Rename qemu-types.h to qemu-user-types.h
  ui/vnc-palette.c: Include headers it needs
  qapi/qmp-registry.c: Include headers it needs
  qga/channel-posix.c: Include headers it needs
  qlist.h: do not include qemu-common.h
  create qemu-types.h for struct typedefs
  sysemu.h: include qemu-types.h instead of qemu-common.h

 bsd-user/qemu-types.h                        | 24 -----------
 bsd-user/qemu.h                              |  2 +-
 cpu-all.h                                    |  2 +-
 hw/qdev-core.h                               | 11 +----
 linux-user/qemu.h                            |  2 +-
 qapi/qmp-registry.c                          |  2 +
 qemu-common.h                                | 52 +-----------------------
 qemu-types.h                                 | 61 ++++++++++++++++++++++++++++
 linux-user/qemu-types.h => qemu-user-types.h |  0
 qga/channel-posix.c                          |  5 +++
 qlist.h                                      |  1 -
 sysemu.h                                     |  2 +-
 ui/vnc-palette.c                             |  2 +
 13 files changed, 76 insertions(+), 90 deletions(-)
 delete mode 100644 bsd-user/qemu-types.h
 create mode 100644 qemu-types.h
 rename linux-user/qemu-types.h => qemu-user-types.h (100%)

-- 
1.7.11.7

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 1/8] user: Move *-user/qemu-types.h to main directory
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 2/8] user: Rename qemu-types.h to qemu-user-types.h Eduardo Habkost
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

The bsd-user/qemu-types.h and linux-user/qemu-types.h files are almost
the same, but linux-user has the additional definitions of tswapal().

This moves the linux-user file to the main directory, so the same file
can be used by linux-user and bsd-user.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 bsd-user/qemu-types.h                   | 24 ------------------------
 linux-user/qemu-types.h => qemu-types.h |  0
 2 files changed, 24 deletions(-)
 delete mode 100644 bsd-user/qemu-types.h
 rename linux-user/qemu-types.h => qemu-types.h (100%)

diff --git a/bsd-user/qemu-types.h b/bsd-user/qemu-types.h
deleted file mode 100644
index 1adda9f..0000000
--- a/bsd-user/qemu-types.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef QEMU_TYPES_H
-#define QEMU_TYPES_H
-#include "cpu.h"
-
-#ifdef TARGET_ABI32
-typedef uint32_t abi_ulong;
-typedef int32_t abi_long;
-#define TARGET_ABI_FMT_lx "%08x"
-#define TARGET_ABI_FMT_ld "%d"
-#define TARGET_ABI_FMT_lu "%u"
-#define TARGET_ABI_BITS 32
-#else
-typedef target_ulong abi_ulong;
-typedef target_long abi_long;
-#define TARGET_ABI_FMT_lx TARGET_FMT_lx
-#define TARGET_ABI_FMT_ld TARGET_FMT_ld
-#define TARGET_ABI_FMT_lu TARGET_FMT_lu
-#define TARGET_ABI_BITS TARGET_LONG_BITS
-/* for consistency, define ABI32 too */
-#if TARGET_ABI_BITS == 32
-#define TARGET_ABI32 1
-#endif
-#endif
-#endif
diff --git a/linux-user/qemu-types.h b/qemu-types.h
similarity index 100%
rename from linux-user/qemu-types.h
rename to qemu-types.h
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 2/8] user: Rename qemu-types.h to qemu-user-types.h
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 1/8] user: Move *-user/qemu-types.h to main directory Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 3/8] ui/vnc-palette.c: Include headers it needs Eduardo Habkost
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

The header file is specific for *-user, but I plan to introduce a more
generic qemu-types.h file, so I'm renaming it.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 bsd-user/qemu.h                   | 2 +-
 cpu-all.h                         | 2 +-
 linux-user/qemu.h                 | 2 +-
 qemu-types.h => qemu-user-types.h | 0
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename qemu-types.h => qemu-user-types.h (100%)

diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 8a5ee3d..d268899 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -11,7 +11,7 @@
 #include <stdlib.h>
 #endif /* DEBUG_REMAP */
 
-#include "qemu-types.h"
+#include "qemu-user-types.h"
 
 enum BSDType {
     target_freebsd,
diff --git a/cpu-all.h b/cpu-all.h
index c9c51b8..d6b2b19 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -180,7 +180,7 @@ static inline void tswap64s(uint64_t *s)
 
 #if defined(CONFIG_USER_ONLY)
 #include <assert.h>
-#include "qemu-types.h"
+#include "qemu-user-types.h"
 
 /* On some host systems the guest address space is reserved on the host.
  * This allows the guest address space to be offset to a convenient location.
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 5e53dca..ceddb3c 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -11,7 +11,7 @@
 #include <stdlib.h>
 #endif /* DEBUG_REMAP */
 
-#include "qemu-types.h"
+#include "qemu-user-types.h"
 
 #include "thunk.h"
 #include "syscall_defs.h"
diff --git a/qemu-types.h b/qemu-user-types.h
similarity index 100%
rename from qemu-types.h
rename to qemu-user-types.h
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 3/8] ui/vnc-palette.c: Include headers it needs
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 1/8] user: Move *-user/qemu-types.h to main directory Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 2/8] user: Rename qemu-types.h to qemu-user-types.h Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 4/8] qapi/qmp-registry.c: " Eduardo Habkost
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

Include:
 - <glib.h> for g_malloc0()
 - <string.h> for memset()

Some of those headers were probably being included by accident because
some other headers were including qemu-common.h, but those headers
should eventually stop including qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 ui/vnc-palette.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c
index 63d5f64..c130dee 100644
--- a/ui/vnc-palette.c
+++ b/ui/vnc-palette.c
@@ -27,6 +27,8 @@
  */
 
 #include "vnc-palette.h"
+#include <glib.h>
+#include <string.h>
 
 static VncPaletteEntry *palette_find(const VncPalette *palette,
                                      uint32_t color, unsigned int hash)
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 4/8] qapi/qmp-registry.c: Include headers it needs
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
                   ` (2 preceding siblings ...)
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 3/8] ui/vnc-palette.c: Include headers it needs Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 5/8] qga/channel-posix.c: " Eduardo Habkost
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

Include:
- <glib.h> for g_malloc0()
- <string.h> for strcmp()

Some of those headers were probably being included by accident because
some other headers were including qemu-common.h, but those headers
should eventually stop including qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 qapi/qmp-registry.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/qapi/qmp-registry.c b/qapi/qmp-registry.c
index 5414613..c2c31b4 100644
--- a/qapi/qmp-registry.c
+++ b/qapi/qmp-registry.c
@@ -12,6 +12,8 @@
  *
  */
 
+#include <glib.h>
+#include <string.h>
 #include "qapi/qmp-core.h"
 
 static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 5/8] qga/channel-posix.c: Include headers it needs
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
                   ` (3 preceding siblings ...)
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 4/8] qapi/qmp-registry.c: " Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 6/8] qlist.h: do not include qemu-common.h Eduardo Habkost
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

Include:
 - <errno.h> for errno
 - <unistd.h> & <fcntl.h> for fcntl()
 - "osdep.h" for qemu_open()
 - <stdlib.h> for exit()

Some of those headers were probably being included by accident because
some other headers were including qemu-common.h, but those headers
should eventually stop including qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
  v2:
     qemu-common.h indirectly provided definition for exit(),
     so when replacing it with "osdep.h" add explicitly <stdlib.h>
     for exit()
---
 qga/channel-posix.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/qga/channel-posix.c b/qga/channel-posix.c
index d152827..769a559 100644
--- a/qga/channel-posix.c
+++ b/qga/channel-posix.c
@@ -1,5 +1,10 @@
 #include <glib.h>
 #include <termios.h>
+#include <errno.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include "osdep.h"
 #include "qemu_socket.h"
 #include "qga/channel.h"
 
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 6/8] qlist.h: do not include qemu-common.h
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
                   ` (4 preceding siblings ...)
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 5/8] qga/channel-posix.c: " Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 7/8] create qemu-types.h for struct typedefs Eduardo Habkost
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

I don't know why it was including it, as I don't see any code that
depends on anything from qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qlist.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/qlist.h b/qlist.h
index ae776f9..7408947 100644
--- a/qlist.h
+++ b/qlist.h
@@ -15,7 +15,6 @@
 
 #include "qobject.h"
 #include "qemu-queue.h"
-#include "qemu-common.h"
 #include "qemu-queue.h"
 
 typedef struct QListEntry {
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 7/8] create qemu-types.h for struct typedefs
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
                   ` (5 preceding siblings ...)
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 6/8] qlist.h: do not include qemu-common.h Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 8/8] sysemu.h: include qemu-types.h instead of qemu-common.h Eduardo Habkost
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

Instead of keeping all those struct typedefs on qemu-common.h, move it
to a header that can be safely included by other headers, containing
only the struct typedefs and not pulling other dependencies.

Also, move some of the qdev-core.h typedefs to the new file, too, so
other headers don't need to include qdev-core.h only because of
DeviceState and other typedefs.

This will help us remove qemu-common.h dependencies from some headers
later.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 hw/qdev-core.h | 11 +----------
 qemu-common.h  | 52 +------------------------------------------------
 qemu-types.h   | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+), 61 deletions(-)
 create mode 100644 qemu-types.h

diff --git a/hw/qdev-core.h b/hw/qdev-core.h
index fce9e22..494b687 100644
--- a/hw/qdev-core.h
+++ b/hw/qdev-core.h
@@ -3,20 +3,11 @@
 
 #include "qemu-queue.h"
 #include "qemu-option.h"
+#include "qemu-types.h"
 #include "qemu/object.h"
 #include "hw/irq.h"
 #include "error.h"
 
-typedef struct Property Property;
-
-typedef struct PropertyInfo PropertyInfo;
-
-typedef struct CompatProperty CompatProperty;
-
-typedef struct BusState BusState;
-
-typedef struct BusClass BusClass;
-
 enum DevState {
     DEV_STATE_CREATED = 1,
     DEV_STATE_INITIALIZED,
diff --git a/qemu-common.h b/qemu-common.h
index cef264c..e674786 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -14,6 +14,7 @@
 
 #include "compiler.h"
 #include "config-host.h"
+#include "qemu-types.h"
 
 #if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__) || defined(__ia64__)
 #define WORDS_ALIGNED
@@ -21,15 +22,6 @@
 
 #define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
 
-typedef struct QEMUTimer QEMUTimer;
-typedef struct QEMUFile QEMUFile;
-typedef struct QEMUBH QEMUBH;
-typedef struct DeviceState DeviceState;
-
-struct Monitor;
-typedef struct Monitor Monitor;
-typedef struct MigrationParams MigrationParams;
-
 /* we put basic includes here to avoid repeating them in device drivers */
 #include <stdlib.h>
 #include <stdio.h>
@@ -258,48 +250,6 @@ struct ParallelIOArg {
 
 typedef int (*DMA_transfer_handler) (void *opaque, int nchan, int pos, int size);
 
-/* A load of opaque types so that device init declarations don't have to
-   pull in all the real definitions.  */
-typedef struct NICInfo NICInfo;
-typedef struct HCIInfo HCIInfo;
-typedef struct AudioState AudioState;
-typedef struct BlockDriverState BlockDriverState;
-typedef struct DriveInfo DriveInfo;
-typedef struct DisplayState DisplayState;
-typedef struct DisplayChangeListener DisplayChangeListener;
-typedef struct DisplaySurface DisplaySurface;
-typedef struct PixelFormat PixelFormat;
-typedef struct QemuConsole QemuConsole;
-typedef struct CharDriverState CharDriverState;
-typedef struct MACAddr MACAddr;
-typedef struct NetClientState NetClientState;
-typedef struct i2c_bus i2c_bus;
-typedef struct ISABus ISABus;
-typedef struct ISADevice ISADevice;
-typedef struct SMBusDevice SMBusDevice;
-typedef struct PCIHostState PCIHostState;
-typedef struct PCIExpressHost PCIExpressHost;
-typedef struct PCIBus PCIBus;
-typedef struct PCIDevice PCIDevice;
-typedef struct PCIExpressDevice PCIExpressDevice;
-typedef struct PCIBridge PCIBridge;
-typedef struct PCIEAERMsg PCIEAERMsg;
-typedef struct PCIEAERLog PCIEAERLog;
-typedef struct PCIEAERErr PCIEAERErr;
-typedef struct PCIEPort PCIEPort;
-typedef struct PCIESlot PCIESlot;
-typedef struct MSIMessage MSIMessage;
-typedef struct SerialState SerialState;
-typedef struct PCMCIACardState PCMCIACardState;
-typedef struct MouseTransformInfo MouseTransformInfo;
-typedef struct uWireSlave uWireSlave;
-typedef struct I2SCodec I2SCodec;
-typedef struct SSIBus SSIBus;
-typedef struct EventNotifier EventNotifier;
-typedef struct VirtIODevice VirtIODevice;
-typedef struct QEMUSGList QEMUSGList;
-typedef struct SHPCDevice SHPCDevice;
-
 typedef uint64_t pcibus_t;
 
 typedef enum LostTickPolicy {
diff --git a/qemu-types.h b/qemu-types.h
new file mode 100644
index 0000000..fd532a2
--- /dev/null
+++ b/qemu-types.h
@@ -0,0 +1,61 @@
+#ifndef QEMU_TYPEDEFS_H
+#define QEMU_TYPEDEFS_H
+
+/* A load of opaque types so that device init declarations don't have to
+   pull in all the real definitions.  */
+typedef struct QEMUTimer QEMUTimer;
+typedef struct QEMUFile QEMUFile;
+typedef struct QEMUBH QEMUBH;
+
+struct Monitor;
+typedef struct Monitor Monitor;
+typedef struct MigrationParams MigrationParams;
+
+typedef struct Property Property;
+typedef struct PropertyInfo PropertyInfo;
+typedef struct CompatProperty CompatProperty;
+typedef struct DeviceState DeviceState;
+typedef struct BusState BusState;
+typedef struct BusClass BusClass;
+
+typedef struct NICInfo NICInfo;
+typedef struct HCIInfo HCIInfo;
+typedef struct AudioState AudioState;
+typedef struct BlockDriverState BlockDriverState;
+typedef struct DriveInfo DriveInfo;
+typedef struct DisplayState DisplayState;
+typedef struct DisplayChangeListener DisplayChangeListener;
+typedef struct DisplaySurface DisplaySurface;
+typedef struct PixelFormat PixelFormat;
+typedef struct QemuConsole QemuConsole;
+typedef struct CharDriverState CharDriverState;
+typedef struct MACAddr MACAddr;
+typedef struct NetClientState NetClientState;
+typedef struct i2c_bus i2c_bus;
+typedef struct ISABus ISABus;
+typedef struct ISADevice ISADevice;
+typedef struct SMBusDevice SMBusDevice;
+typedef struct PCIHostState PCIHostState;
+typedef struct PCIExpressHost PCIExpressHost;
+typedef struct PCIBus PCIBus;
+typedef struct PCIDevice PCIDevice;
+typedef struct PCIExpressDevice PCIExpressDevice;
+typedef struct PCIBridge PCIBridge;
+typedef struct PCIEAERMsg PCIEAERMsg;
+typedef struct PCIEAERLog PCIEAERLog;
+typedef struct PCIEAERErr PCIEAERErr;
+typedef struct PCIEPort PCIEPort;
+typedef struct PCIESlot PCIESlot;
+typedef struct MSIMessage MSIMessage;
+typedef struct SerialState SerialState;
+typedef struct PCMCIACardState PCMCIACardState;
+typedef struct MouseTransformInfo MouseTransformInfo;
+typedef struct uWireSlave uWireSlave;
+typedef struct I2SCodec I2SCodec;
+typedef struct SSIBus SSIBus;
+typedef struct EventNotifier EventNotifier;
+typedef struct VirtIODevice VirtIODevice;
+typedef struct QEMUSGList QEMUSGList;
+typedef struct SHPCDevice SHPCDevice;
+
+#endif /* QEMU_TYPEDEFS_H */
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Qemu-devel] [PATCH 8/8] sysemu.h: include qemu-types.h instead of qemu-common.h
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
                   ` (6 preceding siblings ...)
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 7/8] create qemu-types.h for struct typedefs Eduardo Habkost
@ 2012-11-22 17:27 ` Eduardo Habkost
  2012-11-26 19:44 ` [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Andreas Färber
  2012-11-30 20:53 ` Andreas Färber
  9 siblings, 0 replies; 13+ messages in thread
From: Eduardo Habkost @ 2012-11-22 17:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Andreas Färber

It just needs the Monitor and DeviceState typedefs, so it doesn't need
all of qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 sysemu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysemu.h b/sysemu.h
index f5ac664..ab1ef8b 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -2,7 +2,7 @@
 #define SYSEMU_H
 /* Misc. things related to the system emulator.  */
 
-#include "qemu-common.h"
+#include "qemu-types.h"
 #include "qemu-option.h"
 #include "qemu-queue.h"
 #include "qemu-timer.h"
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
                   ` (7 preceding siblings ...)
  2012-11-22 17:27 ` [Qemu-devel] [PATCH 8/8] sysemu.h: include qemu-types.h instead of qemu-common.h Eduardo Habkost
@ 2012-11-26 19:44 ` Andreas Färber
  2012-11-30 20:53 ` Andreas Färber
  9 siblings, 0 replies; 13+ messages in thread
From: Andreas Färber @ 2012-11-26 19:44 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: Igor Mammedov, qemu-devel

Hi,

Am 22.11.2012 18:27, schrieb Eduardo Habkost:
> These are the remaining header cleanups that didn't enter the tree yet. They
> should help breaking some circular header dependencies involving qemu-common.h.
> 
> Basically they were reordered by Igor to keep the tree bisectable, and some
> changes were made on the qga/channel-posix.c patch to eliminate the
> qemu-common.h dependency.
> 
> Eduardo Habkost (8):
>   user: Move *-user/qemu-types.h to main directory
>   user: Rename qemu-types.h to qemu-user-types.h
>   ui/vnc-palette.c: Include headers it needs
>   qapi/qmp-registry.c: Include headers it needs

Patches 1-4 seem to match exactly what I had previously queued for 1.3.
Thanks, merged them into qom-cpu:
https://github.com/afaerber/qemu-cpu/commits/qom-cpu

I'll continue reviewing the changed parts later today.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups
  2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
                   ` (8 preceding siblings ...)
  2012-11-26 19:44 ` [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Andreas Färber
@ 2012-11-30 20:53 ` Andreas Färber
  2012-12-04  8:50   ` Paolo Bonzini
  9 siblings, 1 reply; 13+ messages in thread
From: Andreas Färber @ 2012-11-30 20:53 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: Igor Mammedov, qemu-devel

Am 22.11.2012 18:27, schrieb Eduardo Habkost:
> These are the remaining header cleanups that didn't enter the tree yet. They
> should help breaking some circular header dependencies involving qemu-common.h.
> 
> Basically they were reordered by Igor to keep the tree bisectable, and some
> changes were made on the qga/channel-posix.c patch to eliminate the
> qemu-common.h dependency.
> 
> Eduardo Habkost (8):
>   user: Move *-user/qemu-types.h to main directory
>   user: Rename qemu-types.h to qemu-user-types.h
>   ui/vnc-palette.c: Include headers it needs
>   qapi/qmp-registry.c: Include headers it needs
>   qga/channel-posix.c: Include headers it needs
>   qlist.h: do not include qemu-common.h
>   create qemu-types.h for struct typedefs
>   sysemu.h: include qemu-types.h instead of qemu-common.h

Thanks, applied the remaining patches to qom-cpu:
https://github.com/afaerber/qemu-cpu/commits/qom-cpu

I had already re-verified that qemu-types.h didn't loose anything but
didn't push until now. Sorry.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups
  2012-11-30 20:53 ` Andreas Färber
@ 2012-12-04  8:50   ` Paolo Bonzini
  2012-12-04 13:52     ` Andreas Färber
  0 siblings, 1 reply; 13+ messages in thread
From: Paolo Bonzini @ 2012-12-04  8:50 UTC (permalink / raw)
  To: Andreas Färber; +Cc: Igor Mammedov, Eduardo Habkost, qemu-devel

Il 30/11/2012 21:53, Andreas Färber ha scritto:
> Thanks, applied the remaining patches to qom-cpu:
> https://github.com/afaerber/qemu-cpu/commits/qom-cpu
> 
> I had already re-verified that qemu-types.h didn't loose anything but
> didn't push until now. Sorry.

Hi Andreas,

I would like to get the header file renaming in as soon as possible, can
you make a pull request of this for me to rebase onto?

Paolo

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups
  2012-12-04  8:50   ` Paolo Bonzini
@ 2012-12-04 13:52     ` Andreas Färber
  0 siblings, 0 replies; 13+ messages in thread
From: Andreas Färber @ 2012-12-04 13:52 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Igor Mammedov, Eduardo Habkost, qemu-devel

Hi Paolo,

Am 04.12.2012 09:50, schrieb Paolo Bonzini:
> Il 30/11/2012 21:53, Andreas Färber ha scritto:
>> Thanks, applied the remaining patches to qom-cpu:
>> https://github.com/afaerber/qemu-cpu/commits/qom-cpu
>>
>> I had already re-verified that qemu-types.h didn't loose anything but
>> didn't push until now. Sorry.
> 
> Hi Andreas,
> 
> I would like to get the header file renaming in as soon as possible, can
> you make a pull request of this for me to rebase onto?

I have one or two patches ready to add to that, then I'll flush it!

And I was about to ask you: Do you have a tree ready that I could rebase
my QOM realize / ISA work on?

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-12-04 13:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 17:27 [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 1/8] user: Move *-user/qemu-types.h to main directory Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 2/8] user: Rename qemu-types.h to qemu-user-types.h Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 3/8] ui/vnc-palette.c: Include headers it needs Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 4/8] qapi/qmp-registry.c: " Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 5/8] qga/channel-posix.c: " Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 6/8] qlist.h: do not include qemu-common.h Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 7/8] create qemu-types.h for struct typedefs Eduardo Habkost
2012-11-22 17:27 ` [Qemu-devel] [PATCH 8/8] sysemu.h: include qemu-types.h instead of qemu-common.h Eduardo Habkost
2012-11-26 19:44 ` [Qemu-devel] [PATCH 0/8] qemu-common.h header cleanups Andreas Färber
2012-11-30 20:53 ` Andreas Färber
2012-12-04  8:50   ` Paolo Bonzini
2012-12-04 13:52     ` Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).