On 03/04/2012 02:32 PM, Andreas Färber wrote:
Hello Anthony,
This series prepares for QOM'ification of CPUs and machines by rearranging
constructor calls and Makefile dependency rules. I've separated it out due
to complaints about patch series length for conversion of all targets.
Patch 1 is a RESEND that avoids an abort after patch 2.
Patch 2 rearranges module init for QOM in the system emulators, so that
objects can really be used beyond devices.
Patch 3 adds QOM support to the user emulators. As required by Anthony,
they are now only built once.
Available at:
http://repo.or.cz/w/qemu/afaerber.git/shortlog/refs/heads/qom-user.v4
Applied. Thanks.
Regards,
Anthony Liguori
Regards,
Andreas
Cc: Anthony Liguori<anth...@codemonkey.ws>
Cc: Avi Kivity<a...@redhat.com>
v3 -> v4:
* Fix kvmclock abort due to too early kvm_enabled() check.
* Introduce $(universal-obj-y) to build some objects only once.
* Fix GPLv2 license link.
v2 -> v3:
* Rebased against qom-upstream.14 branch (and that against master).
* Build common dependencies for user emulators in libuser/.
* New dependencies needed after moving properties into object.c.
* Add a qemu-user.c with stubs needed for successful linking.
v1 -> v2:
* Don't introduce extra early_init(), just relocate former MODULE_INIT_DEVICE.
* Provide new type_init() macro to be used instead of device_init().
Andreas Färber (3):
kvmclock: Always register type
qom: Register QOM infrastructure early
qom: Add QOM support to user emulators
Makefile | 6 +++---
Makefile.objs | 23 ++++++++++++++++++-----
Makefile.target | 4 ++++
Makefile.user | 1 +
bsd-user/main.c | 2 ++
darwin-user/main.c | 3 +++
hw/kvm/clock.c | 2 --
linux-user/main.c | 2 ++
qemu-user.c | 37 +++++++++++++++++++++++++++++++++++++
vl.c | 4 ++--
10 files changed, 72 insertions(+), 12 deletions(-)
create mode 100644 qemu-user.c