From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0zRo-0001tA-Pj for qemu-devel@nongnu.org; Mon, 13 Aug 2012 14:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0zRn-00066p-TS for qemu-devel@nongnu.org; Mon, 13 Aug 2012 14:33:04 -0400 Received: from p4fde0510.dip0.t-ipconnect.de ([79.222.5.16]:33987 helo=mail.maya.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0zRn-00066k-CY for qemu-devel@nongnu.org; Mon, 13 Aug 2012 14:33:03 -0400 Message-ID: <5029484E.2020808@01019freenet.de> Date: Mon, 13 Aug 2012 20:32:46 +0200 From: Andreas Hartmann MIME-Version: 1.0 References: <20120801050241.22163.78549.stgit@bling.home> <87pq6uvs52.fsf@codemonkey.ws> <1344867810.4683.21.camel@ul30vt.home> <20120813174834.7f4346c7@dualc.maya.org> <1344874489.4683.27.camel@ul30vt.home> <50292CFD.1080903@01019freenet.de> <1344877056.4683.55.camel@ul30vt.home> In-Reply-To: <1344877056.4683.55.camel@ul30vt.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/3] VFIO-based PCI device assignment for QEMU 1.2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: Anthony Liguori , kvm@vger.kernel.org, aik@ozlabs.ru, Jan Kiszka , qemu-devel@nongnu.org, Blue Swirl , Avi Kivity Alex Williamson wrote: > On Mon, 2012-08-13 at 18:36 +0200, Andreas Hartmann wrote: [...] >> If I'm using your qemu instead of qemu from kvm-0.15 (opensuse package), >> this error comes up when passing through a PCIe device, which works >> absolutely fine with kvm 0.15. I would have expected, that your qemu >> works with the legacy way of handling pcie passthrough, too (with >> pci-stub module). > > VFIO cannot work with pci-stub, the backends are fundamentally > different. KVM making use pci-stub to hold onto a device is actually > one of the design problems that VFIO is meant to correct. The other > significant interface change is use of IOMMU groups, which is actually > why VFIO works for some of your uses while pci-assign does not. > >> This would mean, that all users get errors if they use the traditional >> way. IOW: there are changes needed (which?) to move from kvm 0.15 to >> your qemu version. > > But the way we solve this is to make libvirt understand how to do both. > Then it can probe the qemu/kvm binary and host system to figure out > which is supported and use the correct device options based on what it > finds. Trying to do both via the same qemu command line doesn't make > sense to me, especially when the device setup is so different. Ok! I thought your qemu version still would understand the old way via pci-stub. But this obviously was a misunderstanding of mine :-(. Thanks, Andreas