]> git.ipfire.org Git - thirdparty/qemu.git/commit
x86: ioapic: fix fail migration when irqchip=split
authorPeter Xu <peterx@redhat.com>
Mon, 9 Jan 2017 08:55:53 +0000 (16:55 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:39 +0000 (12:10 -0500)
commit5c60c6ef613969054e6fa77aadf249024abe6e96
treea99c23f2160697d92304eb2fcbc4c21d745dfc4c
parent2ab8276a1cb2bcd0d14d4e05c193252f370b8251
x86: ioapic: fix fail migration when irqchip=split

Split irqchip works based on the fact that we kept the first 24 gsi
routing entries inside KVM for userspace ioapic's use. When system
boot, we'll reserve these MSI routing entries before hand. However,
after migration, we forgot to re-configure it up in the destination
side. The result is, we'll get invalid gsi routing entries after
migration (all empty), and we get interrupts with vector=0, then
strange things happen, like keyboard hang.

The solution is simple - we update them after migration, which is a
one line fix.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1483952153-7221-4-git-send-email-peterx@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0f254b1ae04b36e2ab2d91528297ed60d40c8c08)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/intc/ioapic.c