Commit 81e18777 authored by Tao Cui's avatar Tao Cui Committed by Huacai Chen
Browse files

LoongArch: KVM: Use kvm_set_pte() in kvm_flush_pte()



kvm_flush_pte() is the only caller that directly assigns *pte instead
of using the kvm_set_pte() wrapper. Use the wrapper for consistency with
the rest of the file.

No functional change intended.

Cc: stable@vger.kernel.org
Reviewed-by: default avatarBibo Mao <maobibo@loongson.cn>
Signed-off-by: default avatarTao Cui <cuitao@kylinos.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent f26faae9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ static int kvm_flush_pte(kvm_pte_t *pte, phys_addr_t addr, kvm_ptw_ctx *ctx)
	else
		kvm->stat.pages--;

	*pte = ctx->invalid_entry;
	kvm_set_pte(pte, ctx->invalid_entry);

	return 1;
}