+14
−0
+30
−0
Loading
Most implementations cache the combined result of two-stage translation, but some, like Andes cores, use split TLBs that store VS-stage and G-stage entries separately. On such systems, when a VCPU migrates to another CPU, an additional HFENCE.VVMA is required to avoid using stale VS-stage entries, which could otherwise cause guest faults. Introduce a static key to identify CPUs with split two-stage TLBs. When enabled, KVM issues an extra HFENCE.VVMA on VCPU migration to prevent stale VS-stage mappings. Signed-off-by:Hui Min Mina Chou <minachou@andestech.com> Signed-off-by:
Ben Zong-You Xie <ben717@andestech.com> Reviewed-by:
Radim Krčmář <rkrcmar@ventanamicro.com> Reviewed-by:
Nutty Liu <nutty.liu@hotmail.com> Link: https://lore.kernel.org/r/20251117084555.157642-1-minachou@andestech.com Signed-off-by:
Anup Patel <anup@brainfault.org>