From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h13bf-0001o8-IX for qemu-devel@nongnu.org; Tue, 05 Mar 2019 01:31:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h13be-0001ur-ON for qemu-devel@nongnu.org; Tue, 05 Mar 2019 01:31:15 -0500 Received: from mga04.intel.com ([192.55.52.120]:63368) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h13be-0001sE-EB for qemu-devel@nongnu.org; Tue, 05 Mar 2019 01:31:14 -0500 Date: Tue, 5 Mar 2019 14:27:48 +0800 From: Yi Sun Message-ID: <20190305062748.GL26129@yi.y.sun> References: <1551753295-30167-1-git-send-email-yi.y.sun@linux.intel.com> <20190305030934.GH1657@xz-x1> <20190305032424.GJ26129@yi.y.sun> <20190305044836.GI1657@xz-x1> <20190305051553.GK26129@yi.y.sun> <20190305053611.GJ1657@xz-x1> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190305053611.GJ1657@xz-x1> Subject: Re: [Qemu-devel] [PATCH v1 0/3] intel_iommu: support scalable mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, mst@redhat.com, marcel.apfelbaum@gmail.com, jasowang@redhat.com, kevin.tian@intel.com, yi.l.liu@intel.com, yi.y.sun@intel.com On 19-03-05 13:36:12, Peter Xu wrote: > On Tue, Mar 05, 2019 at 01:15:53PM +0800, Yi Sun wrote: > > [...] > > > > > w/o passthr > > > > -device intel-iommu \ > > > > -netdev tap,id=net1,vhost=off|on \ > > > > -device virtio-net-pci,netdev=net1 \ > > > > > > Virtio devices require explicit enabling of DMAR: > > > > > > https://wiki.qemu.org/Features/VT-d#With_Virtio_Devices > > > > > > Otherwise it could probably still be bypassing the translation unit. > > > > > > If you retest any, please feel free to skip some of the tests like > > > kernel build. Quick netperf should work, which can save you time. > > > > > Thanks! Just made a quick test. It works well. Please check below > > command. > > > > -device intel-iommu,intremap=on,device-iotlb=on \ > > -netdev tap,id=net1,vhost=off \ > > -device ioh3420,id=pcie.1,chassis=1 \ > > -device > > virtio-net-pci,bus=pcie.1,netdev=net1,disable-legacy=on,disable-modern=off,iommu_platform=on,ats=on > > \ > > Please also consider to try vhost=on with/without iommu=pt. > Just tested vhost=on/off with/without iommu=pt for legacy mode. All pass. > Regards, > > -- > Peter Xu