]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Flush radix process translations when setting MMU type
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 1 Feb 2018 05:09:44 +0000 (16:09 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Feb 2018 11:37:47 +0000 (22:37 +1100)
commitc2d78aa447111c4cdbf8ce13e816c3cdb51e931a
tree96b59e03b4875886bff664533fc3cc32897b291c
parent1e989de90c7a6b97ec9ee2650ee856769ab2bd49
powerpc/mm: Flush radix process translations when setting MMU type

Radix guests do normally invalidate process-scoped translations when a
new pid is allocated but migrated guests do not invalidate these so
migrated guests crash sometime, especially easy to reproduce with
migration happening within first 10 seconds after the guest boot start
on the same machine.

This adds the "Invalidate process-scoped translations" flush to fix
radix guests migration.

Fixes: 6fa66a14a70f ("KVM: PPC: Book3S HV: Update kvmppc_set_arch_compat() for ISA v3.00")
Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Tested-by: Laurent Vivier <lvivier@redhat.com>
Tested-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable_64.c