From: John Levon Date: Wed, 3 Dec 2025 10:03:12 +0000 (+0530) Subject: vfio-user: clarify partial message handling X-Git-Tag: v10.2.0-rc3~6^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=356c7b175258f29429fb91a7641f775080ab6b49;p=thirdparty%2Fqemu.git vfio-user: clarify partial message handling Improve a comment for this. Signed-off-by: John Levon Reviewed-by: Cédric Le Goater Reviewed-by: Mark Cave-Ayland Link: https://lore.kernel.org/qemu-devel/20251203100316.3604456-3-john.levon@nutanix.com Signed-off-by: Cédric Le Goater --- diff --git a/hw/vfio-user/proxy.c b/hw/vfio-user/proxy.c index 75845d7c89..82c76c6665 100644 --- a/hw/vfio-user/proxy.c +++ b/hw/vfio-user/proxy.c @@ -362,7 +362,10 @@ static int vfio_user_recv_one(VFIOUserProxy *proxy, Error **errp) while (msgleft > 0) { ret = qio_channel_read(proxy->ioc, data, msgleft, errp); - /* prepare to complete read on next iternation */ + /* + * We'll complete this read on the next go around; keep track of the + * partial message until then. + */ if (ret == QIO_CHANNEL_ERR_BLOCK) { proxy->part_recv = msg; proxy->recv_left = msgleft;