Re: [Qemu-devel] [PATCH v5 13/13] serial: chardev hotswap support

2017-07-05 Thread Paolo Bonzini
On 05/07/2017 16:02, Anton Nefedov wrote: > { > -if (!qemu_chr_fe_get_driver(&s->chr)) { > +if (!qemu_chr_fe_backend_connected(&s->chr)) { > error_setg(errp, "Can't create serial device, empty char device"); Same here. Paolo

Re: [Qemu-devel] [PATCH v5 13/13] serial: chardev hotswap support

2017-07-05 Thread Michael S. Tsirkin
On Wed, Jul 05, 2017 at 05:02:04PM +0300, Anton Nefedov wrote: > for a backend change, a number of ioctls has to be replayed to sync > the current setup of a frontend to a backend tty. This is hopefully > enough so we don't have to track, store and replay the whole original > control byte sequence.

[Qemu-devel] [PATCH v5 13/13] serial: chardev hotswap support

2017-07-05 Thread Anton Nefedov
for a backend change, a number of ioctls has to be replayed to sync the current setup of a frontend to a backend tty. This is hopefully enough so we don't have to track, store and replay the whole original control byte sequence. Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievsk