virtio-console: Use exitfn for virtserialport, too
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.
Signed-off-by Andreas Färber <[email protected]>
---
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
@@ -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
Quoted 5 lines · Andreas Färber
virtconsole and virtserialport are identical in every other aspect except for the distinguishing
VirtIOSerialPortClass::is_consolefield.Signed-off-by Andreas Färber <[email protected]>
Reviewed-by Amit Shah <[email protected]>
Please pick for 1.6 and 1.5.
Thanks,
Amit
Anthony Liguori
AppliedApplied. Thanks.
Regards,
Anthony Liguori