Message ID | 20240918071930.28771-1-xiangwencheng@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v4] vhsot-user: Do not wait for reply for not sent VHOST_USER_SET_LOG_BASE | expand |
diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index 00561daa06..fd12992d15 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -460,7 +460,7 @@ static int vhost_user_set_log_base(struct vhost_dev *dev, uint64_t base, return ret; } - if (shmfd) { + if (shmfd && dev->vq_index == 0) { msg.hdr.size = 0; ret = vhost_user_read(dev, &msg); if (ret < 0) {