Thread (11 messages) 11 messages, 3 authors, 2018-05-25
STALE2975d REVIEWED: 3 (3M)

[PATCH 1/4] arm64: KVM: Add support for Stage-2 control of memory types and cacheability

From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2018-05-24 15:52:25
Also in: kvm, kvmarm

On Thu, May 17, 2018 at 11:35:45AM +0100, Marc Zyngier wrote:
Up to ARMv8.3, the combinaison of Stage-1 and Stage-2 attributes
results in the strongest attribute of the two stages.  This means
that the hypervisor has to perform quite a lot of cache maintenance
just in case the guest has some non-cacheable mappings around.

ARMv8.4 solves this problem by offering a different mode (FWB) where
Stage-2 has total control over the memory attribute (this is limited
to systems where both I/O and instruction caches are coherent with
the dcache). This is achieved by having a different set of memory
attributes in the page tables, and a new bit set in HCR_EL2.

On such a system, we can then safely sidestep any form of dcache
management.

Signed-off-by: Marc Zyngier <redacted>
For the core arm64 bits:

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help