From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rldqq-0000OP-6R for qemu-devel@nongnu.org; Fri, 13 Jan 2012 04:55:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rldqp-0001Oe-4U for qemu-devel@nongnu.org; Fri, 13 Jan 2012 04:55:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rldqo-0001Oa-UE for qemu-devel@nongnu.org; Fri, 13 Jan 2012 04:55:11 -0500 From: Amit Shah Date: Fri, 13 Jan 2012 15:24:57 +0530 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] qdev: disassociate chardev from device on device exit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Amit Shah , Gerd Hoffmann , Markus Armbruster When the device is going away (e.g., hot-unplug), an associated chardev should be freed and made available for use for other devices. An earlier hack did this for virtio serial ports, do it in a generic way and remove the virtio-serial specific hack. Amit Shah (2): qdev: Add a 'free' method to disassociate chardev from qdev device virtio-console: no need to remove char handlers explicitly hw/qdev-properties.c | 11 +++++++++++ hw/virtio-console.c | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) -- 1.7.7.5