Skip to content

CPU DeviceState v6

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 1 replyIn review

v5 from the cover letter

- Tons of header cleanups just to eliminate qlist.h <-> cpu-common.h circular dependency (patches 1-17)
- Add copyright/license information to qdev-properties.c (patch 17)
- Add copyright/license information to qdev-properties-system.c (patch 22)
- use error_report()+abort() instead of hw_error() on qdev.c (patch 18)
- Move qemu_[un]register_reset() and qemu_devices_reset() to qdev-core.c (patch 19)
- Make vmstate_[un]register() weak stubs, instead of a new function (patch 20)
- Make sysbus_get_default() weak stub, instead of new qbus reset (un)register functions (patch 21)
- Eliminate qdev-system.c (all code is kept on qdev.c, now) (patch 22)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24user: move *-user/qemu-types.h to main directorybsd-user/qemu-types.h qemu-types.h+0 -240 replies
2/24user: rename qemu-types.h to qemu-user-types.hbsd-user/qemu.h cpu-all.h linux-user/qemu.h +1 more+3 -30 replies
3/24qemu-common.h: comment about usage rulesqemu-common.h+10 -10 replies
4/24move qemu_irq typedef out of cpu-common.hhw/arm-misc.h hw/bt.h hw/devices.h +5 more+10 -10 replies
5/24qdev: split up header so it can be used in cpu.hhw/mc146818rtc.c hw/qdev-addr.c hw/qdev-core.h +5 more+392 -3660 replies
6/24move I/O-related definitions from qemu-common.h to a new header (qemu-stdio.h)qemu-common.h qemu-stdio.h+78 -570 replies
7/24qemu-fsdev-dummy.c: include module.hfsdev/qemu-fsdev-dummy.c+1 -00 replies
8/24vnc-palette.h: include <stdbool.h>ui/vnc-palette.h+1 -00 replies
9/24ui/vnc-pallete.c: include headers it needsui/vnc-palette.c+2 -00 replies
10/24qemu-config.h: include headers it needsqemu-config.h+2 -00 replies
11/24qapi/qmp-registry.c: include headers it needsqapi/qmp-registry.c+2 -00 replies
12/24qga/channel-posix.c: include headers it needsqga/channel-posix.c+4 -00 replies
13/24create qemu-types.h for struct typedefshw/qdev-core.h qemu-common.h qemu-types.h+63 -610 replies
14/24sysemu.h: include qemu-types.h instead of qemu-common.hsysemu.h+1 -10 replies
15/24qlist.h: do not include qemu-common.hqlist.h+0 -10 replies
16/24qapi-types.h: don't include qemu-common.hscripts/qapi-types.py+2 -10 replies
17/24qdev-properties.c: add copyright/license informationhw/qdev-properties.c+30 -00 replies
18/24qdev: qdev_create(): use error_report() instead of hw_error()hw/qdev.c+5 -30 replies
19/24qdev: move reset handler list from vl.c to qdev.chw/hw.h hw/qdev-reset.h hw/qdev.c +3 more+54 -460 replies
20/24qdev: add stub vmstate handling to qdev.chw/qdev.c vmstate.h+25 -21 reply
21/24qdev: add sysbus_get_default() GCC_WEAK stubhw/qdev-core.h hw/qdev.c+13 -10 replies
22/24qdev-properties.c: separate core from the code used only by qemu-system-*hw/Makefile.objs hw/qdev-properties-system.c hw/qdev-properties.c +2 more+374 -3330 replies
23/24include qdev code into *-user, tooMakefile.objs hw/Makefile.objs+14 -20 replies
24/24qom: make CPU a child of DeviceStateinclude/qemu/cpu.h qom/cpu.c+5 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/24] CPU DeviceState v6

Changes on v6:
- Simple rebase against latest qemu.git master
- Patch 13: some new typedefs were added and others were removed
- Patch 19: trivial rebase

v5:
- Tons of header cleanups just to eliminate qlist.h <-> cpu-common.h circular dependency (patches 1-17)
- Add copyright/license information to qdev-properties.c (patch 17)
- Add copyright/license information to qdev-properties-system.c (patch 22)
- use error_report()+abort() instead of hw_error() on qdev.c (patch 18)
- Move qemu_[un]register_reset() and qemu_devices_reset() to qdev-core.c (patch 19)
- Make vmstate_[un]register() weak stubs, instead of a new function (patch 20)
- Make sysbus_get_default() weak stub, instead of new qbus reset (un)register functions (patch 21)
- Eliminate qdev-system.c (all code is kept on qdev.c, now) (patch 22)

