[Qemu-devel] [PATCH v2 4/4] ioapic: QOM'ify ioapic

2013-11-05 Thread xiaoqiang zhao
changes: 1. use type constant for kvm_ioapic and ioapic 2. convert 'init' to QOM's 'realize' for ioapic and kvm_ioapic For QOM'ify, I move variable 'ioapic_no' from static to global. Then we can drop the 'instance_no' argument. Now, it's child that increase 'ioapic_no' counter. --- hw/i386/kvm/ioa

[Qemu-devel] [PATCH v2 4/4] ioapic: QOM'ify ioapic

2013-11-05 Thread xiaoqiang zhao
changes: 1. use type constant for kvm_ioapic and ioapic 2. convert 'init' to QOM's 'realize' for ioapic and kvm_ioapic For QOM'ify, I move variable 'ioapic_no' from static to global. Then we can drop the 'instance_no' argument. Now, it's child that increase 'ioapic_no' counter. Signed-off-by: xiao

[Qemu-devel] [PATCH v2 4/4] ioapic: QOM'ify ioapic

2013-11-04 Thread xiaoqiang zhao
changes: 1. use type constant for kvm_ioapic and ioapic 2. convert 'init' to QOM's 'realize' for ioapic and kvm_ioapic For QOM'ify, I move variable 'ioapic_no' from static to global. Then we can drop the 'instance_no' argument. Now, it's child that increase 'ioapic_no' counter. --- hw/i386/kvm/ioa