summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaniv Kamay <ykamay@redhat.com>2009-06-07 23:21:06 +0300
committerEduardo Habkost <ehabkost@redhat.com>2009-06-08 14:52:58 -0300
commitdc37c352502491c23bba26c1e0354303fd03a972 (patch)
tree26bdbb88d67c9ad9813fa2b2978a95196e82ee89
parent10f183f3227cb9c0d49ccc396dc65d86b1aeb0df (diff)
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
-rw-r--r--qemu/hw/qxl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu/hw/qxl.c b/qemu/hw/qxl.c
index f8f3eb63..107aeb13 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);
}