Skip to contentSkip to conversation

vfio-pci: Provide reviewers and acceptance criteria for vendor drivers

PATCH Superseded Alex Williamson 5 participants 8 messages Mar 14, 2022 – Mar 17, 2022

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 vfio-pci: Provide reviewers and acceptance criteria for vendor drivers

Vendor or device specific extensions for devices exposed to userspace through the vfio-pci-core library open both new functionality and new risks. Here we attempt to provided formalized requirements and expectations to ensure that future drivers both collaborate in their interaction with existing host drivers, as well as receive additional reviews from community members with experience in this area.

---

v3:

Relocate to Documentation/driver-api/
Include index.rst reference
Cross link from maintainer-entry-profile
Add Shameer's Ack

v2:

Added Yishai

v1:

Per the proposal here[1], I've collected those that volunteered and those that I interpreted as showing interest (alpha by last name). For those on the reviewers list below, please R-b/A-b to keep your name as a reviewer. More volunteers are still welcome, please let me know explicitly; R-b/A-b will not be used to automatically add reviewers but are of course welcome. Thanks,

Alex

[1]https://lore.kernel.org/all/[email protected]/

 Documentation/driver-api/index.rst                 |    1 +
 .../vfio-pci-vendor-driver-acceptance.rst          |   35 ++++++++++++++++++++
 .../maintainer/maintainer-entry-profile.rst        |    1 +
 MAINTAINERS                                        |   10 ++++++
 4 files changed, 47 insertions(+)
 create mode 100644 Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst
Documentation/driver-api/index.rst +1 -0
index c57c609ad2eb..da1372c8ec3d 100644
@@ -103,6 +103,7 @@ available subsections can be seen below.
    sync_file
    vfio-mediated-device
    vfio
+   vfio-pci-vendor-driver-acceptance
    xilinx/index
    xillybus
    zorro
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +35 -0
new file mode 100644
index 000000000000..3a108d748681
@@ -0,0 +1,35 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Acceptance criteria for vfio-pci device specific driver variants
+================================================================
+
+Overview
+--------
+The vfio-pci driver exists as a device agnostic driver using the
+system IOMMU and relying on the robustness of platform fault
+handling to provide isolated device access to userspace.  While the
+vfio-pci driver does include some device specific support, further
+extensions for yet more advanced device specific features are not
+sustainable.  The vfio-pci driver has therefore split out
+vfio-pci-core as a library that may be reused to implement features
+requiring device specific knowledge, ex. saving and loading device
+state for the purposes of supporting migration.
+
+In support of such features, it's expected that some device specific
+variants may interact with parent devices (ex. SR-IOV PF in support of
+a user assigned VF) or other extensions that may not be otherwise
+accessible via the vfio-pci base driver.  Authors of such drivers
+should be diligent not to create exploitable interfaces via such
+interactions or allow unchecked userspace data to have an effect
+beyond the scope of the assigned device.
+
+New driver submissions are therefore requested to have approval via
+Sign-off/Acked-by/etc for any interactions with parent drivers.
+Additionally, drivers should make an attempt to provide sufficient
+documentation for reviewers to understand the device specific
+extensions, for example in the case of migration data, how is the
+device state composed and consumed, which portions are not otherwise
+available to the user via vfio-pci, what safeguards exist to validate
+the data, etc.  To that extent, authors should additionally expect to
+require reviews from at least one of the listed reviewers, in addition
+to the overall vfio maintainer.
Documentation/maintainer/maintainer-entry-profile.rst +1 -0
index 5d5cc3acdf85..8b4971c7e3fa 100644
@@ -103,3 +103,4 @@ to do something different in the near future.
    ../nvdimm/maintainer-entry-profile
    ../riscv/patch-acceptance
    ../driver-api/media/maintainer-entry-profile
+   ../driver-api/vfio-pci-vendor-driver-acceptance
MAINTAINERS +10 -0
index 4322b5321891..fd17d1891216 100644
@@ -20314,6 +20314,16 @@ F:	drivers/vfio/mdev/
 F:	include/linux/mdev.h
 F:	samples/vfio-mdev/
 
