qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 3/6] tests/libqos: Replace clock_step with qt


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2 3/6] tests/libqos: Replace clock_step with qtest_clock_step in virtio code
Date: Wed, 4 Sep 2019 19:52:23 +0100
User-agent: Mutt/1.12.1 (2019-06-15)

On Wed, Sep 04, 2019 at 03:00:44PM +0200, Thomas Huth wrote:
> Library functions should not rely on functions that require global_qtest
> (since they might get used in tests that deal with multiple states).
> Commit 1999a70a05ad603d ("Make generic virtio code independent from
> global_qtest") already tried to clean the libqos virtio code, but I
> missed to replace the clock_step() function. Thus change it now to
> qtest_clock_step() instead.
> The logic of the qvirtio_wait_config_isr() function is now pushed
> to the virtio-mmio.c and virtio-pci.c files instead, since we can
> get the QTestState here easily.
> 
> Signed-off-by: Thomas Huth <address@hidden>
> ---
>  tests/libqos/virtio-mmio.c | 14 +++++++++++++-
>  tests/libqos/virtio-pci.c  | 14 +++++++++++++-
>  tests/libqos/virtio.c      | 20 ++++++--------------
>  tests/libqos/virtio.h      |  6 +++---
>  tests/virtio-blk-test.c    |  3 ++-
>  5 files changed, 37 insertions(+), 20 deletions(-)

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]