WSL2-Linux-Kernel/drivers/vhost
Eugenio Pérez f345a0143b vhost-vdpa: uAPI to suspend the device
The ioctl adds support for suspending the device from userspace.

This is a must before getting virtqueue indexes (base) for live migration,
since the device could modify them after userland gets them. There are
individual ways to perform that action for some devices
(VHOST_NET_SET_BACKEND, VHOST_VSOCK_SET_RUNNING, ...) but there was no
way to perform it for any vhost device (and, in particular, vhost-vdpa).

After a successful return of the ioctl call the device must not process
more virtqueue descriptors. The device can answer to read or writes of
config fields as if it were not suspended. In particular, writing to
"queue_enable" with a value of 1 will not make the device start
processing buffers of the virtqueue.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20220810171512.2343333-4-eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-08-11 04:31:15 -04:00
..
Kconfig vhost_vdpa: implement IRQ offloading in vhost_vdpa 2020-08-05 11:08:42 -04:00
Makefile vhost: introduce vDPA-based backend 2020-04-02 10:41:40 -04:00
iotlb.c vhost_iotlb: split out IOTLB initialization 2022-05-31 12:44:28 -04:00
net.c vhost: rename vhost_work_dev_flush 2022-05-31 12:45:10 -04:00
scsi.c vhost scsi: Allow user to control num virtqueues 2022-08-11 04:26:08 -04:00
test.c vhost: rename vhost_work_dev_flush 2022-05-31 12:45:10 -04:00
test.h tools/virtio: Add --reset 2020-06-22 12:34:21 -04:00
vdpa.c vhost-vdpa: uAPI to suspend the device 2022-08-11 04:31:15 -04:00
vhost.c vhost: rename vhost_work_dev_flush 2022-05-31 12:45:10 -04:00
vhost.h vhost: rename vhost_work_dev_flush 2022-05-31 12:45:10 -04:00
vringh.c vringh: iterate on iotlb_translate to handle large translations 2022-08-11 04:06:37 -04:00
vsock.c vhost: rename vhost_work_dev_flush 2022-05-31 12:45:10 -04:00