summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWei Yang <richardw.yang@linux.intel.com>2019-04-01 05:17:21 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2019-06-18 12:43:46 +0300
commit7d2296bfa52cc9b63063935dd21ca5fa0d790754 (patch)
treefe56b16dd514ffc03eb23fdb64596d3807d17064 /scripts
parent2d5ba19bdfef4dd06add144eb04287ee98409f75 (diff)
downloadlinux-7d2296bfa52cc9b63063935dd21ca5fa0d790754.tar.xz
kvm: x86: check kvm_apic_sw_enabled() is enough
On delivering irq to apic, we iterate on vcpu and do the check like this: kvm_apic_present(vcpu) kvm_lapic_enabled(vpu) kvm_apic_present(vcpu) && kvm_apic_sw_enabled(vcpu->arch.apic) Since we have already checked kvm_apic_present(), it is reasonable to replace kvm_lapic_enabled() with kvm_apic_sw_enabled(). Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions