[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] virtio-serial: Unplug port if guest reports failure
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH] virtio-serial: Unplug port if guest reports failure in adding it |
Date: |
Tue, 31 Aug 2010 13:52:22 +0530 |
If a guest reports failure in adding a port, we shouldn't keep it lying
around.
Signed-off-by: Amit Shah <address@hidden>
---
hw/virtio-serial-bus.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c
index 74ba5ec..86c2364 100644
--- a/hw/virtio-serial-bus.c
+++ b/hw/virtio-serial-bus.c
@@ -303,6 +303,7 @@ static void handle_control_message(VirtIOSerial *vser, void
*buf, size_t len)
if (!cpkt.value) {
error_report("virtio-serial-bus: Guest failure in adding port %u
for device %s\n",
port->id, vser->bus->qbus.name);
+ qdev_unplug(&port->dev);
break;
}
/*
--
1.7.2.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] virtio-serial: Unplug port if guest reports failure in adding it,
Amit Shah <=