From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muli Ben-Yehuda Subject: Re: [PATCH] Enable non page boundary BAR device assignment Date: Wed, 16 Dec 2009 22:12:42 +0200 Message-ID: <20091216201242.GK2168@il.ibm.com> References: <1260486386-5898-1-git-send-email-agraf@suse.de> <20091211110535.GD29972@redhat.com> <4B27D26D.9050507@suse.de> <20091215182038.GA25704@redhat.com> <4B27D46F.6040300@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Michael S. Tsirkin" , kvm list , Gleb Natapov To: Alexander Graf Return-path: Received: from mtagate3.de.ibm.com ([195.212.17.163]:36740 "EHLO mtagate3.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964981AbZLPUjQ (ORCPT ); Wed, 16 Dec 2009 15:39:16 -0500 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.1/8.13.1) with ESMTP id nBGKdF6m011510 for ; Wed, 16 Dec 2009 20:39:15 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nBGKdFxM1187988 for ; Wed, 16 Dec 2009 21:39:15 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id nBGKdEMR015164 for ; Wed, 16 Dec 2009 21:39:14 +0100 Content-Disposition: inline In-Reply-To: <4B27D46F.6040300@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Dec 15, 2009 at 07:24:47PM +0100, Alexander Graf wrote: > Michael S. Tsirkin wrote: > > > I guess this means you'll have to find a device with a sub-page > > BAR to test this on, instead of hacking driver for a device with > > full page BAR. Did anyone ever try doing passthrough on an > > emulated device in nested virt? > > We don't emulate an IOMMU, so no. We have in-house patches to emulate VT-d, which work sufficiently well to run unmodified Linux drivers for QEMU's emulation of e1000 and LSI adapter, using unmodified Linux VT-d DMA-mapping code. The patches need some lovin', but they'll be coming eventually. Cheers, Muli -- Muli Ben-Yehuda | muli@il.ibm.com | +972-4-8281080 Manager, Virtualization and Systems Architecture Master Inventor, IBM Research -- Haifa Second Workshop on I/O Virtualization (WIOV '10): http://sysrun.haifa.il.ibm.com/hrl/wiov2010/