Skip to content

Legacy direct-assign mode

Jon Derrick linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PCI: vmd: Reset the VMD subdevice domain on probedrivers/pci/controller/vmd.c+32 -00 replies
2/5PCI: Add a reset quirk for VMDdrivers/pci/quirks.c+48 -03 replies
3/5PCI: vmd: Add offset translation helperdrivers/pci/controller/vmd.c+14 -90 replies
4/5PCI: vmd: Pass features to vmd_get_phys_offsets()drivers/pci/controller/vmd.c+8 -120 replies
5/5PCI: vmd: Add legacy guest passthrough modedrivers/pci/controller/vmd.c+126 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Legacy direct-assign mode

This set adds a legacy direct-assign mode. Newer enterprise hardware has physical addressing hints to assist device passthrough to guests that needs to correctly program bridge windows with physical addresses. Some customers are using a legacy method that relies on the VMD subdevice domain's root port windows to be written with the physical addresses. This method also allows other hypervisors besides QEMU/KVM to perform guest passthrough.

This patchset adds a host and guest mode to write the physical address information to the root port registers in the host and read them in the guest, and restore them in both cases on module unload.

This patchset also folds in the VMD subdevice domain secondary bus reset patchset [1] to clear the domain prior to guest passthrough.

[1] https://patchwork.kernel.org/project/linux-pci/cover/[email protected]/

Jon Derrick (5):
PCI: vmd: Reset the VMD subdevice domain on probe
PCI: Add a reset quirk for VMD
PCI: vmd: Add offset translation helper
PCI: vmd: Pass features to vmd_get_phys_offsets()
PCI: vmd: Add legacy guest passthrough mode

 drivers/pci/controller/vmd.c | 200 ++++++++++++++++++++++++++++++++++++++-----
 drivers/pci/quirks.c         |  48 +++++++++++
 2 files changed, 227 insertions(+), 21 deletions(-)
Signature · 1 line
1.8.3.1