在 2025/10/9 上午10:59, Bibo Mao 写道:
> There are two problems with TLB flush, one is that loongArch TLB entry
> should be invalidated with different ASID, the other is global TLB entry
> should be skippped when calculating replaced TLB entry.
>
> With these two patches, it improves VM boot time also. VM boot time from
> generic qcow file reduces to 300 seconds from previous 600 seconds.
>
> Bibo Mao (2):
> target/loongarch: Add missing TLB flush with different asid
> target/loongarch: Skip global TLB when calculating replaced TLB
>
> target/loongarch/tcg/tlb_helper.c | 22 +++++++++++++---------
> 1 file changed, 13 insertions(+), 9 deletions(-)
>
>
> base-commit: 37ad0e48e9fd58b170abbf31c18a994346f62ed7
Reviewed-by: Song Gao <gaosong@loongson.cn>
Thanks.
Song Gao