This series of patch QOM'ify apic and ioapic. Just replace old 'init' with QOM's 'realize', the call logic is untouched.
the first patch of each is a cleanup. the second patch complete the convertion. All patch have been compiled and tested successfully. Changes since v1: - separate cleanup patch from the rest - add & change some code comment - QOM'ify icc_bus for consistency xiaoqiang zhao (4): apic: Cleanup for QOM'ify apic: QOM'ify apic & icc_bus ioapic: Cleanup for QOM'ify ioapic: QOM'ify ioapic hw/cpu/icc_bus.c | 14 +++---- hw/i386/kvm/apic.c | 18 +++++---- hw/i386/kvm/ioapic.c | 15 +++++--- hw/intc/apic.c | 52 ++++++++++++++------------ hw/intc/apic_common.c | 73 +++++++++++++++++++------------------ hw/intc/ioapic.c | 21 ++++++++--- hw/intc/ioapic_common.c | 17 ++++++--- include/hw/cpu/icc_bus.h | 3 +- include/hw/i386/apic_internal.h | 5 ++- include/hw/i386/ioapic_internal.h | 3 +- 10 files changed, 126 insertions(+), 95 deletions(-) -- 1.7.10.4