]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Fix INTx handling
authorSasha Levin <levinsasha928@gmail.com>
Mon, 19 Sep 2011 10:40:45 +0000 (13:40 +0300)
committerSasha Levin <levinsasha928@gmail.com>
Mon, 19 Sep 2011 10:40:45 +0000 (13:40 +0300)
Since we didn't raise the ISR INTx interrupts were sometimes ignored by
the guest. This caused hangs on boot when starting a guest without MSIX
support.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
tools/kvm/virtio/pci.c

index 7743431552af5350379733a1b3eaa89f0b08b7bf..f01851bc174b3a583760e30cb4032e8173c2089f 100644 (file)
@@ -234,6 +234,7 @@ int virtio_pci__signal_vq(struct kvm *kvm, struct virtio_pci *vpci, u32 vq)
 
                kvm__irq_trigger(kvm, vpci->gsis[vq]);
        } else {
+               vpci->isr = VIRTIO_IRQ_HIGH;
                kvm__irq_trigger(kvm, vpci->pci_hdr.irq_line);
        }
        return 0;