LoongArch: KVM: Add interrupt checking for AVEC

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>

authored by Bibo Mao and committed by Huacai Chen 6fb1867d 3109d5ff

+1 -1
+1 -1
arch/loongarch/kvm/vcpu.c
··· 311 { 312 int ret = RESUME_GUEST; 313 unsigned long estat = vcpu->arch.host_estat; 314 - u32 intr = estat & 0x1fff; /* Ignore NMI */ 315 u32 ecode = (estat & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT; 316 317 vcpu->mode = OUTSIDE_GUEST_MODE;
··· 311 { 312 int ret = RESUME_GUEST; 313 unsigned long estat = vcpu->arch.host_estat; 314 + u32 intr = estat & CSR_ESTAT_IS; 315 u32 ecode = (estat & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT; 316 317 vcpu->mode = OUTSIDE_GUEST_MODE;