diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index c97ea2544de4f7ba878fd0da2dd07286188f4422..f10620494bb60b4864b95739364c7847552a1ab3 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -534,7 +534,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) {