[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] libvhost-user: Send messages with no data
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH] libvhost-user: Send messages with no data |
Date: |
Fri, 4 May 2018 08:09:58 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 05/04/2018 04:53 AM, Dr. David Alan Gilbert (git) wrote:
From: "Dr. David Alan Gilbert" <address@hidden>
The response to a VHOST_USER_POSTCOPY_ADVISE contains a fd but doesn't
s/a fd/an fd/ ? Depends on whether you pronounce it "eff-dee" or
"file-descriptor".
actually contain any data. FIx vu_message_write so that it doesn't
s/FIx/Fix/
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 <address@hidden>
---
contrib/libvhost-user/libvhost-user.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org