search for: vhost_vdpa_suspend

Displaying 1 result from an estimated 1 matches for "vhost_vdpa_suspend".

2023 Feb 16
0
[PATCH v3 04/14] vdpa: add vhost_vdpa_suspend
...t; diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c > index 1d0209d6ad..796f38d64e 100644 > --- a/hw/virtio/vhost-vdpa.c > +++ 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?