[PATCH 0/2] target/loongarch: Fix some TLB flush issues

Bibo Mao posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251009025932.2990219-1-maobibo@loongson.cn
Maintainers: Song Gao <gaosong@loongson.cn>
target/loongarch/tcg/tlb_helper.c | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
[PATCH 0/2] target/loongarch: Fix some TLB flush issues
Posted by Bibo Mao 1 month ago
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
-- 
2.39.3
Re: [PATCH 0/2] target/loongarch: Fix some TLB flush issues
Posted by gaosong 1 month ago
在 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