OSDN Git Service

powerpc/fsl: Emulate SPRN_BUCSR register
authorDiana Craciun <diana.craciun@nxp.com>
Mon, 29 Apr 2019 15:49:03 +0000 (18:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:44:53 +0000 (19:44 +0200)
commit5bed4b351268c2531c7844619044c8e1bf45125a
tree9edf74fc0c87eac1836ff3554f9d45d522f22d24
parent4168b2e356bc39f46367c86e5823ae44e537549c
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