diff mbox

[RESEND,for-1.6] virtio-console: Use exitfn for virtserialport, too

Message ID 1375313326-14966-1-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber July 31, 2013, 11:28 p.m. UTC
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ärber <afaerber@suse.de>
---
 Cherry-picked and tested via device_del.

 hw/char/virtio-console.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Amit Shah Aug. 2, 2013, 5:30 a.m. UTC | #1
On (Thu) 01 Aug 2013 [01:28:46], Andreas Färber wrote:
> 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ärber <afaerber@suse.de>

Reviewed-by: Amit Shah <amit.shah@redhat.com>

Please pick for 1.6 and 1.5.

Thanks,

		Amit
Anthony Liguori Aug. 14, 2013, 4:29 p.m. UTC | #2
Applied.  Thanks.

Regards,

Anthony Liguori
diff mbox

Patch

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 *klass, void *data)
     VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_CLASS(klass);
 
     k->init = virtconsole_initfn;
+    k->exit = virtconsole_exitfn;
     k->have_data = flush_buf;
     k->set_guest_connected = set_guest_connected;
     dc->props = virtserialport_properties;