Skip to content

Commit 7315321

Browse files
agrafMarc Zyngier
authored andcommitted
KVM: arm64: vgic-its: Change default outer cacheability for {PEND, PROP}BASER
PENDBASER and PROPBASER define the outer caching mode for LPI tables. The memory backing them may not be outer sharable, so we mark them as nC by default. This however, breaks Windows on ARM which only accepts SameAsInner or RaWaWb as values for outer cachability. We do today already allow the outer mode to be set to SameAsInner explicitly, so the easy fix is to default to that instead of nC for situations when an OS asks for a not fulfillable cachability request. This fixes booting Windows in KVM with vgicv3 and ITS enabled for me. Signed-off-by: Alexander Graf <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2da3ffa commit 7315321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/vgic/vgic-mmio-v3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ u64 vgic_sanitise_outer_cacheability(u64 field)
389389
case GIC_BASER_CACHE_nC:
390390
return field;
391391
default:
392-
return GIC_BASER_CACHE_nC;
392+
return GIC_BASER_CACHE_SameAsInner;
393393
}
394394
}
395395

0 commit comments

Comments
 (0)