public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* binding/unbinding devices to vfio-pci
@ 2013-07-02 14:15 Yoder Stuart-B08248
  2013-07-02 14:46 ` Alex Williamson
  0 siblings, 1 reply; 5+ messages in thread
From: Yoder Stuart-B08248 @ 2013-07-02 14:15 UTC (permalink / raw)
  To: Alex Williamson
  Cc: kvm@vger.kernel.org list, Alexander Graf, Bhushan Bharat-R65777,
	a.motakis@virtualopensystems.com,
	virtualization@lists.linux-foundation.org

Alex,

I'm trying to think through how binding/unbinding of devices will
work with VFIO for platform devices and have a couple of questions
about how vfio-pci works.

When you bind a device to vfio-pci, e.g.:
# echo 1102 0002 > /sys/bus/pci/drivers/vfio-pci/new_id

...I understand that the echo into 'new_id' tells the
vfio pci driver that it now handles the specified PCI ID.

But now there are 2 drivers that handle that PCI ID,
the original host driver and vfio-pci.   Say that
you hotplug a PCI device that matches that ID.   Which of
the 2 drivers are going to get bound to the device?

Also, if you unbind a device from vfio-pci and want to
bind it again to the normal host driver you would just
echo the full device info into the 'bind' sysfs file
for the host driver, right?

    echo 0000:06:0d.0 > /sys/bus/pci/drivers/...

Thanks,
Stuart


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-02 15:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02 14:15 binding/unbinding devices to vfio-pci Yoder Stuart-B08248
2013-07-02 14:46 ` Alex Williamson
2013-07-02 15:13   ` Yoder Stuart-B08248
2013-07-02 15:22     ` Alex Williamson
2013-07-02 16:25     ` Hannes Reinecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox