It seems that the problem is from the code itself. If I call vhost_dev_start() in set_status() (in qemu), when the status changes to VIRTIO_CONFIG_S_DRIVER_OK, only the communication path from guest to vhost works.
In another scenario I send a message from guest to qemu, and the vq handler in qemu calls vhost_dev_start(). From here right on the communication works both ways between guest and vhost (I can also receive signals from vhost to guest). I used the first scenario because I took vhost-scsi as an example. The thing is I don't understand what I'm doing different. On Thu, Jun 11, 2015 at 5:26 PM, Catalin Vasile <catalinvasil...@gmail.com> wrote: > Is there something I need to install (kernel module or something like > that) so that the virtio guest receives signals from vhost? > The communication from and to qemu works (I can send a message from > guest to qemu, and I can send a message from qemu to guest), and I can > send a message from guest to vhost, but I don't get any signals when I > call vhost_add_used_and_signal()).