]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: KVM: Make function kvm_own_lbt() robust
authorBibo Mao <maobibo@loongson.cn>
Wed, 20 Aug 2025 14:51:14 +0000 (22:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:31 +0000 (16:34 +0200)
commitc8e5c452bd38b37973cf89cb53c4d18129d2e6e5
tree348c70cb5612a12f46f2b1f70744835e211fc68e
parentbc7d1d2e8233ef0c3dd7e45bb30395b9016ca54a
LoongArch: KVM: Make function kvm_own_lbt() robust

commit 4be8cefc132606b4a6e851f37f8e8c40c406c910 upstream.

Add the flag KVM_LARCH_LBT checking in function kvm_own_lbt(), so that
it can be called safely rather than duplicated enabling again.

Cc: stable@vger.kernel.org
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/kvm/vcpu.c