]> git.baikalelectronics.ru Git - kernel.git/commit
kvm/x86: return meaningful value from KVM_SIGNAL_MSI
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Oct 2018 14:07:18 +0000 (16:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:43 +0000 (00:29 +0200)
commit9b916e84465fd86976a2aada5545ada262bf0165
tree092315d8e862efd777f189040e9dec59d5d6a4b3
parent4d655f588ee808953dd9b34274559729d4a8ac37
kvm/x86: return meaningful value from KVM_SIGNAL_MSI

If kvm_apic_map_get_dest_lapic() finds a disabled LAPIC,
it will return with bitmap==0 and (*r == -1) will be returned to
userspace.

QEMU may then record "KVM: injection failed, MSI lost
(Operation not permitted)" in its log, which is quite puzzling.

Reported-by: Peng Hao <penghao122@sina.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c