Home
last modified time | relevance | path

Searched hist:"7 ae2f3db6167aa7184529fdacd1de72619baf93b" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/arm64/kvm/
H A Darm.cdiff 7ae2f3db6167aa7184529fdacd1de72619baf93b Sat May 30 18:22:19 CEST 2020 Marc Zyngier <maz@kernel.org> KVM: arm64: Flush the instruction cache if not unmapping the VM on reboot

On a system with FWB, we don't need to unmap Stage-2 on reboot,
as even if userspace takes this opportunity to repaint the whole
of memory, FWB ensures that the data side stays consistent even
if the guest uses non-cacheable mappings.

However, the I-side is not necessarily coherent with the D-side
if CTR_EL0.DIC is 0. In this case, invalidate the i-cache to
preserve coherency.

Reported-by: Alexandru Elisei <alexandru.elisei@arm.com>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Fixes: 892713e97ca1 ("KVM: arm64: Sidestep stage2_unmap_vm() on vcpu reset when S2FWB is supported")
Signed-off-by: Marc Zyngier <maz@kernel.org>