[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 for-4.0 2/7] vhost-user: Support providing sh
From: |
Yongji Xie |
Subject: |
Re: [Qemu-devel] [PATCH v3 for-4.0 2/7] vhost-user: Support providing shared memory to backend |
Date: |
Fri, 4 Jan 2019 11:20:42 +0800 |
On Fri, 4 Jan 2019 at 01:13, Michael S. Tsirkin <address@hidden> wrote:
>
> On Thu, Jan 03, 2019 at 06:18:14PM +0800, address@hidden wrote:
> > From: Xie Yongji <address@hidden>
> >
> > 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
- [Qemu-devel] [PATCH v3 for-4.0 0/7] vhost-user-blk: Add support for backend reconnecting, elohimes, 2019/01/03
- [Qemu-devel] [PATCH v3 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets, elohimes, 2019/01/03
- [Qemu-devel] [PATCH v3 for-4.0 2/7] vhost-user: Support providing shared memory to backend, elohimes, 2019/01/03
- [Qemu-devel] [PATCH v3 for-4.0 3/7] libvhost-user: Introduce vu_queue_map_desc(), elohimes, 2019/01/03
- [Qemu-devel] [PATCH v3 for-4.0 5/7] vhost-user-blk: Add support to provide shared memory to backend, elohimes, 2019/01/03
- [Qemu-devel] [PATCH v3 for-4.0 4/7] libvhost-user: Support recording inflight I/O in shared memory, elohimes, 2019/01/03
- [Qemu-devel] [PATCH v3 for-4.0 6/7] vhost-user-blk: Add support to reconnect backend, elohimes, 2019/01/03
- [Qemu-devel] [PATCH v3 for-4.0 7/7] contrib/vhost-user-blk: enable inflight I/O recording, elohimes, 2019/01/03