From 1784b2472640245f5434a7b19fe5bb9a0d7bc035 Mon Sep 17 00:00:00 2001 From: Dor Laor <dlaor@redhat.com> Date: Wed, 29 Jul 2009 17:36:13 +0300 Subject: [PATCH 1/2] 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> --- qemu/hw/qxl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/qemu/hw/qxl.c b/qemu/hw/qxl.c index 107aeb1..8a02d07 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) -- 1.6.3.rc4.29.g8146