From: Sasha Levin Date: Mon, 19 Sep 2011 10:40:45 +0000 (+0300) Subject: kvm tools: Fix INTx handling X-Git-Tag: next-20110920~2^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5b5ba3515ea43676fe71e88cbd8d91ddcf3ef273;p=karo-tx-linux.git kvm tools: Fix INTx handling 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 --- diff --git a/tools/kvm/virtio/pci.c b/tools/kvm/virtio/pci.c index 7743431552af..f01851bc174b 100644 --- a/tools/kvm/virtio/pci.c +++ b/tools/kvm/virtio/pci.c @@ -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;