On 11/3/21 09:14, Thomas Huth wrote:
On 03/11/2021 08.56, Andrew Jones wrote:
On Fri, Aug 27, 2021 at 12:17:19PM +0200, Pierre Morel wrote:
+
+#define VIRTIO_ID_PONG 30 /* virtio pong */
I take it this is a virtio test device that ping-pong's I/O. It sounds
useful for other VIRTIO transports too. Can it be ported? Hmm, I can't
find it in QEMU at all?
I also wonder whether we could do testing with an existing device
instead? E.g. do a loopback with a virtio-serial device? Or use two
virtio-net devices, connect them to a QEMU hub and send a packet from
one device to the other? ... that would be a little bit more complicated
here, but would not require a PONG device upstream first, so it could
also be used for testing older versions of QEMU...
Thomas
Yes having a dedicated device has the drawback that we need it in QEMU.
On the other hand using a specific device, serial or network, wouldn't
we get trapped with a reduce set of test possibilities?
The idea was to have a dedicated test device, which could be flexible
and extended to test all VIRTIO features, even the current
implementation is yet far from it.
Regards,
Pierre
--
Pierre Morel
IBM Lab Boeblingen