Skip to content

PCI: Unify domain emulation and misc documentation update

Dan Williams linux-hyperv linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: Establish document for PCI host bridge sysfs attributesDocumentation/ABI/testing/sysfs-devices-pci-host-bridge MAINTAINERS+20 -00 replies
2/3PCI: Enable host bridge emulation for PCI_DOMAINS_GENERIC platformsdrivers/pci/controller/pci-hyperv.c drivers/pci/pci.c drivers/pci/probe.c +1 more+56 -526 replies
3/3PCI: vmd: Switch to pci_bus_find_emul_domain_nr()drivers/pci/controller/vmd.c+10 -230 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchSuzuki K Poulose
1/3
2/3T-b
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] PCI: Unify domain emulation and misc documentation update

Bjorn,

This is a small collection of miscellaneous updates that originated in the PCI/TSM work, but are suitable to go ahead in v6.17. It is a documentation update and a new pci_bus_find_emul_domain_nr() helper.

First, the PCI/TSM work (Trusted Execution Environment Security Manager (PCI device assignment for confidential guests)) wants to add some additional PCI host bridge sysfs attributes. In preparation for that, document what is already there.

Next, the PCI/TSM effort proposes samples/devsec/ as a reference and test implementation of all the TSM infrastructure. It is implemented via host bridge emulation and aims to be cross-architecture compatible. It stumbled over the current state of PCI domain number emulation being arch and driver specific. Remove some of that differentiation and unify the existing x86 host bridge emulators (hyper-v and vmd) on a common pci_bus_find_emul_domain_nr() helper.

Dan Williams (3):
PCI: Establish document for PCI host bridge sysfs attributes
PCI: Enable host bridge emulation for PCI_DOMAINS_GENERIC platforms
PCI: vmd: Switch to pci_bus_find_emul_domain_nr()

 .../ABI/testing/sysfs-devices-pci-host-bridge | 19 +++++++
 MAINTAINERS                                   |  1 +
 drivers/pci/controller/pci-hyperv.c           | 53 ++-----------------
 drivers/pci/controller/vmd.c                  | 33 ++++--------
 drivers/pci/pci.c                             | 43 ++++++++++++++-
 drivers/pci/probe.c                           |  8 ++-
 include/linux/pci.h                           |  4 ++
 7 files changed, 86 insertions(+), 75 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-pci-host-bridge

base-commit: e04c78d86a9699d136910cfc0bdcf01087e3267e

Signature · 1 line
2.50.1