Re: [Qemu-devel] [PATCH v2 10/14] char: generalize qemu_chr_write_all()

2017-05-30 Thread Marc-André Lureau
Hi On Tue, May 30, 2017 at 1:09 AM Philippe Mathieu-Daudé wrote: > Hi Marc-André, > > On 05/29/2017 05:45 AM, Marc-André Lureau wrote: > > qemu_chr_fe_write() is similar to qemu_chr_write_all(): the later write > > all with a chardev backend. > > > > Make qemu_chr_write() and

Re: [Qemu-devel] [PATCH v2 10/14] char: generalize qemu_chr_write_all()

2017-05-29 Thread Philippe Mathieu-Daudé
Hi Marc-André, On 05/29/2017 05:45 AM, Marc-André Lureau wrote: qemu_chr_fe_write() is similar to qemu_chr_write_all(): the later write all with a chardev backend. Make qemu_chr_write() and qemu_chr_fe_write_buffer() take an 'all' argument. If false, handle 'partial' write the way

[Qemu-devel] [PATCH v2 10/14] char: generalize qemu_chr_write_all()

2017-05-29 Thread Marc-André Lureau
qemu_chr_fe_write() is similar to qemu_chr_write_all(): the later write all with a chardev backend. Make qemu_chr_write() and qemu_chr_fe_write_buffer() take an 'all' argument. If false, handle 'partial' write the way qemu_chr_fe_write() use to, and call qemu_chr_write() from qemu_chr_fe_write().