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

login
register
mail settings
Submitter Andreas Färber
Date July 31, 2013, 11:28 p.m.
Message ID <1375313326-14966-1-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/263840/
State New
Headers show

Comments

Andreas Färber - July 31, 2013, 11:28 p.m.
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(+)
Amit Shah - Aug. 2, 2013, 5:30 a.m.
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.
Applied.  Thanks.

Regards,

Anthony Liguori

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;