From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUAhi-0008KJ-0p for qemu-devel@nongnu.org; Wed, 17 Sep 2014 04:35:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUAhb-0005qT-Ts for qemu-devel@nongnu.org; Wed, 17 Sep 2014 04:35:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUAhb-0005hc-Mv for qemu-devel@nongnu.org; Wed, 17 Sep 2014 04:35:03 -0400 Date: Wed, 17 Sep 2014 11:38:15 +0300 From: "Michael S. Tsirkin" Message-ID: <20140917083815.GA10450@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [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: Linhaifeng Cc: qemu-devel@nongnu.org, n.nikolaev@virtualopensystems.com, jerry.lilijun@huawei.com 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?