powerpc/fsl: Flush branch predictor when entering KVM
authorDiana Craciun <diana.craciun@nxp.com>
Fri, 29 Mar 2019 11:26:15 +0000 (22:26 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:26:20 +0000 (06:26 +0200)
commita46a5038263989fff96e884c7cec2680c7a5fc6a
treeed9ee1d8924548925d53e146ffa2834da6e64ab5
parent3cb931c709d00b1cff3ed094a62465a7bcc05dc2
powerpc/fsl: Flush branch predictor when entering KVM

commit e7aa61f47b23afbec41031bc47ca8d6cb6516abc upstream.

Switching from the guest to host is another place
where the speculative accesses can be exploited.
Flush the branch predictor when entering KVM.

Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kvm/bookehv_interrupts.S