+VFIO PCI VENDOR DRIVERS
+R:	Jason Gunthorpe <[email protected]>
+R:	Yishai Hadas <[email protected]>
+R:	Shameer Kolothum <[email protected]>
+R:	Kevin Tian <[email protected]>
+L:	[email protected]
+S:	Maintained
+P:	Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst
+F:	drivers/vfio/pci/*/
+
 VFIO PLATFORM DRIVER
 M:	Eric Auger <[email protected]>
 L:	[email protected]
Acked-by on v3 1/1
#1 lore raw
Quoted 10 lines

From: Alex Williamson <[email protected]>
Sent: Tuesday, March 15, 2022 4:25 AM

Vendor or device specific extensions for devices exposed to userspace through the vfio-pci-core library open both new functionality and new risks. Here we attempt to provided formalized requirements and expectations to ensure that future drivers both collaborate in their interaction with existing host drivers, as well as receive additional reviews from community members with experience in this area.

Quoted 5 lines
Quoted 123 lines

---

v3:

Relocate to Documentation/driver-api/
Include index.rst reference
Cross link from maintainer-entry-profile
Add Shameer's Ack

v2:

Added Yishai

v1:

Per the proposal here[1], I've collected those that volunteered and those that I interpreted as showing interest (alpha by last name). For those on the reviewers list below, please R-b/A-b to keep your name as a reviewer. More volunteers are still welcome, please let me know explicitly; R-b/A-b will not be used to automatically add reviewers but are of course welcome. Thanks,

Alex

[1]https://lore.kernel.org/all/20220310134954.0df4bb12.alex.williamson@re dhat.com/

 Documentation/driver-api/index.rst                 |    1 +
 .../vfio-pci-vendor-driver-acceptance.rst          |   35 ++++++++++++++++++++
 .../maintainer/maintainer-entry-profile.rst        |    1 +
 MAINTAINERS                                        |   10 ++++++
 4 files changed, 47 insertions(+)
 create mode 100644 Documentation/driver-api/vfio-pci-vendor-driver-

acceptance.rst

Documentation/driver- renamed from Documentation/driver-api/index.rst +0 -0

api/index.rst
index c57c609ad2eb..da1372c8ec3d 100644

Documentation/driver-api/index.rst +1 -0
@@ -103,6 +103,7 @@ available subsections can be seen below.
    sync_file
    vfio-mediated-device
    vfio
+   vfio-pci-vendor-driver-acceptance
    xilinx/index
    xillybus
    zorro
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +4 -0
new file mode 100644
index 000000000000..3a108d748681
@@ -0,0 +1,35 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Acceptance criteria for vfio-pci device specific driver variants
+===============================================================

=

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +31 -0
+
+Overview
+--------
+The vfio-pci driver exists as a device agnostic driver using the
+system IOMMU and relying on the robustness of platform fault
+handling to provide isolated device access to userspace.  While the
+vfio-pci driver does include some device specific support, further
+extensions for yet more advanced device specific features are not
+sustainable.  The vfio-pci driver has therefore split out
+vfio-pci-core as a library that may be reused to implement features
+requiring device specific knowledge, ex. saving and loading device
+state for the purposes of supporting migration.
+
+In support of such features, it's expected that some device specific
+variants may interact with parent devices (ex. SR-IOV PF in support of
+a user assigned VF) or other extensions that may not be otherwise
+accessible via the vfio-pci base driver.  Authors of such drivers
+should be diligent not to create exploitable interfaces via such
+interactions or allow unchecked userspace data to have an effect
+beyond the scope of the assigned device.
+
+New driver submissions are therefore requested to have approval via
+Sign-off/Acked-by/etc for any interactions with parent drivers.
+Additionally, drivers should make an attempt to provide sufficient
+documentation for reviewers to understand the device specific
+extensions, for example in the case of migration data, how is the
+device state composed and consumed, which portions are not otherwise
+available to the user via vfio-pci, what safeguards exist to validate
+the data, etc.  To that extent, authors should additionally expect to
+require reviews from at least one of the listed reviewers, in addition
+to the overall vfio maintainer.
Documentation/maintainer/maintainer-entry-profile.rst +1 -0
index 5d5cc3acdf85..8b4971c7e3fa 100644
@@ -103,3 +103,4 @@ to do something different in the near future.
    ../nvdimm/maintainer-entry-profile
    ../riscv/patch-acceptance
    ../driver-api/media/maintainer-entry-profile
+   ../driver-api/vfio-pci-vendor-driver-acceptance
MAINTAINERS +10 -0
index 4322b5321891..fd17d1891216 100644
@@ -20314,6 +20314,16 @@ F:	drivers/vfio/mdev/
 F:	include/linux/mdev.h
 F:	samples/vfio-mdev/
 
+VFIO PCI VENDOR DRIVERS
+R:	Jason Gunthorpe <[email protected]>
+R:	Yishai Hadas <[email protected]>
+R:	Shameer Kolothum <[email protected]>
+R:	Kevin Tian <[email protected]>
+L:	[email protected]
+S:	Maintained
+P:	Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst
+F:	drivers/vfio/pci/*/
+
 VFIO PLATFORM DRIVER
 M:	Eric Auger <[email protected]>
 L:	[email protected]
