From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c52ge-0003EP-OX for qemu-devel@nongnu.org; Thu, 10 Nov 2016 22:39:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c52gb-0003yw-Ja for qemu-devel@nongnu.org; Thu, 10 Nov 2016 22:39:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43810) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c52gb-0003xy-Dt for qemu-devel@nongnu.org; Thu, 10 Nov 2016 22:39:29 -0500 Date: Fri, 11 Nov 2016 05:39:26 +0200 From: "Michael S. Tsirkin" Message-ID: <20161111053836-mutt-send-email-mst@kernel.org> References: <1478603064-32562-1-git-send-email-bd.aviv@gmail.com> <1478603064-32562-2-git-send-email-bd.aviv@gmail.com> <20161109235951-mutt-send-email-mst@kernel.org> <41326d6d-7cdd-afba-ca13-8063e077bfbd@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <41326d6d-7cdd-afba-ca13-8063e077bfbd@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v6 1/3] IOMMU: add option to enable VTD_CAP_CM to vIOMMU capility exposoed to guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: "Aviv B.D" , qemu-devel@nongnu.org, Jan Kiszka , Alex Williamson , Peter Xu On Fri, Nov 11, 2016 at 10:32:42AM +0800, Jason Wang wrote: >=20 >=20 > On 2016=E5=B9=B411=E6=9C=8810=E6=97=A5 06:00, Michael S. Tsirkin wrote: > > On Wed, Nov 09, 2016 at 03:28:02PM +0800, Jason Wang wrote: > > > > > > > > > > > >On 2016=E5=B9=B411=E6=9C=8808=E6=97=A5 19:04, Aviv B.D wrote: > > > > > >From: "Aviv Ben-David" > > > > > > > > > > > >This capability asks the guest to invalidate cache before each= map operation. > > > > > >We can use this invalidation to trap map operations in the hyp= ervisor. > > > > > > > >Hi: > > > > > > > >Like I've asked twice in the past, I want to know why don't you ca= che > > > >translation faults as what spec required (especially this is a gue= st visible > > > >behavior)? > > > > > > > >Btw, please cc me on posting future versions. > > > > > > > >Thanks > > Caching isn't guest visible. >=20 > Seems not, if one fault mapping were cached by IOTLB. Guest can notice = this > behavior. Sorry, I don't get what you are saying. > > Spec just says you*can* cache, > > not that you must. > >=20 >=20 > Yes, but what did in this patch is "don't". What I suggest is just a "c= an", > since anyway the IOTLB entries were limited and could be replaced by ot= her. >=20 > Thanks Have trouble understanding this. Can you given an example of a guest visible difference?