Re: [Qemu-devel] [PATCH 18/40] char: remove class kind field

2017-01-13 Thread Marc-André Lureau
Hi - Original Message - > On 01/11/2017 11:29 AM, Marc-André Lureau wrote: > > The class kind is necessary to lookup the chardev name in > > qmp_chardev_add() after calling qemu_chr_new_from_opts() and to set > > the appropriate ChardevBackend (mainly to free the right > > fields). > > >

Re: [Qemu-devel] [PATCH 18/40] char: remove class kind field

2017-01-12 Thread Eric Blake
On 01/11/2017 11:29 AM, Marc-André Lureau wrote: > The class kind is necessary to lookup the chardev name in > qmp_chardev_add() after calling qemu_chr_new_from_opts() and to set > the appropriate ChardevBackend (mainly to free the right > fields). > > qemu_chr_new_from_opts() can be changed to

[Qemu-devel] [PATCH 18/40] char: remove class kind field

2017-01-11 Thread Marc-André Lureau
The class kind is necessary to lookup the chardev name in qmp_chardev_add() after calling qemu_chr_new_from_opts() and to set the appropriate ChardevBackend (mainly to free the right fields). qemu_chr_new_from_opts() can be changed to use a non-qmp function using the chardev class typename.