powerpc/fsl: Emulate SPRN_BUCSR register
authorDiana Craciun <diana.craciun@nxp.com>
Thu, 11 Apr 2019 11:46:21 +0000 (21:46 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:36:42 +0000 (08:36 +0200)
commita1101a6297c97c126c485d2f5209547bbbb8b332
treea5c69b7230519baf9812aad5676ccfb0514637b2
parent1eb1ddbdf5c019d90c690495dc545696c86ed3ce
powerpc/fsl: Emulate SPRN_BUCSR register

commit 98518c4d8728656db349f875fcbbc7c126d4c973 upstream.

In order to flush the branch predictor the guest kernel performs
writes to the BUCSR register which is hypervisor privilleged. However,
the branch predictor is flushed at each KVM entry, so the branch
predictor has been already flushed, so just return as soon as possible
to guest.

Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
[mpe: Tweak comment formatting]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kvm/e500_emulate.c