Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 786

kvm-83-270.el5_11.src.rpm

From dc37c352502491c23bba26c1e0354303fd03a972 Mon Sep 17 00:00:00 2001
From: Yaniv Kamay <ykamay@redhat.com>
Date: Sun, 7 Jun 2009 23:21:06 +0300
Subject: [PATCH] vdi_port: call disconnect on reset #504463

Hi,

Attaching patch for bug 504463

Thanks,
Yaniv

>From bfc16ca2322cbe9b98b18271422207527b14dbd6 Mon Sep 17 00:00:00 2001
From: Yaniv Kamay <ykamay@redhat.com>
Date: Sun, 7 Jun 2009 14:47:14 +0300
Subject: [PATCH] vdi_port: call disconnect on reset #504463

Message-ID: <4A2C2132.8080500@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Upstream-status: not-applicable
Acked-by: Izik Eidus <ieidus@redhat.com>
Acked-by: Arnon Gilboa <agilboa@redhat.com>
Acked-by: Dor Laor <dlaor@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Bugzilla: 504237
---
 qemu/hw/qxl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qemu/hw/qxl.c b/qemu/hw/qxl.c
index f8f3eb6..107aeb1 100644
--- a/qemu/hw/qxl.c
+++ b/qemu/hw/qxl.c
@@ -1784,9 +1784,9 @@ static void vdi_port_reset(PCIVDIPortDevice *d)
 static void vdi_port_reset_handler(void *opaque)
 {
     PCIVDIPortDevice *d = (PCIVDIPortDevice *)opaque;
-#ifdef CONFIG_SPICE
-    vdi_port_unregister_interface(d);
-#endif
+    if (d->connected) {
+        vdi_port_dev_disconnect(d);
+    }
     vdi_port_reset(d);
 }
 
-- 
1.6.3.rc4.29.g8146