Re: [Qemu-devel] [PATCH 1/6] tests/libqos: Make generic virtio code independent from global_qtest

2019-08-13 Thread Eric Blake
On 8/13/19 4:30 AM, Thomas Huth wrote: > The libqos library functions should never depend on global_qtest, > since these functions might be used in tests that track multiple > test states. Pass around a pointer to the QTestState instead. Thanks for picking up on my initial RFC along these lines a

[Qemu-devel] [PATCH 1/6] tests/libqos: Make generic virtio code independent from global_qtest

2019-08-13 Thread Thomas Huth
The libqos library functions should never depend on global_qtest, since these functions might be used in tests that track multiple test states. Pass around a pointer to the QTestState instead. Signed-off-by: Thomas Huth --- tests/libqos/virtio.c| 74 ++- tests/libqos/virtio.