projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6465e26
)
KVM: arm64: Don't zero VTTBR in __tlb_switch_to_host()
author
Oliver Upton
<oliver.upton@linux.dev>
Wed, 18 Oct 2023 23:32:08 +0000
(23:32 +0000)
committer
Oliver Upton
<oliver.upton@linux.dev>
Fri, 20 Oct 2023 17:52:00 +0000
(17:52 +0000)
HCR_EL2.TGE=0 is sufficient to disable stage-2 translation, so there's
no need to explicitly zero VTTBR_EL2.
Link:
https://lore.kernel.org/r/20231018233212.2888027-2-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/vhe/tlb.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kvm/hyp/vhe/tlb.c
b/arch/arm64/kvm/hyp/vhe/tlb.c
index 46bd43f61d76f5dc1676cfad45a64830e138a526..f3f2e142e4f44581c8f2f3f6d164b36bb2e5e045 100644
(file)
--- a/
arch/arm64/kvm/hyp/vhe/tlb.c
+++ b/
arch/arm64/kvm/hyp/vhe/tlb.c
@@
-66,7
+66,6
@@
static void __tlb_switch_to_host(struct tlb_inv_context *cxt)
* We're done with the TLB operation, let's restore the host's
* view of HCR_EL2.
*/
- write_sysreg(0, vttbr_el2);
write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2);
isb();