summaryrefslogtreecommitdiffstats
path: root/drivers/vdpa
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2022-08-10 19:15:11 +0200
committerMichael S. Tsirkin <mst@redhat.com>2022-08-11 04:31:15 -0400
commitf345a0143b4dd1cfc850009c6979a3801b86a06f (patch)
tree7a3191db2733b0233903ac78eca7fd9ce44fc094 /drivers/vdpa
parent0723f1df5c3ec8a1112d150dab98e149361ef488 (diff)
downloadlinux-f345a0143b4dd1cfc850009c6979a3801b86a06f.tar.bz2
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>
Diffstat (limited to 'drivers/vdpa')
0 files changed, 0 insertions, 0 deletions