diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-02-17 15:32:18 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-03-06 11:28:24 +0100 |
commit | 68925176296a8b995e503349200e256674bfe5ac (patch) | |
tree | 8a4bc475b085466081d3fbe2f0ab9a4109dabd66 /include | |
parent | Linux 4.11-rc1 (diff) | |
download | linux-68925176296a8b995e503349200e256674bfe5ac.tar.xz linux-68925176296a8b995e503349200e256674bfe5ac.zip |
arm64: KVM: VHE: Clear HCR_TGE when invalidating guest TLBs
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>
Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions