From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUYV7-0006VC-LD for qemu-devel@nongnu.org; Mon, 31 Mar 2014 05:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUYV1-0003bc-Gt for qemu-devel@nongnu.org; Mon, 31 Mar 2014 05:27:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUYV1-0003bS-8W for qemu-devel@nongnu.org; Mon, 31 Mar 2014 05:27:23 -0400 From: Marcel Apfelbaum Date: Mon, 31 Mar 2014 12:26:28 +0300 Message-Id: <1396257993-4036-1-git-send-email-marcel.a@redhat.com> Subject: [Qemu-devel] [PATCH V2 0/5] remove QEMUMachine indirection from MachineClass List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, famz@redhat.com, stefanha@redhat.com, mst@redhat.com, alex@alex.org.uk, armbru@redhat.com, stefano.stabellini@eu.citrix.com, agraf@suse.de, lcapitulino@redhat.com, aliguori@amazon.com, pbonzini@redhat.com, afaerber@suse.de, rth@twiddle.net V1 -> V2: - Addressed Paolo's comments: - replaced commas by semicolons on patch 4/5. - Rebased to master. This is a continuation of 'QEMU Machine as QOM object' effort. The scope of this series is to allow machine QOM-ification of all machines gradually, by removing the need for QEMUMachine registration through vl.c . Now we will have 2 paths: 1. Non QOM-ified machines will be converted to QOM on the fly in vl.c by qemu machine registration. 2. QOM-ified machines will behave as regular QOM classes setting MachineClass fields in class_init. - Patch 4/5 demonstrates this. Next steps: - Replace QemuOpts queries by MachineState fields. - Follow Paolo's suggestions to get rid of QEMUMachineInitArgs. Comments are appreciated, Thanks, Marcel Marcel Apfelbaum (5): hw/boards.h: add QEMUMachine's fields to MachineClass machine: remove QEMUMachine indirection from MachineClass machine: replace QEMUMachine by MachineClass in accelerator configuration hw/ppc: remove QEMUMachine indirection vl.c: Remove QEMUMachine usage device-hotplug.c | 2 +- hw/ppc/spapr.c | 26 +++++------ include/hw/boards.h | 30 +++++++++++-- include/hw/xen/xen.h | 2 +- include/qemu/typedefs.h | 1 + include/sysemu/kvm.h | 2 +- include/sysemu/qtest.h | 2 +- kvm-all.c | 6 +-- kvm-stub.c | 2 +- qmp.c | 4 +- qtest.c | 2 +- vl.c | 114 +++++++++++++++++++++++++++--------------------- xen-all.c | 2 +- xen-stub.c | 2 +- 14 files changed, 116 insertions(+), 81 deletions(-) -- 1.8.3.1