From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4fpD-0005dh-PJ for qemu-devel@nongnu.org; Wed, 31 Jul 2013 19:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4fp8-000372-99 for qemu-devel@nongnu.org; Wed, 31 Jul 2013 19:28:59 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 1 Aug 2013 01:28:46 +0200 Message-Id: <1375313326-14966-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH RESEND for-1.6] virtio-console: Use exitfn for virtserialport, too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah , Anthony Liguori , =?UTF-8?q?Andreas=20F=C3=A4rber?= , anthony@codemonkey.ws, qemu-stable@nongnu.org virtconsole and virtserialport are identical in every other aspect except for the distinguishing VirtIOSerialPortClass::is_console field. Cc: qemu-stable@nongnu.org Signed-off-by: Andreas F=C3=A4rber --- Cherry-picked and tested via device_del. hw/char/virtio-console.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/char/virtio-console.c b/hw/char/virtio-console.c index 6759e51..2e00ad2 100644 --- a/hw/char/virtio-console.c +++ b/hw/char/virtio-console.c @@ -185,6 +185,7 @@ static void virtserialport_class_init(ObjectClass *kl= ass, void *data) VirtIOSerialPortClass *k =3D VIRTIO_SERIAL_PORT_CLASS(klass); =20 k->init =3D virtconsole_initfn; + k->exit =3D virtconsole_exitfn; k->have_data =3D flush_buf; k->set_guest_connected =3D set_guest_connected; dc->props =3D virtserialport_properties; --=20 1.8.1.4