LoongArch: KVM: always make pte young in page map's fast path
authorJia Qingtong <jiaqingtong97@gmail.com>
Tue, 9 Jul 2024 08:25:51 +0000 (16:25 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 9 Jul 2024 08:25:51 +0000 (16:25 +0800)
commitd7ad41a31d91abd01a4d9b040074d808899636ea
treee93b05d329deab9917e56b1d1edf6cf95eecdeb6
parentebf00272da5c32ecd9f28e56b71bdfd5f11227e6
LoongArch: KVM: always make pte young in page map's fast path

It seems redundant to check if pte is young before the call to
kvm_pte_mkyoung() in kvm_map_page_fast(). Just remove the check.

Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Jia Qingtong <jiaqingtong97@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/mmu.c