Skip to content

RFC Add platform check for subdevice irq domain

Lu Baolu dmaengine kvm linux-iommu linux-pci lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest2 patches 9 repliesIn review
  2. v2 RFC1 patch 14 repliesSuperseded
  3. v1 RFC1 patch 6 repliesSuperseded

Changes in v3 from the cover letter

- v2:
https://lore.kernel.org/linux-pci/[email protected]/
- Add all identified heuristics so far.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommu: Add capability IOMMU_CAP_VIOMMUdrivers/iommu/intel/iommu.c drivers/iommu/virtio-iommu.c include/linux/iommu.h+30 -08 replies
2/2platform-msi: Add platform check for subdevice irq domainarch/x86/pci/common.c drivers/base/platform-msi.c include/linux/msi.h+80 -01 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH v3 0/2] Add platform check for subdevice irq domain

Hi,

Learnt from the discussions in this thread:

https://lore.kernel.org/linux-pci/160408357912.912050.17005584526266191420.stgit@djiang5-desk3.ch.intel.com/

The device IMS (Interrupt Message Storage) should not be enabled in any virtualization environments unless there is a HYPERCALL domain which makes the changes in the message store monitored by the hypervisor.

As the initial step, we allow the IMS to be enabled only if we are running on the bare metal. It's easy to enable IMS in the virtualization environments if above preconditions are met in the future.

This series is only for comments purpose. We will include it in the Intel IMS implementation later once we reach a consensus.

Change log:
v2->v3:
- v2:
https://lore.kernel.org/linux-pci/[email protected]/
- Add all identified heuristics so far.

v1->v2:
- v1:
https://lore.kernel.org/linux-pci/[email protected]/
- Rename probably_on_bare_metal() with on_bare_metal();
- Some vendors might use the same name for both bare metal and virtual environment. Before we add vendor specific code to distinguish between them, let's return false in on_bare_metal(). This won't introduce any regression. The only impact is that the coming new platform msi feature won't be supported until the vendor specific code is provided.

Best regards,
baolu

Lu Baolu (2):
iommu: Add capability IOMMU_CAP_VIOMMU
platform-msi: Add platform check for subdevice irq domain

 arch/x86/pci/common.c        | 71 ++++++++++++++++++++++++++++++++++++
 drivers/base/platform-msi.c  |  8 ++++
 drivers/iommu/intel/iommu.c  | 20 ++++++++++
 drivers/iommu/virtio-iommu.c |  9 +++++
 include/linux/iommu.h        |  1 +
 include/linux/msi.h          |  1 +
 6 files changed, 110 insertions(+)
Signature · 6 lines
2.25.1

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu