Re: [Qemu-devel] [PATCH v2 5/9] char: forbid direct chardevice access for hotswap devices

2017-05-25 Thread Marc-André Lureau
On Fri, May 19, 2017 at 4:49 PM Anton Nefedov wrote: > qemu_chr_fe_get_driver() is unsafe, frontends with hotswap support > should not access CharDriver ptr directly as CharDriver might change. > Signed-off-by: Anton Nefedov > Reviewed-by: Vladimir Sementsov-Ogievskiy > I would move this patc

[Qemu-devel] [PATCH v2 5/9] char: forbid direct chardevice access for hotswap devices

2017-05-19 Thread Anton Nefedov
qemu_chr_fe_get_driver() is unsafe, frontends with hotswap support should not access CharDriver ptr directly as CharDriver might change. Signed-off-by: Anton Nefedov Reviewed-by: Vladimir Sementsov-Ogievskiy --- chardev/char.c| 7 +++ include/sysemu/char.h | 10 ++ 2 files