[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v2 00/39] Convert PC machine-types to QOM classes
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [RFC v2 00/39] Convert PC machine-types to QOM classes |
Date: |
Sat, 14 Jun 2014 00:53:06 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Jun 13, 2014 at 04:43:39PM -0300, Eduardo Habkost wrote:
> 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.
Git tree:
https://github.com/ehabkost/qemu-hacks/tree/pc-machine-class.v2
This is based on Michael's pci tree.
The basic steps of the conversion (which I forgot to include in the
cover letter):
* PC_COMPAT_* cleanup, so all follow the same nesting pattern
* Make MachineClass.compat_props a linked list
* Mechanical conversion of current code to QOM (like the previous RFC I sent)
* Elimination of *machine_options() functions
* Moving global variables to PCMachineClass
* Common pc_machine_init() function, with a compat_func hook
* Some piix/q35 duplication elimination, just as a proof of concept of how
we can proceed
--
Eduardo
- [Qemu-devel] [RFC v2 35/39] pc: Move icc_bridge variable to PCMachineState, (continued)
- [Qemu-devel] [RFC v2 35/39] pc: Move icc_bridge variable to PCMachineState, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 36/39] pc: Move duplicate icc-bridge and CPU initalization to pc_machine_init(), Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 37/39] pc: Make pc_cpus_init() static, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 38/39] pc: Make pc_cpus_init() use PCMachineState, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 39/39] machine: Eliminate QEMUMachine.compat_props, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 19/39] pc: Move kvmclock_enabled to PCMachineClass, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 20/39] pc: Move smbios_legacy_mode to PCMachineClass, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 17/39] pc: Move pci_enabled parameter to PCMachineClass, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 18/39] q35: Use PCMachineClass.pci_enabled field, Eduardo Habkost, 2014/06/13
- [Qemu-devel] [RFC v2 33/39] pc: Move {ram, pci, rom}_memory variables to PCMachineState, Eduardo Habkost, 2014/06/13
- Re: [Qemu-devel] [RFC v2 00/39] Convert PC machine-types to QOM classes,
Eduardo Habkost <=