Reviewed-by on v3 1/1
#2 lore raw
In reply to Alex Williamson
Quoted 7 lines · Alex Williamson

Vendor or device specific extensions for devices exposed to userspace through the vfio-pci-core library open both new functionality and new risks. Here we attempt to provided formalized requirements and expectations to ensure that future drivers both collaborate in their interaction with existing host drivers, as well as receive additional reviews from community members with experience in this area.

Quoted 5 lines
Quoted 118 lines

---

v3:

Relocate to Documentation/driver-api/
Include index.rst reference
Cross link from maintainer-entry-profile
Add Shameer's Ack

v2:

Added Yishai

v1:

Per the proposal here[1], I've collected those that volunteered and those that I interpreted as showing interest (alpha by last name). For those on the reviewers list below, please R-b/A-b to keep your name as a reviewer. More volunteers are still welcome, please let me know explicitly; R-b/A-b will not be used to automatically add reviewers but are of course welcome. Thanks,

Alex

[1]https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fall%2F20220310134954.0df4bb12.alex.williamson%40redhat.com%2F&amp;data=04%7C01%7Cyishaih%40nvidia.com%7Cf97af54aedc341708d6f08da05f8b34b%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637828862983240522%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=aQQY6NWJ65p%2B6nyzMXu9VUpOFi1ZClrSW0fQZbLWuoE%3D&amp;reserved=0

  Documentation/driver-api/index.rst                 |    1 +
  .../vfio-pci-vendor-driver-acceptance.rst          |   35 ++++++++++++++++++++
  .../maintainer/maintainer-entry-profile.rst        |    1 +
  MAINTAINERS                                        |   10 ++++++
  4 files changed, 47 insertions(+)

create mode 100644 Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst

Documentation/driver-api/index.rst +1 -0
index c57c609ad2eb..da1372c8ec3d 100644
@@ -103,6 +103,7 @@ available subsections can be seen below.
     sync_file
     vfio-mediated-device
     vfio
