]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Check kvm_request_pending() in kvm_late_check_requests()
authorBibo Mao <maobibo@loongson.cn>
Thu, 9 Apr 2026 10:56:36 +0000 (18:56 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 9 Apr 2026 10:56:36 +0000 (18:56 +0800)
commit14d2714d6537a9df5bea2515185034dbb9d30f03
treeabd509415e6f9d4d41595bbe92edb1ba391a18a4
parentda773ea3f59032f659bfc4c450ca86e384786168
LoongArch: KVM: Check kvm_request_pending() in kvm_late_check_requests()

Add kvm_request_pending() checking firstly in kvm_late_check_requests(),
at most time there is no pending request, then the following pending bit
checking can be skipped.

Also embed function kvm_check_pmu() in to kvm_late_check_requests(), and
put it after the kvm_request_pending() checking.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/vcpu.c