All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] xen/pciback: support driver_override
@ 2016-09-22  8:45 Juergen Gross
  2016-09-22  8:45 ` [PATCH v3 1/3] xen/pciback: simplify pcistub device handling Juergen Gross
                   ` (7 more replies)
  0 siblings, 8 replies; 23+ messages in thread
From: Juergen Gross @ 2016-09-22  8:45 UTC (permalink / raw)
  To: linux-kernel, xen-devel; +Cc: boris.ostrovsky, david.vrabel, Juergen Gross

Support the driver_override scheme introduced with commit 782a985d7af2
("PCI: Introduce new device binding path using pci_dev.driver_override")

Today you'd need something like:

echo 0000:07:10.0 > /sys/bus/pci/devices/0000\:07\:10.0/driver/unbind
echo 0000:07:10.0 > /sys/bus/pci/drivers/pciback/new_slot
echo 0000:07:10.0 > /sys/bus/pci/drivers_probe

while with the patch you can use the same mechanism as for similar
drivers like pci-stub and vfio-pci:

echo pciback > /sys/bus/pci/devices/0000\:07\:10.0/driver_override
echo 0000:07:10.0 > /sys/bus/pci/devices/0000\:07\:10.0/driver/unbind
echo 0000:07:10.0 > /sys/bus/pci/drivers_probe

Changes in V3:
- Added new patches 1 and 2 to do some cleanup and preparatory work.
- patch 3: Add an assigned device to the slot list
- patch 3: Move override check up in order not to miss the PCI_HEADER_TYPE
  check.

Changes in V2:
- Removed now unused label.

*** BLURB HERE ***

Juergen Gross (3):
  xen/pciback: simplify pcistub device handling
  xen/pciback: avoid multiple entries in slot list
  xen/pciback: support driver_override

 drivers/xen/xen-pciback/pci_stub.c | 125 +++++++++++++++++++++++++------------
 1 file changed, 85 insertions(+), 40 deletions(-)

-- 
2.6.6

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

end of thread, other threads:[~2016-09-30 14:47 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-22  8:45 [PATCH v3 0/3] xen/pciback: support driver_override Juergen Gross
2016-09-22  8:45 ` [PATCH v3 1/3] xen/pciback: simplify pcistub device handling Juergen Gross
2016-09-22 20:57   ` Boris Ostrovsky
2016-09-22 20:57   ` Boris Ostrovsky
2016-09-22  8:45 ` Juergen Gross
2016-09-22  8:45 ` [PATCH v3 2/3] xen/pciback: avoid multiple entries in slot list Juergen Gross
2016-09-22 21:02   ` Boris Ostrovsky
2016-09-22 21:02   ` Boris Ostrovsky
2016-09-23  4:02     ` Juergen Gross
2016-09-23  4:02     ` Juergen Gross
2016-09-23 10:15     ` David Vrabel
2016-09-23 10:15     ` [Xen-devel] " David Vrabel
2016-09-28 17:22       ` Juergen Gross
2016-09-28 17:22       ` Juergen Gross
2016-09-22  8:45 ` Juergen Gross
2016-09-22  8:45 ` [PATCH v3 3/3] xen/pciback: support driver_override Juergen Gross
2016-09-22  8:45 ` Juergen Gross
2016-09-22 21:10   ` Boris Ostrovsky
2016-09-22 21:10   ` Boris Ostrovsky
2016-09-23  4:06     ` Juergen Gross
2016-09-23  4:06     ` Juergen Gross
2016-09-30 14:47 ` [PATCH v3 0/3] " David Vrabel
2016-09-30 14:47 ` [Xen-devel] " David Vrabel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.