+   vfio-pci-vendor-driver-acceptance
     xilinx/index
     xillybus
     zorro
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +35 -0
new file mode 100644
index 000000000000..3a108d748681
@@ -0,0 +1,35 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Acceptance criteria for vfio-pci device specific driver variants
+================================================================
+
+Overview
+--------
+The vfio-pci driver exists as a device agnostic driver using the
+system IOMMU and relying on the robustness of platform fault
+handling to provide isolated device access to userspace.  While the
+vfio-pci driver does include some device specific support, further
+extensions for yet more advanced device specific features are not
+sustainable.  The vfio-pci driver has therefore split out
+vfio-pci-core as a library that may be reused to implement features
+requiring device specific knowledge, ex. saving and loading device
+state for the purposes of supporting migration.
+
+In support of such features, it's expected that some device specific
+variants may interact with parent devices (ex. SR-IOV PF in support of
+a user assigned VF) or other extensions that may not be otherwise
+accessible via the vfio-pci base driver.  Authors of such drivers
+should be diligent not to create exploitable interfaces via such
+interactions or allow unchecked userspace data to have an effect
+beyond the scope of the assigned device.
+
+New driver submissions are therefore requested to have approval via
+Sign-off/Acked-by/etc for any interactions with parent drivers.
+Additionally, drivers should make an attempt to provide sufficient
+documentation for reviewers to understand the device specific
+extensions, for example in the case of migration data, how is the
+device state composed and consumed, which portions are not otherwise
+available to the user via vfio-pci, what safeguards exist to validate
+the data, etc.  To that extent, authors should additionally expect to
+require reviews from at least one of the listed reviewers, in addition
+to the overall vfio maintainer.
Documentation/maintainer/maintainer-entry-profile.rst +1 -0
index 5d5cc3acdf85..8b4971c7e3fa 100644
@@ -103,3 +103,4 @@ to do something different in the near future.
     ../nvdimm/maintainer-entry-profile
     ../riscv/patch-acceptance
     ../driver-api/media/maintainer-entry-profile
+   ../driver-api/vfio-pci-vendor-driver-acceptance
MAINTAINERS +10 -0
index 4322b5321891..fd17d1891216 100644
@@ -20314,6 +20314,16 @@ F:	drivers/vfio/mdev/
  F:	include/linux/mdev.h
  F:	samples/vfio-mdev/
 
+VFIO PCI VENDOR DRIVERS
+R:	Jason Gunthorpe <[email protected]>
+R:	Yishai Hadas <[email protected]>
+R:	Shameer Kolothum <[email protected]>
+R:	Kevin Tian <[email protected]>
+L:	[email protected]
+S:	Maintained
+P:	Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst
+F:	drivers/vfio/pci/*/
+
  VFIO PLATFORM DRIVER
  M:	Eric Auger <[email protected]>
  L:	[email protected]
#3 lore raw
In reply to Alex Williamson
Quoted 13 lines · Alex Williamson

Vendor or device specific extensions for devices exposed to userspace through the vfio-pci-core library open both new functionality and new risks. Here we attempt to provided formalized requirements and expectations to ensure that future drivers both collaborate in their interaction with existing host drivers, as well as receive additional reviews from community members with experience in this area.

---

(...)

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst

Quoted 5 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +0 -0
new file mode 100644
index 000000000000..3a108d748681

What about Christoph's request to drop the "vendor" name? vfio-pci-device-specific-driver-acceptance.rst would match the actual title of the document, and the only drawback I see is that it is a bit longer.

Quoted 18 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +17 -0
@@ -0,0 +1,35 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Acceptance criteria for vfio-pci device specific driver variants
+================================================================
+
+Overview
+--------
+The vfio-pci driver exists as a device agnostic driver using the
+system IOMMU and relying on the robustness of platform fault
+handling to provide isolated device access to userspace.  While the
+vfio-pci driver does include some device specific support, further
+extensions for yet more advanced device specific features are not
+sustainable.  The vfio-pci driver has therefore split out
+vfio-pci-core as a library that may be reused to implement features
+requiring device specific knowledge, ex. saving and loading device
+state for the purposes of supporting migration.
+

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst line 27

Quoted 10 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +10 -0
+In support of such features, it's expected that some device specific
+variants may interact with parent devices (ex. SR-IOV PF in support of
+a user assigned VF) or other extensions that may not be otherwise
+accessible via the vfio-pci base driver.  Authors of such drivers
+should be diligent not to create exploitable interfaces via such
+interactions or allow unchecked userspace data to have an effect
+beyond the scope of the assigned device.
+
+New driver submissions are therefore requested to have approval via
+Sign-off/Acked-by/etc for any interactions with parent drivers.

s/Sign-off/Reviewed-by/ ?

I would not generally expect the reviewers listed to sign off on other people's patches.

Quoted 22 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +8 -0
+Additionally, drivers should make an attempt to provide sufficient
+documentation for reviewers to understand the device specific
+extensions, for example in the case of migration data, how is the
+device state composed and consumed, which portions are not otherwise
+available to the user via vfio-pci, what safeguards exist to validate
+the data, etc.  To that extent, authors should additionally expect to
+require reviews from at least one of the listed reviewers, in addition
+to the overall vfio maintainer.
Documentation/maintainer/maintainer-entry-profile.rst +1 -0
index 5d5cc3acdf85..8b4971c7e3fa 100644
@@ -103,3 +103,4 @@ to do something different in the near future.
    ../nvdimm/maintainer-entry-profile
    ../riscv/patch-acceptance
    ../driver-api/media/maintainer-entry-profile
+   ../driver-api/vfio-pci-vendor-driver-acceptance
MAINTAINERS +0 -0
index 4322b5321891..fd17d1891216 100644

MAINTAINERS F: drivers/vfio/mdev/ · line 20317

Quoted 4 lines
MAINTAINERS +1 -0
@@ -20314,6 +20314,16 @@ F:	drivers/vfio/mdev/
 F:	include/linux/mdev.h
 F:	samples/vfio-mdev/
 
+VFIO PCI VENDOR DRIVERS

VFIO PCI DEVICE SPECIFIC DRIVERS ?

MAINTAINERS F: drivers/vfio/mdev/ · line 20329

Quoted 12 lines
MAINTAINERS +9 -0
+R:	Jason Gunthorpe <[email protected]>
+R:	Yishai Hadas <[email protected]>
+R:	Shameer Kolothum <[email protected]>
+R:	Kevin Tian <[email protected]>
+L:	[email protected]
+S:	Maintained
+P:	Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst
+F:	drivers/vfio/pci/*/
+
 VFIO PLATFORM DRIVER
 M:	Eric Auger <[email protected]>
 L:	[email protected]

