mbox series

[v2,0/5] qtest: pci and e1000e/igb msix fixes

Message ID 20250115150112.346497-1-npiggin@gmail.com (mailing list archive)
Headers show
Series qtest: pci and e1000e/igb msix fixes | expand

Message

Nicholas Piggin Jan. 15, 2025, 3:01 p.m. UTC
This series fixes some iomap balance issues and enables msix
sharing bar0, which will be required for some future XHCI
test cases.

It also removes the invalid write to msix PBA memory by
qtest, and fixes that properly by unmasking and taking
delivery of the msix interrupt in e1000e and igb tests, as
other test cases do.

Since v1:
- Patch 4 update comments as suggested by Akihiko Odaki.
- Patch 5 significantly rework and simplify also suggested
  by Akihiko Odaki. In particular the msi vectors are always
  unmasked to avoid the extra case of handling masked.

Thanks,
Nick

Nicholas Piggin (5):
  qtest/pci: Enforce balanced iomap/unmap
  qtest/libqos/pci: Fix qpci_msix_enable sharing bar0
  qtest/libqos/pci: Do not write to PBA memory
  qtest/e1000e|igb: Clear interrupt-cause bits after irq
  qtest/e1000e|igb: Fix msix to re-trigger interrupts

 tests/qtest/libqos/ahci.h       |  1 +
 tests/qtest/libqos/e1000e.h     | 11 ++++-
 tests/qtest/libqos/pci.h        |  3 ++
 tests/qtest/libqos/virtio-pci.h |  1 +
 tests/qtest/ahci-test.c         |  2 +
 tests/qtest/e1000e-test.c       |  4 ++
 tests/qtest/igb-test.c          |  4 ++
 tests/qtest/libqos/ahci.c       |  6 +++
 tests/qtest/libqos/e1000e.c     | 87 +++++++++++++++++++++++++++++++--
 tests/qtest/libqos/igb.c        |  9 ++++
 tests/qtest/libqos/pci.c        | 74 ++++++++++++++++++++++++----
 tests/qtest/libqos/virtio-pci.c |  6 ++-
 12 files changed, 193 insertions(+), 15 deletions(-)