diff options
| author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-05-04 10:53:46 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2018-05-23 17:02:02 +0300 |
| commit | e3638151da2a314dda3ed862cf707b8b66aca4cb (patch) | |
| tree | 6a39255d51b05aadf213c5a3c9ecc80801af185b /hw/virtio/vhost-user.c | |
| parent | 9952e807fd016c95f50372536f1ac65a601be6e4 (diff) | |
| download | focaccia-qemu-e3638151da2a314dda3ed862cf707b8b66aca4cb.tar.gz focaccia-qemu-e3638151da2a314dda3ed862cf707b8b66aca4cb.zip | |
libvhost-user: Send messages with no data
The response to a VHOST_USER_POSTCOPY_ADVISE contains a fd but doesn't actually contain any data. FIx vu_message_write so that it doesn't do a 0-byte write() call, since this was ending up with rc=0 that was confusing the error handling code. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-user.c')
0 files changed, 0 insertions, 0 deletions