]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Use arch_get_random_seed_long instead of powernv variant
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 5 Aug 2021 07:56:49 +0000 (17:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:14:56 +0000 (23:14 +1000)
commit4167f5f1f1f1fa5a09276dc302501772f1c45c2b
tree96a7ea56700b10e7769d506927e822952e714d4b
parent2c1e9d0c1740bc555b7e8067c9c56e3eb3d2bbf3
KVM: PPC: Use arch_get_random_seed_long instead of powernv variant

The powernv_get_random_long() does not work in nested KVM (which is
pseries) and produces a crash when accessing in_be64(rng->regs) in
powernv_get_random_long().

This replaces powernv_get_random_long with the ppc_md machine hook
wrapper.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210805075649.2086567-1-aik@ozlabs.ru
arch/powerpc/kvm/book3s_hv.c