qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/7] tests: virtio-9p: test request cancellation
@ 2018-01-23 23:38 Greg Kurz
  2018-01-23 23:38 ` [Qemu-devel] [PATCH 1/7] tests: virtio-9p: move request tag to the test functions Greg Kurz
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Greg Kurz @ 2018-01-23 23:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Hajnoczi, Jason Wang, Paolo Bonzini, Fam Zheng

This series does several changes to virtio-9p-test in order to be able
to test request cancellation (flush in 9p wording):

patches 1-2: preparatory work, basically doing things in the test code,
             rather that in the common code for flexibility and clarity

patch 3: the cornerstone of the series, switch to using the synth fsdev
         backend, which allows to associate specific write/read ops to
         a given file. Since this backend never got used since it was
         merged, it looks like an ideal vehicle to add QTEST aware code
         in QEMU

patches 4-5: trivial open & write tests, since the flush test will need
             to open a file and write to it

patch 6: another important patch that allows to know the length written
         by the guest into a used buffer 

patch 7: the goal of this series, two request cancellation tests

This series depends on the following patch:

https://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg05604.html

Please comment.

Cheers,

--
Greg

---

Greg Kurz (7):
      tests: virtio-9p: move request tag to the test functions
      tests: virtio-9p: wait for completion in the test code
      tests: virtio-9p: use the synth backend
      tests: virtio-9p: add LOPEN operation test
      tests: virtio-9p: add WRITE operation test
      libqos/virtio: return length written into used descriptor
      tests: virtio-9p: add FLUSH operation test


 hw/9pfs/9p-synth.c       |   56 ++++++++++
 hw/9pfs/9p-synth.h       |   11 ++
 hw/9pfs/9p.c             |    1 
 tests/libqos/virtio.c    |   25 +++-
 tests/libqos/virtio.h    |    3 -
 tests/virtio-9p-test.c   |  263 ++++++++++++++++++++++++++++++++++++++++------
 tests/virtio-blk-test.c  |   24 ++--
 tests/virtio-net-test.c  |    6 +
 tests/virtio-scsi-test.c |    3 -
 9 files changed, 335 insertions(+), 57 deletions(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-01-30  8:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-23 23:38 [Qemu-devel] [PATCH 0/7] tests: virtio-9p: test request cancellation Greg Kurz
2018-01-23 23:38 ` [Qemu-devel] [PATCH 1/7] tests: virtio-9p: move request tag to the test functions Greg Kurz
2018-01-23 23:38 ` [Qemu-devel] [PATCH 2/7] tests: virtio-9p: wait for completion in the test code Greg Kurz
2018-01-23 23:39 ` [Qemu-devel] [PATCH 3/7] tests: virtio-9p: use the synth backend Greg Kurz
2018-01-23 23:39 ` [Qemu-devel] [PATCH 4/7] tests: virtio-9p: add LOPEN operation test Greg Kurz
2018-01-23 23:39 ` [Qemu-devel] [PATCH 5/7] tests: virtio-9p: add WRITE " Greg Kurz
2018-01-29 21:14   ` Stefan Hajnoczi
2018-01-30  8:25     ` Greg Kurz
2018-01-23 23:39 ` [Qemu-devel] [PATCH 6/7] libqos/virtio: return length written into used descriptor Greg Kurz
2018-01-23 23:39 ` [Qemu-devel] [PATCH 7/7] tests: virtio-9p: add FLUSH operation test Greg Kurz
2018-01-29 21:20 ` [Qemu-devel] [PATCH 0/7] tests: virtio-9p: test request cancellation Stefan Hajnoczi

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).