]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: KVM: Add interrupt checking for AVEC
authorBibo Mao <maobibo@loongson.cn>
Sat, 8 Mar 2025 05:51:59 +0000 (13:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:01:50 +0000 (13:01 +0100)
commit5f3f7d2e9adf35f31c1241d60566e51a1890df79
tree21a84eb84037df04a5324fc2877a6da94c3ddbaf
parent41b0b3b75c778cada371cc11fd865861d7d4dc46
LoongArch: KVM: Add interrupt checking for AVEC

commit 6fb1867d5a44b0a061cf39d2492d23d314bcb8ce upstream.

There is a newly added macro INT_AVEC with CSR ESTAT register, which is
bit 14 used for LoongArch AVEC support. AVEC interrupt status bit 14 is
supported with macro CSR_ESTAT_IS, so here replace the hard-coded value
0x1fff with macro CSR_ESTAT_IS so that the AVEC interrupt status is also
supported by KVM.

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