KVM: x86: Take advantage of kvm_arch_dy_has_pending_interrupt()
authorHaiwei Li <lihaiwei@tencent.com>
Wed, 21 Apr 2021 03:25:13 +0000 (11:25 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Apr 2021 09:27:18 +0000 (05:27 -0400)
commit10dbdf98acd620f376313b85b587c9b9563fc170
treeea2c20ff6ab5eb809603ee95b210e2973453f1d1
parent469bb32b68d5a414fea293c17b532329c6dc9612
KVM: x86: Take advantage of kvm_arch_dy_has_pending_interrupt()

`kvm_arch_dy_runnable` checks the pending_interrupt as the code in
`kvm_arch_dy_has_pending_interrupt`. So take advantage of it.

Signed-off-by: Haiwei Li <lihaiwei@tencent.com>
Message-Id: <20210421032513.1921-1-lihaiwei.kernel@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c