v4:
- Add GCC_WEAK_DECL to functions that have GCC_WEAK versions
- Updated the qdev_init_gpio_in() code on qdev-system.c to current version
- Patch description updates (moved changelog below "---" and/or move info about changes made by different authors between SoB lines)
v3 (submitted by Igor):
- rebased on top of 8b4a3df (today's master)
- slight code reshuffling in (see commit's changelog)
"qdev: separate core from the code used only by qemu-system-*" "move qemu_irq typedef out of cpu-common.h"
- commit messages cleanup
v2:
Rremoves the CONFIG_USER_ONLY ifdefs, and use weak symbols to move the vmstate and qemu_register_reset() handling to qdev-system.c

git tree for testing:
https://github.com/ehabkost/qemu-hacks/tree/cpu_qdev.v5

References to previous versions:
v5: http://article.gmane.org/gmane.comp.emulators.qemu/177426
v4: http://article.gmane.org/gmane.comp.emulators.qemu/176127
v3: http://article.gmane.org/gmane.comp.emulators.qemu/175980
v2: http://article.gmane.org/gmane.comp.emulators.qemu/173909
v1: http://article.gmane.org/gmane.comp.emulators.qemu/166630

Anthony Liguori (1):
qdev: split up header so it can be used in cpu.h

Eduardo Habkost (20):
user: move *-user/qemu-types.h to main directory
user: rename qemu-types.h to qemu-user-types.h qemu-common.h: comment about usage rules
move I/O-related definitions from qemu-common.h to a new header

    (qemu-stdio.h)

qemu-fsdev-dummy.c: include module.h
vnc-palette.h: include <stdbool.h> ui/vnc-pallete.c: include headers it needs qemu-config.h: include headers it needs qapi/qmp-registry.c: include headers it needs qga/channel-posix.c: include headers it needs create qemu-types.h for struct typedefs
sysemu.h: include qemu-types.h instead of qemu-common.h qlist.h: do not include qemu-common.h qdev-properties.c: add copyright/license information
qdev: qdev_create(): use error_report() instead of hw_error()
qdev: move reset handler list from vl.c to qdev.c
qdev: add stub vmstate handling to qdev.c
qdev: add sysbus_get_default() GCC_WEAK stub qdev-properties.c: separate core from the code used only by
qemu-system-*
include qdev code into *-user, too

Igor Mammedov (3):
move qemu_irq typedef out of cpu-common.h
qapi-types.h: don't include qemu-common.h
qom: make CPU a child of DeviceState

 Makefile.objs                                |   8 +
 bsd-user/qemu-types.h                        |  24 --
 bsd-user/qemu.h                              |   2 +-
 cpu-all.h                                    |   2 +-
 fsdev/qemu-fsdev-dummy.c                     |   1 +
 hw/Makefile.objs                             |   9 +-
 hw/arm-misc.h                                |   1 +
 hw/bt.h                                      |   2 +
 hw/devices.h                                 |   2 +
 hw/hw.h                                      |   6 +-
 hw/irq.h                                     |   2 +
 hw/mc146818rtc.c                             |   1 +
 hw/omap.h                                    |   1 +
 hw/qdev-addr.c                               |   1 +
 hw/qdev-core.h                               | 229 +++++++++++++++++
 hw/qdev-monitor.h                            |  16 ++
 hw/qdev-properties-system.c                  | 371 +++++++++++++++++++++++++++
 hw/qdev-properties.c                         | 352 +++----------------------
 hw/qdev-properties.h                         | 131 ++++++++++
 hw/qdev-reset.h                              |  11 +
 hw/qdev.c                                    |  96 +++++--
 hw/qdev.h                                    | 371 +--------------------------
 hw/soc_dma.h                                 |   1 +
 hw/xen.h                                     |   1 +
 include/qemu/cpu.h                           |   6 +-
 linux-user/qemu.h                            |   2 +-
 qapi/qmp-registry.c                          |   2 +
 qemu-common.h                                | 123 +--------
 qemu-config.h                                |   2 +
 qemu-stdio.h                                 |  76 ++++++
 qemu-types.h                                 |  61 +++++
 linux-user/qemu-types.h => qemu-user-types.h |   0
 qga/channel-posix.c                          |   4 +
 qlist.h                                      |   1 -
 qom/cpu.c                                    |   3 +-
 scripts/qapi-types.py                        |   3 +-
 sysemu.h                                     |   3 +-
 ui/vnc-palette.c                             |   2 +
 ui/vnc-palette.h                             |   1 +
 vl.c                                         |  40 ---
 vmstate.h                                    |   6 +-
 41 files changed, 1080 insertions(+), 896 deletions(-)
 delete mode 100644 bsd-user/qemu-types.h
 create mode 100644 hw/qdev-core.h
 create mode 100644 hw/qdev-monitor.h
 create mode 100644 hw/qdev-properties-system.c
 create mode 100644 hw/qdev-properties.h
 create mode 100644 hw/qdev-reset.h
 create mode 100644 qemu-stdio.h
 create mode 100644 qemu-types.h
 rename linux-user/qemu-types.h => qemu-user-types.h (100%)
Signature · 1 line
1.7.11.4