Message ID | 1490051325-3770-49-git-send-email-mdroth@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index fd9208f..5fa8481 100644 --- a/hw/intc/ioapic.c +++ b/hw/intc/ioapic.c @@ -426,6 +426,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; }