Other than that, looks good to me (and thanks to the people volunteering for review!)

#4 lore raw
Quoted 17 lines · Cornelia Huck
Quoted 12 lines · Alex Williamson

Vendor or device specific extensions for devices exposed to userspace through the vfio-pci-core library open both new functionality and new risks. Here we attempt to provided formalized requirements and expectations to ensure that future drivers both collaborate in their interaction with existing host drivers, as well as receive additional reviews from community members with experience in this area.

(...)

Quoted 9 lines

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst

Quoted 4 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +1 -0
new file mode 100644
index 000000000000..3a108d748681
+++ b/Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst

What about Christoph's request to drop the "vendor" name? vfio-pci-device-specific-driver-acceptance.rst would match the actual title of the document, and the only drawback I see is that it is a bit longer.

I agree we should not use the vendor name

In general I wonder if this is a bit too specific to PCI, really this is just review criteria for any driver making a struct vfio_device_ops implementation, and we have some specific guidance for migration here as well.

Like if IBM makes s390 migration drivers all of this applies just as well even though they are not PCI.

Quoted 7 lines

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst line 27

Quoted 2 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +2 -0
+New driver submissions are therefore requested to have approval via
+Sign-off/Acked-by/etc for any interactions with parent drivers.

s/Sign-off/Reviewed-by/ ?

I would not generally expect the reviewers listed to sign off on other people's patches.

It happens quite a lot when those people help write the patches too :)

Jason

#5 lore raw
Quoted 30 lines · On Tue, 15 Mar 2022 12:53:04 -0300 Jason Gunthorpe <[email protected]> wrote:
Quoted 17 lines · Cornelia Huck
Quoted 12 lines · Alex Williamson

Vendor or device specific extensions for devices exposed to userspace through the vfio-pci-core library open both new functionality and new risks. Here we attempt to provided formalized requirements and expectations to ensure that future drivers both collaborate in their interaction with existing host drivers, as well as receive additional reviews from community members with experience in this area.

(...)

Quoted 9 lines

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst

Quoted 4 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +1 -0
new file mode 100644
index 000000000000..3a108d748681
+++ b/Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst  

What about Christoph's request to drop the "vendor" name? vfio-pci-device-specific-driver-acceptance.rst would match the actual title of the document, and the only drawback I see is that it is a bit longer.

