From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUBik-0005ju-KO for qemu-devel@nongnu.org; Wed, 17 Sep 2014 05:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUBid-0007Ac-36 for qemu-devel@nongnu.org; Wed, 17 Sep 2014 05:40:18 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:16570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUBic-0006wT-9x for qemu-devel@nongnu.org; Wed, 17 Sep 2014 05:40:11 -0400 Message-ID: <541956B8.1070203@huawei.com> Date: Wed, 17 Sep 2014 17:39:04 +0800 From: Linhaifeng MIME-Version: 1.0 References: <20140917083815.GA10450@redhat.com> In-Reply-To: <20140917083815.GA10450@redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] vhost-user: VHOST_SET_MEM_TABLE, VHOST_SET_VRING_CALL need a reply? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, n.nikolaev@virtualopensystems.com, jerry.lilijun@huawei.com 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 could update date at anytime. I think it's very useful for Commercialization. On 2014/9/17 16:38, Michael S. Tsirkin wrote: > 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. > > VHOST_SET_VRING_CALL is used for MSI-X masking. > Again, after vector is masted by switching the call fd, > backend shouldn't assert the old one. > > Thoughts? > >