Received: from eggs.gnu.org ([2001:4830:134:3::10]:38108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvXP1-0005Ge-49 for qemu-devel@nongnu.org; Fri, 13 Jun 2014 15:44:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvXOu-0006LE-VY for qemu-devel@nongnu.org; Fri, 13 Jun 2014 15:44:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvXOu-0006Kx-Mb for qemu-devel@nongnu.org; Fri, 13 Jun 2014 15:44:36 -0400 From: Eduardo Habkost Date: Fri, 13 Jun 2014 16:43:39 -0300 Message-Id: <1402688658-22333-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [RFC v2 00/39] Convert PC machine-types to QOM classes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, "Michael S. Tsirkin" Cc: Marcel Apfelbaum , Alexander Graf , Don Slutz , Anthony Liguori , Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Now with lots of cleanup, so you can see how the end result will look like after the conversion. My goal is that _all_ PC machine-types should be declared using only a class_init + TypeInfo pair, and nothing else. The only thing I couldn't eliminate yet were the pc_compat_*() functions, because we still need them for the KVM CPUID compat stuff. Eduardo Habkost (39): q35: Use PC_Q35_COMPAT_1_4 on pc-q35-1.4 compat_props piix: Move pc-0.14 qxl compat properties to PC_COMPAT_0_14 piix: Move pc-0.13 virtio-9p-pci compat to PC_COMPAT_0_13 piix: Move pc-0.1[23] rombar compat props to PC_COMPAT_0_13 piix: Move pc-0.11 drive version compat props TO PC_COMPAT_0_11 vl.c: Use qdev_prop_register_global() for single globals machine: Make compat_props a linked list pc: Register machine classes directly instead of using QEMUMachine pc: Eliminate pc_common_machine_options() pc: Eliminate pc_default_machine_options() piix: Eliminate pc_i440fx_machine_options() q35: Eliminate pc_q35_machine_options() q35: Eliminate pc_q35_1_4_machine_options() pc: Eliminate *machine_options macros piix: Make all *machine_options() functions call the previous one pc: Eliminate all *_machine_options() functions pc: Move pci_enabled parameter to PCMachineClass q35: Use PCMachineClass.pci_enabled field pc: Move kvmclock_enabled to PCMachineClass pc: Move smbios_legacy_mode to PCMachineClass pc: Move smbios_defaults to PCMachineClass pc: Move has_acpi_build to PCMachineClass pc: Move has_pci_info to PCMachineClass pc: Move gigabyte_align to PCMachineClass pc: Move has_reserved_memory to PCMachineClass pc: Move option_rom_has_mr/rom_file_has_mr to MachineClass piix: Eliminate pc_init_pci() piix: Introduce struct PCI440FXMachineClass pc: Create common machine init function pc: Eliminate empty or trivial compat functions piix: Move compat/init functions closer to corresponding class_init pc: Rename pc_machine variable to pcms pc: Move {ram,pci,rom}_memory variables to PCMachineState pc: Move duplicate Xen init code to pc_machine_init() pc: Move icc_bridge variable to PCMachineState pc: Move duplicate icc-bridge and CPU initalization to pc_machine_init() pc: Make pc_cpus_init() static pc: Make pc_cpus_init() use PCMachineState machine: Eliminate QEMUMachine.compat_props hw/core/loader.c | 12 +- hw/core/machine.c | 17 + hw/core/qdev-properties.c | 9 +- hw/i386/pc.c | 83 ++--- hw/i386/pc_piix.c | 802 +++++++++++++++++++++++-------------------- hw/i386/pc_q35.c | 288 ++++++++-------- include/hw/boards.h | 13 +- include/hw/i386/pc.h | 44 +-- include/hw/qdev-core.h | 2 + include/hw/qdev-properties.h | 2 +- vl.c | 44 +-- 11 files changed, 688 insertions(+), 628 deletions(-) -- 1.9.0