Skip to content

Conversation

@dhsrivas
Copy link
Contributor

@dhsrivas dhsrivas commented Sep 1, 2025

Adds functionality to test interrupt remapping support for a PCI device using VFIO ioctls.

@dhsrivas
Copy link
Contributor Author

dhsrivas commented Sep 2, 2025

Adding test run sample log

# avocado run io/iommu/interrupt.py -p pci_device="0000:71:00.0" -p count=512
JOB ID     : e64b86a7edf2a260ebc5ffea5cc362134709ed40
JOB LOG    : /root//results/job-2025-09-02T06.26-e64b86a/job.log
 (1/1) io/iommu/interrupt.py:VFIOInterruptTest.test_allocate_interrupts: STARTED
 (1/1) io/iommu/interrupt.py:VFIOInterruptTest.test_allocate_interrupts: PASS (51.08 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB TIME   : 56.56 s

# avocado run io/iommu/interrupt.py -p pci_device="0000:71:00.0" -p count=2048
JOB ID     : e06012082072642fe48edb4e3a295ccf7cad260f
JOB LOG    : /root/results/job-2025-09-02T06.27-e060120/job.log
 (1/1) io/iommu/interrupt.py:VFIOInterruptTest.test_allocate_interrupts: STARTED
 (1/1) io/iommu/interrupt.py:VFIOInterruptTest.test_allocate_interrupts: PASS (51.21 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB TIME   : 56.80 s

@narasimhan-v narasimhan-v self-assigned this Sep 2, 2025
@dhsrivas dhsrivas force-pushed the master branch 2 times, most recently from a8e5574 to 6012862 Compare September 8, 2025 14:28
Adds functionality to test interrupt remapping support for a PCI device
using VFIO ioctls.

- Verifies if the PCI device supports "count" MSI-X interrupts.
- Binds the input PCI device to the vfio-pci driver.
- Attempts to allocate "count" number of IRQs with IOMMU Interrupt
  remapping enabled; the test fails if allocation is unsuccessful.

This patch is depended on
1. avocado-framework/avocado#6225
2. avocado-framework/avocado#6226

Signed-off-by: Dheeraj Kumar Srivastava <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants