]> git.baikalelectronics.ru Git - kernel.git/commit
vhost-vdpa: introduce SUSPEND backend feature bit
authorEugenio Pérez <eperezma@redhat.com>
Wed, 10 Aug 2022 17:15:10 +0000 (19:15 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:31:14 +0000 (04:31 -0400)
commitd71f96ab9c67f9c289d16fc6ad3f3e1687117b20
treee10aa979039b7eb2fe412faa09348376c852a9f7
parentd7eb208041ee62d108097335618dc4b1286e77cb
vhost-vdpa: introduce SUSPEND backend feature bit

Userland knows if it can suspend the device or not by checking this feature
bit.

It's only offered if the vdpa driver backend implements the suspend()
operation callback, and to offer it or userland to ack it if the backend
does not offer that callback is an error.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20220810171512.2343333-3-eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vdpa.c
include/uapi/linux/vhost_types.h