I found out what was the problem.
I was calling virtqueue_get_avail_bytes() after virtqueue_pop().
On 12.02.2015 15:52, Vasile Catalin-B50542 wrote:
I'm trying to work out virtqueue from the virtio API.
I've been able to send a message from guest to qemu, but there is
something
strange that I
I found what was the problem.
virtqueue_get_avail_bytes() must be called before virtqueue_pop().
On 12.02.2015 15:52, Vasile Catalin-B50542 wrote:
I'm trying to work out virtqueue from the virtio API.
I've been able to send a message from guest to qemu, but there is
something
strange that I
I'm trying to work out virtqueue from the virtio API.
I've been able to send a message from guest to qemu, but there is something
strange that I don't understand.
virtqueue_get_avail_bytes() returns 0 number of "in" bytes, but if I
hard code
iov_to_buf() to get 5 bytes, it actually gets my messa