From: Pavel Dovgalyuk Date: Tue, 31 Jan 2017 11:40:54 +0000 (+0300) Subject: apic: reset apic_delivered global variable on machine reset X-Git-Tag: v2.9.0-rc0~91^2~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f65e821262029ee30c6b228e80ddeb86acdf7ff0;p=users%2Fdwmw2%2Fqemu.git apic: reset apic_delivered global variable on machine reset This patch adds call to apic_reset_irq_delivered when the virtual machine is reset. Signed-off-by: Pavel Dovgalyuk Message-Id: <20170131114054.276.62201.stgit@PASHA-ISP> Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini --- diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 6ce8ef744a..7a6e771ed1 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);