qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] tests/pxe-test: add testcase using vhost-user-bridge
@ 2017-08-08 20:38 Jens Freimann
  2017-08-08 20:38 ` [Qemu-devel] [PATCH v2 1/5] tests/vhost-user-bridge: disable debug output by default Jens Freimann
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Jens Freimann @ 2017-08-08 20:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: marcandre.lureau, mst, victork, maxime.coquelin, jasowang,
	stefanha

This implements a testcase for pxe-test using the vhost-user interface. Spawn a
vhost-user-bridge process and connect it to the qemu process.

To make the testcase work we need to apply a few patches before the actual testcase:
- Patch 1 disables debug output of vhost-user-bridge
- Patch 2 fixes passing a file descriptor to -netdev.  This was broken since the
  mcast option was introduced. 
- Patch 3 makes sure we stop processing vhost-user messages when recvmsg returns 0.
- Patch 4 makes qtest abort handlers always work

changes v1->v2:

- new patch 4/5. Necessary to make qtest_add_abrt_handler work. 
- get rid of hugepagefs specific code (mst)
- use htonl and INADDR_LOOPBACK to set remote address (Stefan Hajnoczi)
- add qtest abort handler (Stefan Hajnoczi)
- spawn vhost-user-bridge process with flag DO_NOT_REAP_CHILD and add a child
  watch function (Stefan Hajnoczi)
  Killing the vubr process manually at the end of the test and watching
  its termination with the child watch function. 
- clean up pxe-test-disk images 
- add Jason Wang to Cc

regards,
Jens

Jens Freimann (5):
  tests/vhost-user-bridge: disable debug output by default
  net: fix -netdev socket,fd= for UDP sockets
  libvhost-user: quit when no more data received
  libqtest: always set up signal handler for SIGABRT 
  tests/pxe-test: add testcase using vhost-user-bridge

 contrib/libvhost-user/libvhost-user.c |   4 +-
 net/socket.c                          |  37 ++++++-----
 tests/Makefile.include                |   4 +-
 tests/libqtest.c                      |   2 +-
 tests/pxe-test.c                      | 115 +++++++++++++++++++++++++++++++++-
 tests/vhost-user-bridge.c             |   2 +-
 6 files changed, 140 insertions(+), 24 deletions(-)

-- 
2.13.3

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

end of thread, other threads:[~2017-11-06 10:49 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08 20:38 [Qemu-devel] [PATCH v2 0/5] tests/pxe-test: add testcase using vhost-user-bridge Jens Freimann
2017-08-08 20:38 ` [Qemu-devel] [PATCH v2 1/5] tests/vhost-user-bridge: disable debug output by default Jens Freimann
2017-08-08 20:38 ` [Qemu-devel] [PATCH v2 2/5] net: fix -netdev socket, fd= for UDP sockets Jens Freimann
2017-11-03 18:46   ` Peter Maydell
2017-11-06 10:49     ` Jens Freimann
2017-08-08 20:38 ` [Qemu-devel] [PATCH v2 3/5] libvhost-user: quit when no more data received Jens Freimann
2017-09-19 16:46   ` Marc-André Lureau
2017-09-20 15:09     ` Jens Freimann
2017-09-20 16:14       ` Marc-André Lureau
2017-09-21 13:31         ` Jens Freimann
2017-09-21 16:05           ` Jens Freimann
2017-08-08 20:38 ` [Qemu-devel] [PATCH v2 4/5] libqtest: always set up signal handler for SIGABRT Jens Freimann
2017-08-08 20:39 ` [Qemu-devel] [PATCH v2 5/5] tests/pxe-test: add testcase using vhost-user-bridge Jens Freimann
2017-08-08 21:05 ` [Qemu-devel] [PATCH for-2.10? v2 0/5] " Eric Blake
2017-08-08 22:18   ` Michael S. Tsirkin
2017-08-08 23:59 ` [Qemu-devel] [PATCH " no-reply
2017-08-09  1:17   ` Michael S. Tsirkin
2017-08-09  8:21     ` Jens Freimann

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