From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Cran Subject: Re: Problems using vfio pcie passthrough (pci-assign works) Date: Thu, 02 Oct 2014 09:42:41 -0600 Message-ID: <542D7271.30502@cran.org.uk> References: <542D55A4.6000005@cran.org.uk> <1412259902.7360.253.camel@ul30vt.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: unlisted-recipients:; (no To-header on input) Return-path: Received: from muon.bluestop.org ([204.109.60.166]:48057 "EHLO muon.cran.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751448AbaJBPmr (ORCPT ); Thu, 2 Oct 2014 11:42:47 -0400 Received: from [10.0.10.100] (c-67-182-239-81.hsd1.ut.comcast.net [67.182.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 3750B1D652C for ; Thu, 2 Oct 2014 09:42:46 -0600 (MDT) In-Reply-To: <1412259902.7360.253.camel@ul30vt.home> Sender: kvm-owner@vger.kernel.org List-ID: On 10/2/2014 8:25 AM, Alex Williamson wrote: > What's the device you're trying to assign and the scripts you're using > to do so? vfio-pci is fully supported, but I'd recommend a kernel newer > than 3.11 (maybe a newer QEMU too, you didn't specify a version) unless > openSUSE is specifically pulling vfio features and fixes into their > distro. vfio does work with OVMF, most of the testing of this is with > GPU assignment. It does require an OVMF image built from a fairly > recent tree (not more than a few months old), but if you're getting into > the guest OS you're probably fine. Provide more details and I can try > to help. Thanks, the device is a mass storage device that I work on; it's in iommu group 1 so the script I'm running is: for i in $(ls /sys/kernel/iommu_groups/1/devices/); do echo $i | sudo tee \ /sys/kernel/iommu_groups/1/devices/$i/driver/unbind VEN=$(cat /sys/kernel/iommu_groups/1/devices/$i/vendor) DEV=$(cat /sys/kernel/iommu_groups/1/devices/$i/device) echo $VEN $DEV | sudo tee \ /sys/bus/pci/drivers/vfio-pci/new_id done I started out trying to use the version of qemu that openSUSE provides which is 1.6.2 but I also built 2.1.2 from source and that didn't help. In terms of OVMF, I've tried an OVMF-pure-efi.fd binary from https://www.kraxel.org/repos/jenkins/edk2/ as well as building a debug OVMF.fd binary from the edk2 project (https://github.com/tianocore/edk2/commit/23a2df76783ad7694918916f28e24cd1a1f84daf). If you think it might help, I can certainly install a newer kernel. -- Bruce