Displaying 1 result from an estimated 1 matches for "vhost_vdpa_first_dev".
2023 Feb 16
0
[PATCH v3 04/14] vdpa: add vhost_vdpa_suspend
...> +++ b/hw/virtio/vhost-vdpa.c
> @@ -1109,6 +1109,24 @@ static void vhost_vdpa_svqs_stop(struct vhost_dev *dev)
> }
> }
>
> +static void vhost_vdpa_suspend(struct vhost_dev *dev)
> +{
> + struct vhost_vdpa *v = dev->opaque;
> + int r;
> +
> + if (!vhost_vdpa_first_dev(dev) ||
> + !(dev->backend_features & BIT_ULL(VHOST_BACKEND_F_SUSPEND))) {
Shouldn't it be backend_cap?