]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl: Emulate SPRN_BUCSR register
authorDiana Craciun <diana.craciun@nxp.com>
Wed, 12 Dec 2018 14:03:03 +0000 (16:03 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Dec 2018 11:59:03 +0000 (22:59 +1100)
commit6aad6474fa47c044d849c5a374e1469beef940e5
treea0291c2161d8120adc257b786e2097160de54441
parent687c29dadba68a0d45d62781365caf793c41c24d
powerpc/fsl: Emulate SPRN_BUCSR register

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>
arch/powerpc/kvm/e500_emulate.c