]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc/pseries: Disable CPU hotplug across migrations
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Mon, 17 Sep 2018 19:14:02 +0000 (14:14 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Sep 2018 12:08:12 +0000 (22:08 +1000)
commit85a88cabad57d26d826dd94ea34d3a785824d802
tree0639061237716d44ef003344381326389b7018cf
parentfd12527a1da42dcb906b694e01794e8d438f7d10
powerpc/pseries: Disable CPU hotplug across migrations

When performing partition migrations all present CPUs must be online
as all present CPUs must make the H_JOIN call as part of the migration
process. Once all present CPUs make the H_JOIN call, one CPU is returned
to make the rtas call to perform the migration to the destination system.

During testing of migration and changing the SMT state we have found
instances where CPUs are offlined, as part of the SMT state change,
before they make the H_JOIN call. This results in a hung system where
every CPU is either in H_JOIN or offline.

To prevent this this patch disables CPU hotplug during the migration
process.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/rtas.c