Re: [RFC PATCH 1/5] qtest/pci: Enforce balanced iomap/unmap

2024-11-11 Thread Fabiano Rosas
Nicholas Piggin writes: > Add assertions to ensure a BAR is not mapped twice, and only > previously mapped BARs are unmapped. This can help catch some > bugs. > > Signed-off-by: Nicholas Piggin Reviewed-by: Fabiano Rosas

[RFC PATCH 1/5] qtest/pci: Enforce balanced iomap/unmap

2024-11-08 Thread Nicholas Piggin
Add assertions to ensure a BAR is not mapped twice, and only previously mapped BARs are unmapped. This can help catch some bugs. Signed-off-by: Nicholas Piggin --- tests/qtest/libqos/ahci.h | 1 + tests/qtest/libqos/pci.h| 2 ++ tests/qtest/libqos/virtio-pci.h | 1 + tests/qtest