On Fri, 4 Jan 2019 at 01:13, Michael S. Tsirkin <m...@redhat.com> wrote: > > On Thu, Jan 03, 2019 at 06:18:14PM +0800, elohi...@gmail.com wrote: > > From: Xie Yongji <xieyon...@baidu.com> > > > > This patch introduces two new messages VHOST_USER_GET_SHM_SIZE > > and VHOST_USER_SET_SHM_FD to support providing shared > > memory to backend. > > > > Firstly, qemu uses VHOST_USER_GET_SHM_SIZE to get the > > required size of shared memory from backend. Then, qemu > > allocates memory and sends them back to backend through > > VHOST_USER_SET_SHM_FD. > > So this does create a security concern that remote > can supply a very big area. > How about returning a buffer from client to qemu? >
That's a good idea! Will do it v4. Thanks, Yongji