This is a preparatory series to allow the introduction of the KVM in-kernel PIT. A working and fairly clean version for that is ready. It is just waiting for the irqchip baseline and this series to be merged. This series also fixes various bugs in the PIT and HPET code, see patches for details. Changes in V2: - do not raise i8254 IRQ on reset - introduce i8254.h - pass irq output object on i8254 initialization - convert PC speaker to qdev - factor out pit_get_channel_info Jan Kiszka (7): i8254: Do not raise IRQ level on reset hpet: Save/restore cached RTC IRQ level i8254: Factor out interface header i8254: Pass irq output object on initialization i8254: Rework & fix interaction with HPET in legacy mode pcspk: Convert to qdev i8254: Factor out pit_get_channel_info arch_init.c | 1 + hw/alpha_dp264.c | 3 +- hw/hpet.c | 65 ++++++++++++++++++++++++++---------- hw/hpet_emul.h | 3 ++ hw/i8254.c | 92 ++++++++++++++++++++++----------------------------- hw/i8254.h | 55 +++++++++++++++++++++++++++++++ hw/mips_fulong2e.c | 3 +- hw/mips_jazz.c | 6 ++- hw/mips_malta.c | 3 +- hw/mips_r4k.c | 3 +- hw/pc.c | 17 +++++++-- hw/pc.h | 29 ---------------- hw/pcspk.c | 73 ++++++++++++++++++++++++++++++++-------- hw/pcspk.h | 45 +++++++++++++++++++++++++ hw/ppc_prep.c | 2 +- 15 files changed, 275 insertions(+), 125 deletions(-) create mode 100644 hw/i8254.h create mode 100644 hw/pcspk.h -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html