summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDor Laor <dlaor@redhat.com>2009-07-29 17:36:13 +0300
committerEduardo Habkost <ehabkost@redhat.com>2009-07-29 13:13:55 -0300
commit1784b2472640245f5434a7b19fe5bb9a0d7bc035 (patch)
treea0ac517c0019a9fa9d15c6e2f8da4268739bb86a
parent3acc655cc2e7e2fe04781ae270559ad17879a0c7 (diff)
Reset irq line on qxl and vdi on guest reset
We need this patch in before the final freeze. Please help with flags and ACKS Thanks. >From fe25bb63a454431d90d28fd35d2ee3c3c5d025b2 Mon Sep 17 00:00:00 2001 From: Dor Laor <dor@redhat.com> Date: Wed, 29 Jul 2009 17:24:26 +0300 Subject: [PATCH] Reset irq line on qxl and vdi on guest reset BZ 514526 Signed-off-by: Yaniv Kamay ykamay@redhat.com> Signed-off-by: Dor Laor <dor@redhat.com> Message-ID: <4A705E5D.40508@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Bugzilla: 514526 RH-Upstream-status: not-applicable Acked-by: "Yonit Halperin" <yhalperi@redhat.com> Acked-by: Izik Eidus <ieidus@redhat.com> Acked-by: Arnon Gilboa <agilboa@redhat.com>
-rw-r--r--qemu/hw/qxl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu/hw/qxl.c b/qemu/hw/qxl.c
index 107aeb13..8a02d073 100644
--- a/qemu/hw/qxl.c
+++ b/qemu/hw/qxl.c
@@ -663,6 +663,7 @@ static void qxl_reset(PCIQXLDevice *d)
d->state.mode = QXL_MODE_UNDEFINED;
qxl_notify_mode_change(d);
}
+ qemu_set_irq(d->pci_dev.irq[0], irq_level(d));
}
static inline void vdi_port_set_dirty(PCIVDIPortDevice *d, void *start, uint32_t length)
@@ -1788,6 +1789,7 @@ static void vdi_port_reset_handler(void *opaque)
vdi_port_dev_disconnect(d);
}
vdi_port_reset(d);
+ qemu_set_irq(d->pci_dev.irq[0], vdi_port_irq_level(d));
}
static void vdi_port_save(QEMUFile* f, void* opaque)