* [PATCH] call virtio_update_irq() to clear irq according isr
@ 2008-06-11 16:25 Laurent Vivier
2008-06-18 13:22 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Laurent Vivier @ 2008-06-11 16:25 UTC (permalink / raw)
To: kvm; +Cc: Anthony Liguori, Laurent Vivier
if we clear vdev->isr, it seems logic to call virtio_update_irq(vdev) to
update irq.
The bug appears when we boot with etherboot virtio driver which
never read the interrupt status and so never clear it.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
---
qemu/hw/virtio.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/qemu/hw/virtio.c b/qemu/hw/virtio.c
index 2ea1ebe..3429ac8 100644
--- a/qemu/hw/virtio.c
+++ b/qemu/hw/virtio.c
@@ -214,6 +214,7 @@ void virtio_reset(void *opaque)
vdev->queue_sel = 0;
vdev->status = 0;
vdev->isr = 0;
+ virtio_update_irq(vdev);
for(i = 0; i < VIRTIO_PCI_QUEUE_MAX; i++) {
vdev->vq[i].vring.desc = NULL;
--
1.5.2.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-18 13:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 16:25 [PATCH] call virtio_update_irq() to clear irq according isr Laurent Vivier
2008-06-18 13:22 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox