From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Multi-bridged PCIe devices (Was: Re: iommuu/vt-d issues with LSI MegaSAS (PERC5i)) Date: Wed, 11 Sep 2013 15:56:29 +0300 Message-ID: <20130911125629.GM2924@reaktio.net> References: <8c1b11eec8ed133e55222fa57b4c08a8@mail.shatteredsilicon.net> <523076B602000078000F2627@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VJjyE-0007FN-5W for xen-devel@lists.xenproject.org; Wed, 11 Sep 2013 12:56:34 +0000 Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Gordan Bobic Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Wed, Sep 11, 2013 at 01:19:44PM +0100, Gordan Bobic wrote: > On Wed, 11 Sep 2013 12:57:10 +0100, "Jan Beulich" > wrote: > >>>>On 11.09.13 at 13:44, Gordan Bobic wrote: > >>This got me thinking - if the problem is broken IOMMU > >>implementation, > >> is the IOMMU _actually_ required for PCI passthrough to HVM > >> guests if all the memory holes and BARs are made exactly the same > >> in dom0 and domU? If vBAR=pBAR, then surely there is no memory > >> range remapping to be done anyway - which means that there > >> is no need for the strict IOMMU requirements (over and above > >> the requirements and caveats of PV domUs). > > > >But with this you ignore the need to handle device bus mastering > >activities. In order to work without IOMMU, the guest's memory > >addresses would also require guest-physical = machine-physical. > > Hmm... that would be harder to achieve, mainly due to legacy > stuff like base memory. But if (fingers crossed) DMA doesn't > occur below 1MB, maybe the map can be bodged to emulate the > addresses below 1MB, carve out as small a chunk of 32-bit > memory as we can get away with for each guest, and map the > rest with vmem=pmem in 64-bit memory range. But you are > right - that gets way more complicated than I originally > envisaged - all for the sake of supporting legacy > and Steam boot-loader systems. :( > I don't know the details but many years ago there was a patch to allow PCI passthru to HVM guests without an IOMMU.. I think it's linked on Xen pcipassthrough wiki page. It had a limitation that only one HVM guest was supported for PCI passthru. -- Pasi