From: Marcel Apfelbaum Subject: [Qemu-devel] [PATCH 0/5] remove QEMUMachine indirection from MachineClass Date: Tue, 25 Mar 2014 16:53:47 +0200 Message-ID: <1395759232-10316-1-git-send-email-marcel.a@redhat.com> Cc: mst@redhat.com, afaerber@suse.de, peter.maydell@linaro.org, pbonzini@redhat.com, agraf@suse.de, lcapitulino@redhat.com, aliguori@amazon.com, stefano.stabellini@eu.citrix.com, armbru@redhat.com, stefanha@redhat.com, alex@alex.org.uk, rth@twiddle.net, famz@redhat.com, qemu-ppc@nongnu.org, kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:15090 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbaCYOxt (ORCPT ); Tue, 25 Mar 2014 10:53:49 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Note: this is a resend (I sent the series some time ago with no luck), sorry if you get this series twice. 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 sugestions 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