summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2022-06-23 18:07:36 +0200
committerMichael S. Tsirkin <mst@redhat.com>2022-06-27 08:05:35 -0400
commit94ab17d00bbfe73d05477ca75346196e8bd831db (patch)
tree3ad6acd3f9551c4d5dad53361f796c18ae1efe58 /include/uapi
parentb8f6770624f699d3ead20b9589fb849665f26ded (diff)
downloadlinux-next-94ab17d00bbfe73d05477ca75346196e8bd831db.tar.gz
linux-next-94ab17d00bbfe73d05477ca75346196e8bd831db.zip
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: <20220623160738.632852-3-eperezma@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/vhost_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/vhost_types.h b/include/uapi/linux/vhost_types.h
index 634cee485abb..1bdd6e363f4c 100644
--- a/include/uapi/linux/vhost_types.h
+++ b/include/uapi/linux/vhost_types.h
@@ -161,5 +161,7 @@ struct vhost_vdpa_iova_range {
* message
*/
#define VHOST_BACKEND_F_IOTLB_ASID 0x3
+/* Device can be suspended */
+#define VHOST_BACKEND_F_SUSPEND 0x4
#endif