[PATCH] net/virtio-user: fix vhost-kernel initialization
Thomas Monjalon
thomas at monjalon.net
Fri Feb 17 18:27:12 CET 2023
17/02/2023 13:31, Maxime Coquelin:
> This patch fixes a regression causing devices with
> Vhost-kernel backends initialization to fail.
>
> Indeed, Vhost-kernel backend init expects
> dev->max_queue_pairs to be set at setup time, while its
> assignment was moved after backend setup when adding
> control queue support for Vhost-vdpa backends.
>
> It is safe to set dev->max_queue_pairs early for
> Vhost-kernel backends as if the backend does not support
> multiqueue, its setup will fail.
>
> Bugzilla ID: 1161
> Fixes: 7be724856315 ("net/virtio-user: get max number of queue pairs from device")
>
> Reported-by: Wei Ling <weix.ling at intel.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Applied, thanks.
More information about the dev
mailing list