powerpc/fsl: Emulate SPRN_BUCSR register
authorDiana Craciun <diana.craciun@nxp.com>
Fri, 29 Mar 2019 11:26:11 +0000 (22:26 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:26:19 +0000 (06:26 +0200)
commit4a6a2287e0e61dfe9449413d09e63842e016fdcb
tree9bcfab2c28338d8b991b875c97048b3a72c0be17
parent4944f1d48d7117e9766db8953d0855bfede939e6
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kvm/e500_emulate.c