powerpc/pseries: Move vas_migration_handler early during migration
authorHaren Myneni <haren@linux.ibm.com>
Thu, 22 Sep 2022 08:27:07 +0000 (01:27 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:12 +0000 (19:22 +1000)
commit465dda9d320d1cb9424f1015b0520ec4c4f0d279
treecc5f1bf8600d1d402d465a41535e31c61c0c8d6f
parent1da5351f9eb9b72a7d25316b4d38bf10b6e671b1
powerpc/pseries: Move vas_migration_handler early during migration

When the migration is initiated, the hypervisor changes VAS
mappings as part of pre-migration event. Then the OS gets the
migration event which closes all VAS windows before the migration
starts. NX generates continuous faults until windows are closed
and the user space can not differentiate these NX faults coming
from the actual migration. So to reduce this time window, close
VAS windows first in pseries_migrate_partition().

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d8efade91dda831c9ed4abb226dab627da594c5f.camel@linux.ibm.com
arch/powerpc/platforms/pseries/mobility.c