Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-18 Thread Linhaifeng
On 2014/9/18 13:16, Michael S. Tsirkin wrote: On Thu, Sep 18, 2014 at 08:45:37AM +0800, Linhaifeng wrote: On 2014/9/17 17:56, Michael S. Tsirkin wrote: On Wed, Sep 17, 2014 at 05:39:04PM +0800, Linhaifeng wrote: I think maybe is not need for the backend to wait for response. There is

Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-18 Thread Michael S. Tsirkin
On Thu, Sep 18, 2014 at 08:39:57PM +0800, Linhaifeng wrote: On 2014/9/18 13:16, Michael S. Tsirkin wrote: On Thu, Sep 18, 2014 at 08:45:37AM +0800, Linhaifeng wrote: On 2014/9/17 17:56, Michael S. Tsirkin wrote: On Wed, Sep 17, 2014 at 05:39:04PM +0800, Linhaifeng wrote: I think

[Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-17 Thread Michael S. Tsirkin
Reply-To: Thinking about the vhost-user protocol, VHOST_SET_MEM_TABLE is used to update the memory mappings. So shouldn't we want for response? Otherwise e.g. guest can start using the memory that vhost-user can't access. Similarly, with an IOMMU vhost-user might access memory it shouldn't.

Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-17 Thread Linhaifeng
I think maybe is not need for the backend to wait for response. There is another way.vhost-user send VHOST_GET_MEM_TABLE to qemu then qemu send VHOST_SET_MEM_TABLE to update the regions of vhost-user.same as other command. If qemu could response the request of the vhost-user.the vhost-user

Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-17 Thread Michael S. Tsirkin
On Wed, Sep 17, 2014 at 05:39:04PM +0800, Linhaifeng wrote: I think maybe is not need for the backend to wait for response. There is another way.vhost-user send VHOST_GET_MEM_TABLE to qemu then qemu send VHOST_SET_MEM_TABLE to update the regions of vhost-user.same as other command. If

Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-17 Thread Linhaifeng
On 2014/9/17 17:56, Michael S. Tsirkin wrote: On Wed, Sep 17, 2014 at 05:39:04PM +0800, Linhaifeng wrote: I think maybe is not need for the backend to wait for response. There is another way.vhost-user send VHOST_GET_MEM_TABLE to qemu then qemu send VHOST_SET_MEM_TABLE to update the

Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-17 Thread Linhaifeng
On 2014/9/17 17:56, Michael S. Tsirkin wrote: On Wed, Sep 17, 2014 at 05:39:04PM +0800, Linhaifeng wrote: I think maybe is not need for the backend to wait for response. There is another way.vhost-user send VHOST_GET_MEM_TABLE to qemu then qemu send VHOST_SET_MEM_TABLE to update the

Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-17 Thread Michael S. Tsirkin
On Thu, Sep 18, 2014 at 08:45:37AM +0800, Linhaifeng wrote: On 2014/9/17 17:56, Michael S. Tsirkin wrote: On Wed, Sep 17, 2014 at 05:39:04PM +0800, Linhaifeng wrote: I think maybe is not need for the backend to wait for response. There is another way.vhost-user send

Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply?

2014-09-17 Thread Michael S. Tsirkin
On Thu, Sep 18, 2014 at 10:39:00AM +0800, Linhaifeng wrote: On 2014/9/17 17:56, Michael S. Tsirkin wrote: On Wed, Sep 17, 2014 at 05:39:04PM +0800, Linhaifeng wrote: I think maybe is not need for the backend to wait for response. There is another way.vhost-user send