summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2017-02-17 14:32:18 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-22 11:43:39 (GMT)
commit61e79860b4bc6259a9685a107a6b34352d6dc7bd (patch)
tree2933e2eb4dd2df971d92c1eb91d1c5a9d01e52b4 /block
parent8ca7ef0d9af9644a65e3e22ccc1937f00caa777b (diff)
downloadlinux-61e79860b4bc6259a9685a107a6b34352d6dc7bd.tar.xz
arm64: KVM: VHE: Clear HCR_TGE when invalidating guest TLBs
commit 68925176296a8b995e503349200e256674bfe5ac upstream. When invalidating guest TLBs, special care must be taken to actually shoot the guest TLBs and not the host ones if we're running on a VHE system. This is controlled by the HCR_EL2.TGE bit, which we forget to clear before invalidating TLBs. Address the issue by introducing two wrappers (__tlb_switch_to_guest and __tlb_switch_to_host) that take care of both the VTTBR_EL2 and HCR_EL2.TGE switching. Reported-by: Tomasz Nowicki <tnowicki@caviumnetworks.com> Tested-by: Tomasz Nowicki <tnowicki@caviumnetworks.com> Reviewed-by: Christoffer Dall <cdall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions