Received: from eggs.gnu.org ([208.118.235.92]:50189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeWDp-0006Hp-OK for qemu-devel@nongnu.org; Fri, 30 Nov 2012 14:26:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeWDk-0004I6-IE for qemu-devel@nongnu.org; Fri, 30 Nov 2012 14:26:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeWDj-0004H9-Vt for qemu-devel@nongnu.org; Fri, 30 Nov 2012 14:25:56 -0500 From: Eduardo Habkost Date: Fri, 30 Nov 2012 17:27:12 -0200 Message-Id: <1354303642-4283-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [RFC 00/10] CPU DeviceState v8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori Changes on v8: - Use a simpler copyright header on qdev-properties-system.c - Use the new libqemustub.a mechanism instead of the (now exting) QEMU_WEAK_ALIAS mechanism - Move the reset-handler registration code to a new hw/reset.c file - This is based on afaerber's qom-cpu branch, that has some header cleanup changes. You can get the complete series in a git tree at: https://github.com/ehabkost/qemu-hacks/tree/cpu_qdev.v8 git://github.com/ehabkost/qemu-hacks.git cpu_qdev.v8 v7: - Use the new QEMU_WEAK_ALIAS mechanism instead of the (now extinct) GCC_WEAK attribute (patches 20 and 21) 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: Removes 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.v8 git://github.com/ehabkost/qemu-hacks.git cpu_qdev.v8 References to previous versions: v7: http://article.gmane.org/gmane.comp.emulators.qemu/179969 v6: http://article.gmane.org/gmane.comp.emulators.qemu/179918 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 Eduardo Habkost (9): create qemu-types.h for struct typedefs sysemu.h: include qemu-types.h instead of qemu-common.h move -I$(SRC_PATH)/include compiler flag to Makefile.objs qdev: qdev_create(): use error_report() instead of hw_error() qdev: move reset handler list from vl.c to hw/reset.c qdev: add stubs for vmstate register/unregister functions qdev: add sysbus_get_default() stub qdev-properties.c: separate core from the code used only by qemu-system-* include qdev code into *-user, too Igor Mammedov (1): qom: make CPU a child of DeviceState Makefile | 1 - Makefile.objs | 23 ++- hw/Makefile.objs | 12 +- hw/ac97.c | 1 + hw/acpi_ich9.c | 1 + hw/acpi_piix4.c | 1 + hw/adb.c | 1 + hw/arm_boot.c | 1 + hw/armv7m.c | 1 + hw/bonito.c | 1 + hw/cirrus_vga.c | 1 + hw/cris-boot.c | 1 + hw/cs4231a.c | 1 + hw/cuda.c | 1 + hw/dma.c | 1 + hw/dp8393x.c | 1 + hw/eepro100.c | 1 + hw/es1370.c | 1 + hw/etraxfs_timer.c | 1 + hw/gt64xxx.c | 1 + hw/heathrow_pic.c | 1 + hw/hw.h | 5 - hw/ide/cmd646.c | 1 + hw/ide/macio.c | 1 + hw/ide/mmio.c | 1 + hw/ide/piix.c | 1 + hw/ide/via.c | 1 + hw/leon3.c | 1 + hw/lm32_boards.c | 1 + hw/lm832x.c | 1 + hw/loader.c | 1 + hw/mac_dbdma.c | 1 + hw/mac_nvram.c | 1 + hw/mc146818rtc.c | 1 + hw/microblaze_boot.c | 1 + hw/milkymist.c | 1 + hw/mips_fulong2e.c | 1 + hw/mips_jazz.c | 1 + hw/mips_malta.c | 1 + hw/mips_mipssim.c | 1 + hw/mips_r4k.c | 1 + hw/nseries.c | 1 + hw/omap1.c | 1 + hw/omap2.c | 1 + hw/openpic.c | 1 + hw/openrisc_sim.c | 1 + hw/parallel.c | 1 + hw/pc.c | 1 + hw/pckbd.c | 1 + hw/piix4.c | 1 + hw/piix_pci.c | 1 + hw/ppc/e500.c | 1 + hw/ppc405_boards.c | 1 + hw/ppc405_uc.c | 1 + hw/ppc440_bamboo.c | 1 + hw/ppc4xx_devs.c | 1 + hw/ppc4xx_pci.c | 1 + hw/ppc_newworld.c | 1 + hw/ppc_oldworld.c | 1 + hw/ppc_prep.c | 1 + hw/ppce500_spin.c | 1 + hw/ps2.c | 1 + hw/qdev-core.h | 11 +- hw/qdev-properties-system.c | 352 ++++++++++++++++++++++++++++++++++++++++++++ hw/qdev-properties.c | 321 +--------------------------------------- hw/qdev-properties.h | 1 + hw/qdev.c | 22 +-- hw/r2d.c | 1 + hw/rc4030.c | 1 + hw/reset.c | 43 ++++++ hw/reset.h | 11 ++ hw/s390-virtio-bus.c | 1 + hw/serial.c | 1 + hw/spapr.c | 1 + hw/sun4m.c | 1 + hw/sun4u.c | 1 + hw/tsc2005.c | 1 + hw/tsc210x.c | 1 + hw/usb/hcd-ehci.c | 1 + hw/usb/hcd-ohci.c | 1 + hw/usb/hcd-uhci.c | 1 + hw/vga.c | 1 + hw/virtex_ml507.c | 1 + hw/vt82c686.c | 1 + hw/xics.c | 1 + hw/xtensa_lx60.c | 1 + hw/xtensa_sim.c | 1 + include/qemu/cpu.h | 6 +- kvm-all.c | 1 + qemu-common.h | 52 +------ qemu-types.h | 61 ++++++++ qom/cpu.c | 3 +- stubs/Makefile.objs | 2 + stubs/sysbus.c | 6 + stubs/vmstate.c | 17 +++ sysemu.h | 3 +- target-i386/cpu.c | 1 + target-i386/kvm.c | 1 + vl.c | 41 +----- xen-all.c | 1 + 100 files changed, 616 insertions(+), 457 deletions(-) create mode 100644 hw/qdev-properties-system.c create mode 100644 hw/reset.c create mode 100644 hw/reset.h create mode 100644 qemu-types.h create mode 100644 stubs/sysbus.c create mode 100644 stubs/vmstate.c -- 1.7.11.7