diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2020-01-23 09:17:08 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2020-02-27 03:46:10 -0500 |
| commit | ff1320050a3a7af8b094020c5e4bb6ad736421a8 (patch) | |
| tree | 2a7d12eea4467ce7d5afe8e26bff01130807ba7a /hw/core/machine.c | |
| parent | 3348e7e34ff945340dbcf310d29d4feb5de20ef6 (diff) | |
| download | focaccia-qemu-ff1320050a3a7af8b094020c5e4bb6ad736421a8.tar.gz focaccia-qemu-ff1320050a3a7af8b094020c5e4bb6ad736421a8.zip | |
libvhost-user: implement in-band notifications
Add support for VHOST_USER_PROTOCOL_F_IN_BAND_NOTIFICATIONS, but as it's not desired by default, don't enable it unless the device implementation opts in by returning it from its protocol features callback. Note that I updated vu_set_vring_err_exec(), but didn't add any sending of the VHOST_USER_SLAVE_VRING_ERR message as there's no write to the err_fd today either. This also adds vu_queue_notify_sync() which can be used to force a synchronous notification if inband notifications are supported. Previously, I had left out the slave->master direction handling of F_REPLY_ACK, this now adds some code to support it as well. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Message-Id: <20200123081708.7817-7-johannes@sipsolutions.net> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/core/machine.c')
0 files changed, 0 insertions, 0 deletions