Skip to content

xen/pciback: support driver_override

Juergen Gross lkml xen-devel 5 versions – Applied

Status from this message: Applied to for-linus-4.9, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/23 patches 16 repliesApplied
  2. v3 posting 1/20 of 3 patches 0 repliesSuperseded
  3. v2 posting 2/21 patch 10 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/21 patch0 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v3 from the cover letter

- 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.

Patches in v3 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/3xen/pciback: simplify pcistub device handlingdrivers/xen/xen-pciback/pci_stub.c+25 -250 replies
1/3xen/pciback: simplify pcistub device handlingdrivers/xen/xen-pciback/pci_stub.c+25 -252 replies
2/3xen/pciback: avoid multiple entries in slot listdrivers/xen/xen-pciback/pci_stub.c+31 -80 replies
2/3xen/pciback: avoid multiple entries in slot listdrivers/xen/xen-pciback/pci_stub.c+31 -88 replies
3/3xen/pciback: support driver_overridedrivers/xen/xen-pciback/pci_stub.c+29 -70 replies
3/3xen/pciback: support driver_overridedrivers/xen/xen-pciback/pci_stub.c+29 -74 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchBoris Ostrovsky
1/3R-b R-b
1/3R-b R-b
2/3
2/3
3/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] xen/pciback: support driver_override

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(-)
Signature · 1 line
2.6.6