From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muli Ben-Yehuda Subject: Re: kvm pci passthrough Date: Thu, 30 Oct 2008 14:26:50 +0200 Message-ID: <20081030122650.GI7208@il.ibm.com> References: <9c21eeae0810291744x7f59c17y27cbbda759080308@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: David Brown Return-path: Received: from mtagate4.de.ibm.com ([195.212.29.153]:39363 "EHLO mtagate4.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752482AbYJ3M1g (ORCPT ); Thu, 30 Oct 2008 08:27:36 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id m9UCRYrd159602 for ; Thu, 30 Oct 2008 12:27:34 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9UCRY4s3735772 for ; Thu, 30 Oct 2008 13:27:34 +0100 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9UCRYCR004795 for ; Thu, 30 Oct 2008 13:27:34 +0100 Content-Disposition: inline In-Reply-To: <9c21eeae0810291744x7f59c17y27cbbda759080308@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Oct 29, 2008 at 05:44:54PM -0700, David Brown wrote: > I was wondering what the status of kvm pci passthrough is? > Especially the kind where I don't have vt-d? Where are the parts to > play with? Is there any documentation you can point me to? Hi David, The kind where you *do* have VT-d is now included in the kernel and userspace trees, and should "just work" (tell us if it doesn't). You should clone the kernel and userspace trees, verify that the device assignment patches are included in the userspace tree (they were applied just now and may take some time to sync) and then run the guest with: -pcidevice host=bus:dev.func Where the bus, dev, and func are what lspci shows you for the device (on the host). You should also make sure that the device isn't used by any driver on the host first. For the other kinds (pvdma-without-iommu and reserved mem) I don't know of the latest status. Cheers, Muli -- The First Workshop on I/O Virtualization (WIOV '08) Dec 2008, San Diego, CA, http://www.usenix.org/wiov08/ <-> SYSTOR 2009---The Israeli Experimental Systems Conference http://www.haifa.il.ibm.com/conferences/systor2009/