Thread (2 messages) read the whole thread 2 messages, 2 authors, 2017-03-02
DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH] arm64: KVM: VHE: Clear HCR_TGE when invalidating guest TLBs

From: Christoffer Dall <hidden>
Date: 2017-03-02 12:59:17
Also in: kvm, kvmarm

On Mon, Feb 27, 2017 at 03:24:37PM +0000, Marc Zyngier wrote:
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 <redacted>
Tested-by: Tomasz Nowicki <redacted>
Signed-off-by: Marc Zyngier <redacted>
Reviewed-by: Christoffer Dall <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help