Thread (10 messages) flat view 10 messages, 4 authors, 2021-03-09

Re: [PATCH] KVM: arm64: Ensure I-cache isolation between vcpus of a same VM

From: Marc Zyngier <maz@kernel.org>
Date: 2021-03-06 10:57:00
Also in: kvm, kvmarm

On Fri, 05 Mar 2021 19:07:09 +0000,
Catalin Marinas [off-list ref] wrote:
On Wed, Mar 03, 2021 at 04:45:05PM +0000, Marc Zyngier wrote:
quoted
It recently became apparent that the ARMv8 architecture has interesting
rules regarding attributes being used when fetching instructions
if the MMU is off at Stage-1.

In this situation, the CPU is allowed to fetch from the PoC and
allocate into the I-cache (unless the memory is mapped with
the XN attribute at Stage-2).
Digging through the ARM ARM is hard. Do we have this behaviour with FWB
as well?
The ARM ARM doesn't seem to mention FWB at all when it comes to
instruction fetch, which is sort of expected as it only covers the
D-side. I *think* we could sidestep this when CTR_EL0.DIC is set
though, as the I-side would then snoop the D-side.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help