Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: Dominic Eschweiler <eschweiler@fias.uni-frankfurt.de>
Cc: kvm@vger.kernel.org
Subject: Re: vfio problems
Date: Thu, 04 Oct 2012 08:27:53 -0600	[thread overview]
Message-ID: <1349360873.2759.37.camel@ul30vt.home> (raw)
In-Reply-To: <1349343630.3551.9.camel@blech>

On Thu, 2012-10-04 at 11:40 +0200, Dominic Eschweiler wrote:
> Hi,
> 
> I just recently started to play with vfio, since the new Kernel 3.6
> comes directly with an integrated vfio-stack. My problem currently is,
> that I'm not able to bind the vfio-pci to the (unused) smbus controller
> in my laptop. 
> 
> Here are the steps I did and the related results:
> 
> 
> # modprobe vfio-pci
> 
> [ 1609.065705] VFIO - User Level meta-driver version: 0.3
> 
> # lspci
> 
> ...
> 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family
> SMBus Controller (rev 05)
> ...
> 
> # lspci -n -s 0000:00:1f.3
> 
> 00:1f.3 0c05: 8086:1c22 (rev 05)
> 
> # echo 8086 1c22 > /sys/bus/pci/drivers/vfio-pci/new_id
> 
> [ 4485.759148] vfio-pci: probe of 0000:00:1f.3 failed with error -22
> 
> 
> I omitted the unbind step, which is described in the documentation,
> since the device is not claimed by any driver at all. Also the "error
> -22" statement isn't really helping in this case. 
> 
> Any ideas?
> 

What does this report?

readlink /sys/bus/pci/devices/0000\:00\:1f.3/iommu_group

The likely cause of an EINVAL for an endpoint device is that it's not
part of an IOMMU group, which may mean you don't have an IOMMU enabled.
You can also look in /sys/kernel/iommu_groups to see the groups.
Thanks,

Alex


      reply	other threads:[~2012-10-04 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04  9:40 vfio problems Dominic Eschweiler
2012-10-04 14:27 ` Alex Williamson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1349360873.2759.37.camel@ul30vt.home \
    --to=alex.williamson@redhat.com \
    --cc=eschweiler@fias.uni-frankfurt.de \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox