From: Pavel Dovgalyuk <[email protected]> This patch adds call to apic_reset_irq_delivered when the virtual machine is reset.
Signed-off-by: Pavel Dovgalyuk <[email protected]> Message-Id: <20170131114054.276.62201.stgit@PASHA-ISP> Cc: [email protected] Signed-off-by: Paolo Bonzini <[email protected]> --- hw/intc/apic_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 6ce8ef7..7a6e771 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -251,6 +251,8 @@ static void apic_reset_common(DeviceState *dev) s->apicbase = APIC_DEFAULT_ADDRESS | bsp | MSR_IA32_APICBASE_ENABLE; s->id = s->initial_apic_id; + apic_reset_irq_delivered(); + s->vapic_paddr = 0; info->vapic_base_update(s); -- 1.8.3.1
