From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RldvY-0004MS-Hn for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:00:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RldvR-00021j-Vo for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:00:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RldvR-00021X-BM for qemu-devel@nongnu.org; Fri, 13 Jan 2012 04:59:57 -0500 From: Amit Shah Date: Fri, 13 Jan 2012 15:29:46 +0530 Message-Id: Subject: [Qemu-devel] [PATCH v2 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. v2: - actually remove virtconsole_exitfn() 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 | 17 ----------------- 2 files changed, 11 insertions(+), 17 deletions(-) -- 1.7.7.5