[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/3] x86: ioapic: fix fail migration when irqchip=sp
From: |
Peter Xu |
Subject: |
[Qemu-devel] [PATCH 3/3] x86: ioapic: fix fail migration when irqchip=split |
Date: |
Mon, 9 Jan 2017 16:55:53 +0800 |
Signed-off-by: Peter Xu <address@hidden>
---
hw/intc/ioapic.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c
index d1254f8..9047b89 100644
--- a/hw/intc/ioapic.c
+++ b/hw/intc/ioapic.c
@@ -439,6 +439,11 @@ static void ioapic_class_init(ObjectClass *klass, void
*data)
DeviceClass *dc = DEVICE_CLASS(klass);
k->realize = ioapic_realize;
+ /*
+ * If APIC is in kernel, we need to update the kernel cache after
+ * migration, otherwise first 24 gsi routes will be invalid.
+ */
+ k->post_load = ioapic_update_kvm_routes;
dc->reset = ioapic_reset_common;
dc->props = ioapic_properties;
}
--
2.7.4