From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlkOH-0005Zp-Tr for qemu-devel@nongnu.org; Fri, 13 Jan 2012 11:54:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlkOG-0001Ze-W8 for qemu-devel@nongnu.org; Fri, 13 Jan 2012 11:54:09 -0500 Received: from mail-gx0-f173.google.com ([209.85.161.173]:56948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlkOG-0001ZP-QS for qemu-devel@nongnu.org; Fri, 13 Jan 2012 11:54:08 -0500 Received: by ggnk1 with SMTP id k1so2111556ggn.4 for ; Fri, 13 Jan 2012 08:54:07 -0800 (PST) Message-ID: <4F1061AB.7040502@codemonkey.ws> Date: Fri, 13 Jan 2012 10:54:03 -0600 From: Anthony Liguori MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Amit Shah Cc: Markus Armbruster , qemu list , Gerd Hoffmann On 01/13/2012 03:59 AM, Amit Shah wrote: > 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. Applied. Thanks. Regards, Anthony Liguori > > 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(-) >