From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6BFv-0007BE-EK for qemu-devel@nongnu.org; Wed, 11 Apr 2018 04:37:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6BFq-0003Z5-41 for qemu-devel@nongnu.org; Wed, 11 Apr 2018 04:37:27 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51978 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f6BFp-0003Yh-Qy for qemu-devel@nongnu.org; Wed, 11 Apr 2018 04:37:21 -0400 Date: Wed, 11 Apr 2018 16:37:16 +0800 From: Peter Xu Message-ID: <20180411083716.GE13887@xz-mi> References: <20180411072027.5656-1-tiwei.bie@intel.com> <20180411080036.GD13887@xz-mi> <20180411082556.3hjaubnnw3hbpnp3@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180411082556.3hjaubnnw3hbpnp3@debian> Subject: Re: [Qemu-devel] [RFC] vhost-user: introduce F_NEED_ALL_IOTLB protocol feature List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tiwei Bie Cc: mst@redhat.com, jasowang@redhat.com, qemu-devel@nongnu.org, dan.daly@intel.com, cunming.liang@intel.com, zhihong.wang@intel.com On Wed, Apr 11, 2018 at 04:25:56PM +0800, Tiwei Bie wrote: > Hi Peter, > > On Wed, Apr 11, 2018 at 04:00:36PM +0800, Peter Xu wrote: > > On Wed, Apr 11, 2018 at 03:20:27PM +0800, Tiwei Bie wrote: > > > > [...] > > > > > This is just a RFC for now. It seems that, it doesn't work > > > as expected when guest is using kernel driver (To handle > > > this case, it seems that some RAM regions' events also need > > > to be listened). Any comments would be appreciated! Thanks! > > > > Hi, Tiwei, > > > > What's your kernel command line in the guest? Is iommu=pt there? > > Yeah, you are right! The related things in kernel command line are: > > iommu=pt intel_iommu=on > > Hmm, how will this param affect vIOMMU's behaviour?.. If iommu=pt is there, guest kernel will try to bypass IOMMU, the IOMMU regions will be disabled completely in that case, hence it's very possible that your IOMMU memory listeners won't get anything useful. Maybe you can consider removing iommu=pt in the guest parameter to see whether the guest kernel driver could work. -- Peter Xu