Skip to contentSkip to conversation

virtio-console: Use exitfn for virtserialport, too

PATCH RESEND Applied Andreas Färber 3 participants 3 messages Jul 31, 2013 – Aug 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 virtio-console: Use exitfn for virtserialport, too

virtconsole and virtserialport are identical in every other aspect except for the distinguishing VirtIOSerialPortClass::is_console field.

---
Cherry-picked and tested via device_del.

 hw/char/virtio-console.c | 1 +
 1 file changed, 1 insertion(+)
hw/char/virtio-console.c +1 -0
index 6759e51..2e00ad2 100644
@@ -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;
Signature · 1 line
1.8.1.4