]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/pseries: HVPIPE changes to support migration
authorHaren Myneni <haren@linux.ibm.com>
Tue, 9 Sep 2025 08:44:01 +0000 (01:44 -0700)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 15 Sep 2025 08:08:40 +0000 (13:38 +0530)
commit6d84f85151bbd062d36bda6daf37a73945b471c9
treeadb7a4f2ba4207c13a84b571cdbaea17295f3514
parent39a08a4f94980518ef2eca3c6c6b61094c99f1af
powerpc/pseries: HVPIPE changes to support migration

The hypervisor assigns one pipe per partition for all sources and
assigns new pipe after migration. Also the partition ID that is
used by source as its target ID may be changed after the migration.
So disable hvpipe during SUSPEND event with ‘hvpipe enable’ system
parameter value = 0 and enable it after migration during RESUME
event with  hvpipe enable’ system parameter value = 1.

The user space calls such as ioctl()/ read() / write() / poll()
returns  -ENXIO between SUSPEND and RESUME events. The user space
process can close FD and reestablish connection with new FD after
migration if needed (Example: source IDs are changed).

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Tested-by: Shashank MS <shashank.gowda@in.ibm.com>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250909084402.1488456-10-haren@linux.ibm.com
arch/powerpc/platforms/pseries/mobility.c
arch/powerpc/platforms/pseries/papr-hvpipe.c
arch/powerpc/platforms/pseries/papr-hvpipe.h