]> rtime.felk.cvut.cz Git - zynq/linux.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)
commit0624fca9512d08cbd9b5d098d904c840d3432404
tree092315d8e862efd777f189040e9dec59d5d6a4b3
parent4fef0f491347785dfd4cca206b80f75c4ec2dc9f
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