Gautam Menghani
b78c6d5b1b
ppc/xive: Trigger the pending interrupt for a guest after migration
When a KVM guest is migrated to another LPAR while a stress-ng workload
is running, lockups are seen when the guest resumes on the destination
LPAR. This root cause is that if there was a pending interrupt for a cpu
on the source machine but it was not presented yet when the migration
started, the interrupt is not retriggered on the destination LPAR. This
is evident when running 'info pic' on the destination LPAR:
$ virsh qemu-monitor-command --hmp migrate 'info pic' | grep -e OS -e MSI
CPU[0000]: OS 00 ff 00 ff ff 00 ff ff 80000400
CPU[0001]: OS 00 ff 00 ff ff 00 ff ff 80000401
CPU[0002]: OS 00 ff 00 ff ff 00 ff ff 80000402
CPU[0003]: OS 00 ff 00 ff ff 00 ff ff 80000403
CPU[0004]: OS 00 ff 00 ff ff 00 ff ff 80000404
CPU[0005]: OS 00 ff 00 ff ff 00 ff ff 80000405
CPU[0006]: OS 80 ff 02 ff ff 00 ff 06 80000406
CPU[0007]: OS 00 ff 00 ff ff 00 ff ff 80000407
00000000 MSI -- 00000010 0/6 3071/16384 @3710000 ^1 [ 80000010 80000010 80000010 80000010 80000010 ^00000000 ]
00000001 MSI -- 00000010 1/6 1852/16384 @3980000 ^1 [ 80000010 80000033 80000033 80000033 80000033 ^00000000 ]
00000002 MSI -- 00000010 2/6 4424/16384 @40c0000 ^1 [ 80000020 80000020 80000020 80000010 80000010 ^00000000 ]
00000003 MSI -- 00000010 3/6 1913/16384 @4220000 ^1 [ 80000010 80000032 80000010 80000010 80000010 ^00000000 ]
00000004 MSI -- 00000010 4/6 2946/16384 @4360000 ^1 [ 80000010 80000010 80000010 80000010 80000010 ^00000000 ]
00000005 MSI -- 00000010 5/6 2313/16384 @44a0000 ^1 [ 80000010 80000010 80000010 80000010 80000010 ^00000000 ]
00000006 MSI P- 00000010 6/6 5825/16384 @45f0000 ^1 [ 80000024 80000024 80000024 80000010 80000016 ^00000000 ]
00000007 MSI -- 00000010 7/6 2346/16384 @4760000 ^1 [ 80000032 80000032 80000010 80000032 80000032 ^00000000 ]
Fix this by calling xive_tctx_pipr_set() in
vmstate_xive_tctx_post_load(), which ends up calling qemu_irq_raise() to
present the interrupt. This fix is relevant only for setups where KVM
guests rely on emulated XIVE provided by QEMU, since the native XIVE
case is already handled.
Cc: qemu-stable@nongnu.org
Reported-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
Tested-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
Reviewed-by: Nikhil Kumar Singh <nikhilks@linux.ibm.com>
Reviewed-by: Michael Kowal <kowal@linux.ibm.com>
Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20260826060217.24978-1-gautam@linux.ibm.com
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
2026-08-28 11:00:45 +05:30
..
2026-07-27 15:51:03 +04:00
2026-08-27 15:22:11 +01:00
2026-06-07 06:41:09 +02:00
2026-04-24 21:20:43 +02:00
2026-08-27 15:22:11 +01:00
2026-07-27 15:13:38 -04:00
2026-04-24 21:20:43 +02:00
2026-08-16 16:32:41 +02:00
2026-08-20 16:01:59 -07:00
2026-08-25 15:20:43 +04:00
2026-02-26 11:27:18 +00:00
2026-07-27 16:51:16 -04:00
2026-08-25 15:20:44 +04:00
2026-08-24 11:08:25 +10:00
2026-06-07 06:41:09 +02:00
2026-08-12 09:19:55 -07:00
2026-08-11 23:20:45 -07:00
2026-08-16 16:32:42 +02:00
2026-08-16 16:32:41 +02:00
2026-08-12 09:19:55 -07:00
2026-06-07 06:41:10 +02:00
2026-08-27 11:03:19 -07:00
2026-08-26 12:59:19 +02:00
2026-08-25 15:20:44 +04:00
2026-08-28 11:00:45 +05:30
2025-12-27 10:11:07 +01:00
2026-08-16 16:32:42 +02:00
2026-08-27 15:22:11 +01:00
2026-08-26 21:39:34 -04:00
2026-08-27 14:01:16 +02:00
2026-08-16 16:32:41 +02:00
2026-06-18 14:27:04 +02:00
2026-05-21 08:20:58 +02:00
2026-08-25 15:20:43 +04:00
2026-08-16 16:32:41 +02:00
2026-02-27 14:22:07 +01:00
2025-12-27 10:11:08 +01:00
2026-08-16 16:32:41 +02:00
2026-08-16 16:32:41 +02:00
2026-04-24 21:20:43 +02:00
2026-08-27 15:22:11 +01:00
2026-07-27 15:13:53 -04:00
2026-08-11 18:25:57 +02:00
2026-08-28 11:00:45 +05:30
2026-08-11 15:34:38 -04:00
2026-08-24 11:19:06 +10:00
2026-07-07 17:10:24 +02:00
2025-12-27 10:11:08 +01:00
2026-08-26 06:52:20 -04:00
2026-08-27 14:01:16 +02:00
2026-08-12 11:41:40 +01:00
2026-08-11 18:25:58 +02:00
2026-04-24 21:27:22 +02:00
2026-03-08 23:08:41 +01:00
2026-04-24 21:20:43 +02:00
2026-07-15 15:50:22 +02:00
2026-08-11 18:25:58 +02:00
2026-08-11 23:20:45 -07:00
2026-07-10 10:29:27 -04:00
2026-04-24 21:20:43 +02:00
2026-07-22 15:22:40 +02:00
2026-08-24 14:17:29 +09:00
2026-08-15 14:06:46 +02:00
2026-08-16 16:32:41 +02:00
2026-07-21 18:02:47 +02:00
2026-08-16 16:32:41 +02:00
2026-04-27 10:06:37 +01:00
2026-08-23 11:37:05 +05:30
2026-06-18 14:27:04 +02:00
2025-12-27 10:11:06 +01:00
2026-06-18 14:27:04 +02:00
2026-06-29 06:03:00 -07:00
2026-06-29 06:03:00 -07:00