qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Thomas Huth <thuth@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	qemu-devel@nongnu.org
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	[thread overview]
Message-ID: <20190904185223.GH26826@stefanha-x1.localdomain> (raw)
In-Reply-To: <20190904130047.25808-4-thuth@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

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 <thuth@redhat.com>
> ---
>  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 <stefanha@redhat.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  parent reply	other threads:[~2019-09-04 18:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-04 13:00 [Qemu-devel] [PATCH v2 0/6] Make the core libqtest library independe from global_qtest Thomas Huth
2019-09-04 13:00 ` [Qemu-devel] [PATCH v2 1/6] tests/migration: Do not use functions anymore that rely on global_qtest Thomas Huth
2019-09-04 18:52   ` Stefan Hajnoczi
2019-09-04 13:00 ` [Qemu-devel] [PATCH v2 2/6] tests/libqos/e1000e: Make e1000e libqos functions independent from global_qtest Thomas Huth
2019-09-04 18:52   ` Stefan Hajnoczi
2019-09-04 13:00 ` [Qemu-devel] [PATCH v2 3/6] tests/libqos: Replace clock_step with qtest_clock_step in virtio code Thomas Huth
2019-09-04 14:17   ` Eric Blake
2019-09-04 18:52   ` Stefan Hajnoczi [this message]
2019-09-04 13:00 ` [Qemu-devel] [PATCH v2 4/6] tests: Remove unnecessary global_qtest references Thomas Huth
2019-09-04 14:18   ` Eric Blake
2019-09-04 18:52   ` Stefan Hajnoczi
2019-09-04 13:00 ` [Qemu-devel] [PATCH v2 5/6] tests/libqtest: Move global_test wrapper function into a separate header Thomas Huth
2019-09-04 14:23   ` Eric Blake
2019-09-04 18:51   ` Stefan Hajnoczi
2019-09-04 19:09     ` Eric Blake
2019-09-05  7:06       ` Thomas Huth
2019-09-04 13:00 ` [Qemu-devel] [PATCH v2 6/6] tests/libqtest: Use libqtest-single.h in tests that require global_qtest Thomas Huth
2019-09-04 14:25   ` Eric Blake
2019-09-04 18:52   ` Stefan Hajnoczi
2019-09-04 18:52 ` [Qemu-devel] [PATCH v2 0/6] Make the core libqtest library independe from global_qtest Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190904185223.GH26826@stefanha-x1.localdomain \
    --to=stefanha@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).