Skip to content

Intel-IOMMU: source-id checking for interrupt remapping

Weidong Han kvm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 14 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

As Ingo suggested, restructured some code and fixed some code
style issues.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free itdrivers/pci/intr_remapping.c+26 -140 replies
2/2Intel-IOMMU, intr-remap: source-id checkingarch/x86/kernel/apic/io_apic.c drivers/pci/intr_remapping.c drivers/pci/intr_remapping.h +1 more+136 -30 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] Intel-IOMMU: source-id checking for interrupt remapping

Support source-id checking for interrupt remapping, and then isolates interrupts for guests/VMs with assigned devices.

Eric raised pci rebalance issue with VT-d. Yes, it's an issue now. Linux needs to handle pci rebalance changes to DRHD scopes. It's tricky to support it. This patch just supports source-id for interrupt remapping, won't touch that.

The patchset can be applied on linux-2.6-tip tree.

v2 -> v3 changelog:
As Ingo suggested, restructured some code and fixed some code
style issues.

v1 -> v2 changelog:
Access PCI directly (read_pci_config_byte) to parse IOAPIC,
instead of PCI related discovery, because PCI subsystem is not initialized at that time.

Weidong Han (2):
Intel-IOMMU, intr-remap: set the whole 128bits of irte when
modify/free it
Intel-IOMMU, intr-remap: source-id checking

 arch/x86/kernel/apic/io_apic.c |    6 ++
 drivers/pci/intr_remapping.c   |  160 +++++++++++++++++++++++++++++++++++----
 drivers/pci/intr_remapping.h   |    2 +
 include/linux/dmar.h           |   11 +++
 4 files changed, 162 insertions(+), 17 deletions(-)