|
@@ -1909,6 +1909,11 @@ static int vhost_user_backend_init(struct vhost_dev *dev, void *opaque)
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (dev->num_queues && dev->max_queues < dev->num_queues) {
|
|
|
|
+ error_report("The maximum number of queues supported by the "
|
|
|
|
+ "backend is %" PRIu64, dev->max_queues);
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
|
|
if (virtio_has_feature(features, VIRTIO_F_IOMMU_PLATFORM) &&
|
|
if (virtio_has_feature(features, VIRTIO_F_IOMMU_PLATFORM) &&
|
|
!(virtio_has_feature(dev->protocol_features,
|
|
!(virtio_has_feature(dev->protocol_features,
|