OSDN Git Service

powerpc/fsl: Flush branch predictor when entering KVM
authorDiana Craciun <diana.craciun@nxp.com>
Mon, 29 Apr 2019 15:49:02 +0000 (18:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:44:53 +0000 (19:44 +0200)
commit4168b2e356bc39f46367c86e5823ae44e537549c
tree106f0f01c42e972932c4aaa875148c9a43c14594
parentec206826323afbc20daeaf862663e330cea10de1
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