I agree we should not use the vendor name

Quoted 7 lines

In general I wonder if this is a bit too specific to PCI, really this is just review criteria for any driver making a struct vfio_device_ops implementation, and we have some specific guidance for migration here as well.

Like if IBM makes s390 migration drivers all of this applies just as well even though they are not PCI.

Are you volunteering to be a reviewer under drivers/vfio/? Careful, I'll add you ;)

What you're saying is true of course and it could be argued that this sort of criteria is true for any new driver, I think the unique thing here that raises it to a point where we want to formalize the breadth of reviews is how significantly lower the bar is to create a device specific driver now that we have a vfio-pci-core library. Shameer's stub driver is 100 LoC. I also expect that the pool of people willing to volunteer to be reviewers for PCI related device specific drivers is large than we might see for arbitrary drivers.

Quoted 9 lines
Quoted 7 lines

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst line 27

Quoted 2 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +2 -0
+New driver submissions are therefore requested to have approval via
+Sign-off/Acked-by/etc for any interactions with parent drivers.  

s/Sign-off/Reviewed-by/ ?

I would not generally expect the reviewers listed to sign off on other people's patches.

It happens quite a lot when those people help write the patches too :)

This is what "etc" is for, the owners are involved and have endorsed it in some way, that's all we care about. Thanks,

Alex

#6 lore raw
Quoted 17 lines · Alex Williamson
Quoted 10 lines · On Tue, 15 Mar 2022 12:53:04 -0300 Jason Gunthorpe <[email protected]> wrote:
Quoted 1 line · Cornelia Huck

On Mon, Mar 14 2022, Alex Williamson <[email protected]> wrote:

In general I wonder if this is a bit too specific to PCI, really this is just review criteria for any driver making a struct vfio_device_ops implementation, and we have some specific guidance for migration here as well.

Like if IBM makes s390 migration drivers all of this applies just as well even though they are not PCI.

Are you volunteering to be a reviewer under drivers/vfio/? Careful, I'll add you ;)

Quoted 8 lines

What you're saying is true of course and it could be argued that this sort of criteria is true for any new driver, I think the unique thing here that raises it to a point where we want to formalize the breadth of reviews is how significantly lower the bar is to create a device specific driver now that we have a vfio-pci-core library. Shameer's stub driver is 100 LoC. I also expect that the pool of people willing to volunteer to be reviewers for PCI related device specific drivers is large than we might see for arbitrary drivers.

Yes. Also, I expect that more people understand how a PCI driver works than how an s390 channel subsystem driver works :)

I think we'll just have to hope that attempts to add e.g. migration support to a driver outside of vfio-pci show up on the correct mailing lists and that the right people notice it or can be pointed towards it.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst line 27

Quoted 3 lines
Documentation/driver-api/vfio-pci-vendor-driver-acceptance.rst new file +2 -0
+New driver submissions are therefore requested to have approval via
+Sign-off/Acked-by/etc for any interactions with parent drivers.  

s/Sign-off/Reviewed-by/ ?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I would not generally expect the reviewers listed to sign off on other people's patches.

It happens quite a lot when those people help write the patches too :)

This is what "etc" is for, the owners are involved and have endorsed it in some way, that's all we care about.

Fair enough.

#7 lore raw
In reply to Alex Williamson
Quoted 9 lines · Alex Williamson

On Tue, 15 Mar 2022 12:53:04 -0300

Quoted 7 lines

I agree we should not use the vendor name

In general I wonder if this is a bit too specific to PCI, really this is just review criteria for any driver making a struct vfio_device_ops implementation, and we have some specific guidance for migration here as well.

Quoted 5 lines
Quoted 2 lines

Like if IBM makes s390 migration drivers all of this applies just as well even though they are not PCI.

Are you volunteering to be a reviewer under drivers/vfio/? Careful, I'll add you ;)

Haha, sure you can do that if it helps

We still have a quite a ways to go before all the iommu features are exposed and we get dirty tracking done.

Thanks,
Jason