Re: [PATCH v5 3/6] vduse: add vq group support

From: Michael S. Tsirkin

Date: Fri Sep 26 2025 - 11:27:04 EST


On Fri, Sep 26, 2025 at 12:14:29PM +0200, Eugenio Pérez wrote:
> @@ -1859,6 +1894,7 @@ static int vduse_create_dev(struct vduse_dev_config *config,
> dev->device_features = config->features;
> dev->device_id = config->device_id;
> dev->vendor_id = config->vendor_id;
> + dev->ngroups = (dev->api_version < 1) ? 1 : config->ngroups;

Is this < 1 same as VDUSE_API_VERSION_1? If so, maybe use that?