qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH RESEND for-1.6] virtio-console: Use exitfn for virtserialport, too
@ 2013-07-31 23:28 Andreas Färber
  2013-08-02  5:30 ` Amit Shah
  2013-08-14 16:29 ` Anthony Liguori
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Färber @ 2013-07-31 23:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Amit Shah, Anthony Liguori, Andreas Färber, anthony,
	qemu-stable

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(+)

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;
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-14 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31 23:28 [Qemu-devel] [PATCH RESEND for-1.6] virtio-console: Use exitfn for virtserialport, too Andreas Färber
2013-08-02  5:30 ` Amit Shah
2013-08-14 16:29 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).