Displaying 1 result from an estimated 1 matches for "vp_legacy_get_status".
2023 Apr 11
0
[PATCH] virtio_pci: Wait for legacy device to be reset
...7 +98,8 @@ static void vp_reset(struct virtio_device *vdev)
> > > vp_legacy_set_status(&vp_dev->ldev, 0);
> > > /* Flush out the status write, and flush in device writes,
> > > * including MSi-X interrupts, if any. */
> > > - vp_legacy_get_status(&vp_dev->ldev);
> > > + while (vp_legacy_get_status(&vp_dev->ldev))
> > > + msleep(1);
> > > /* Flush pending VQ/configuration callbacks. */
> > > vp_synchronize_vectors(vdev);
> > > }
> > > --...