Devices should not need to access CPUState. Minimize CPUState use in APIC. Blue Swirl (6): ioapic: unexport ioapic_set_irq apic.h: rearrange ioapic: add ioapic.h apic: avoid passing CPUState from devices apic: avoid passing CPUState from CPU code apic: avoid using CPUState internals
hw/apic.c | 95 ++++++++++++++++++---------------------------- hw/apic.h | 21 +++++++--- hw/ioapic.c | 3 +- hw/ioapic.h | 7 +++ hw/pc.c | 22 ++++++++-- hw/pc_piix.c | 2 +- target-i386/cpu.h | 26 ++++++++----- target-i386/cpuid.c | 6 +++ target-i386/helper.c | 4 +- target-i386/kvm.c | 14 +++--- target-i386/op_helper.c | 8 ++-- 11 files changed, 113 insertions(+), 95 deletions(-) create mode 100644 hw/ioapic.h