Skip to content

tests/qtest: pci and MSI-X fixes

[email protected] qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest10 patches 3 repliesIn review

Changes in v7 from the cover letter

(https://lore.kernel.org/qemu-devel/[email protected]/)

- Add patch 4: Fix endianness of NVMe queue structures in nvme-test.
- qpci_msix_test_interrupt(): Make msix_entry parameter to uint16_t to match other MSI-X helpers and validate it against qpci_msix_table_size() to catch uninitialized vectors instead of checking for != -1. (Patch 3/10)
- nvme-test migrate: use qpci_migrate_fixup() to carry the BAR mapping over to the destination device instead of unmapping the source BAR and mapping BAR0 again. (PATCH 7/10)

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10tests/qtest: Enforce zero for the "un-fired" msix message valuetests/qtest/libqos/virtio-pci-modern.c tests/qtest/libqos/virtio-pci.c+17 -120 replies
2/10tests/qtest: Fix virtio msix message endiannesstests/qtest/libqos/virtio-pci-modern.c tests/qtest/libqos/virtio-pci.c+9 -30 replies
3/10tests/qtest: Add libqos function for testing MSI-X interrupt statustests/qtest/libqos/pci.c tests/qtest/libqos/pci.h tests/qtest/libqos/virtio-pci-modern.c +1 more+67 -610 replies
4/10tests/qtest/nvme-test: fix NVMe struct field endiannesstests/qtest/nvme-test.c+16 -150 replies
5/10tests/qtest: Enable spapr dma with linear iommuhw/ppc/spapr_iommu.c tests/qtest/e1000e-test.c tests/qtest/igb-test.c +8 more+13 -900 replies
6/10tests/qtest/ahci: unmap pci bar before reusing devicetests/qtest/ahci-test.c tests/qtest/libqos/ahci.c tests/qtest/libqos/ahci.h+19 -00 replies
7/10tests/qtest/libquos/pci: Add migration fixup helper for pci devicestests/qtest/ahci-test.c tests/qtest/libqos/pci.c tests/qtest/libqos/pci.h +1 more+7 -30 replies
8/10qtest/libqos/pci: Enforce balanced iomap/unmaptests/qtest/libqos/ahci.c tests/qtest/libqos/pci.c tests/qtest/libqos/pci.h+64 -63 replies
9/10qtest/libqos/pci: Fix qpci_msix_enable sharing bar0tests/qtest/libqos/pci.c tests/qtest/libqos/pci.h+35 -60 replies
10/10qtest/libqos/pci: Factor msix entry helpers into pci common codetests/qtest/libqos/pci.c tests/qtest/libqos/pci.h tests/qtest/libqos/virtio-pci.c+57 -430 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéFabiano RosasAkihiko Odaki
1/10R-b R-b
2/10R-b R-b
3/10R-b
4/10
5/10R-b
6/10R-b R-b
7/10R-b
8/10R-b R-b
9/10R-b R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v7 thread

Cover letter [PATCH v7 00/10] tests/qtest: pci and MSI-X fixes

From: Utkarsh Verma <[email protected]>

This series fixes a number of issues in the pci and MSI-X qtest infrastructure, and adds new functionality.

Nicholas Piggin is the original author of patches 1-3 and 5-10. Patch 4 is new in this version. This series takes Jishnu Warrier's v6 forward.

Changes since v6:
(https://lore.kernel.org/qemu-devel/[email protected]/)

- Add patch 4: Fix endianness of NVMe queue structures in nvme-test.
- qpci_msix_test_interrupt(): Make msix_entry parameter to uint16_t to match other MSI-X helpers and validate it against qpci_msix_table_size() to catch uninitialized vectors instead of checking for != -1. (Patch 3/10)
- nvme-test migrate: use qpci_migrate_fixup() to carry the BAR mapping over to the destination device instead of unmapping the source BAR and mapping BAR0 again. (PATCH 7/10)

Nicholas Piggin (9):
tests/qtest: Enforce zero for the "un-fired" msix message value tests/qtest: Fix virtio msix message endianness tests/qtest: Add libqos function for testing MSI-X interrupt status tests/qtest: Enable spapr dma with linear iommu tests/qtest/ahci: unmap pci bar before reusing device tests/qtest/libquos/pci: Add migration fixup helper for pci devices qtest/libqos/pci: Enforce balanced iomap/unmap qtest/libqos/pci: Fix qpci_msix_enable sharing bar0 qtest/libqos/pci: Factor msix entry helpers into pci common code

Utkarsh Verma (1):
tests/qtest/nvme-test: fix NVMe struct field endianness

 hw/ppc/spapr_iommu.c                   |  10 +-
 tests/qtest/ahci-test.c                |   7 +
 tests/qtest/e1000e-test.c              |  21 ---
 tests/qtest/igb-test.c                 |  21 ---
 tests/qtest/libqos/ahci.c              |  12 ++
 tests/qtest/libqos/ahci.h              |   2 +
 tests/qtest/libqos/generic-pcihost.c   |   1 -
 tests/qtest/libqos/pci-pc.c            |   3 -
 tests/qtest/libqos/pci-spapr.c         |   7 +-
 tests/qtest/libqos/pci.c               | 217 ++++++++++++++++++++++---
 tests/qtest/libqos/pci.h               |  21 ++-
 tests/qtest/libqos/virtio-pci-modern.c |  30 +---
 tests/qtest/libqos/virtio-pci.c        |  86 ++--------
 tests/qtest/nvme-test.c                |  39 ++---
 tests/qtest/vhost-user-blk-test.c      |   6 -
 tests/qtest/virtio-blk-test.c          |  12 --
 16 files changed, 280 insertions(+), 215 deletions(-)
Signature · 1 line
2.55.0