Skip to contentSkip to conversation

apic: reset apic_delivered global variable on machine reset

PATCH Applied Pavel Dovgalyuk 2 participants 2 messages Jan 31, 2017 – Feb 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 apic: reset apic_delivered global variable on machine reset

This patch adds call to apic_reset_irq_delivered when the virtual machine is reset.

---
 hw/intc/apic_common.c |    2 ++
 1 file changed, 2 insertions(+)
hw/intc/apic_common.c +2 -0
index 17df24c..cda3e9c 100644
@@ -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 lore raw
Quoted 14 lines · Pavel Dovgalyuk

This patch adds call to apic_reset_irq_delivered when the virtual machine is reset.

---
 hw/intc/apic_common.c |    2 ++
 1 file changed, 2 insertions(+)
hw/intc/apic_common.c +0 -0
index 17df24c..cda3e9c 100644

hw/intc/apic_common.c static void apic_reset_common(DeviceState *dev) · line 258

Quoted 8 lines
hw/intc/apic_common.c +2 -0
@@ -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);
 

Queued, thanks.

Paolo