summaryrefslogtreecommitdiff
path: root/include/uapi/linux/vhost_types.h
diff options
context:
space:
mode:
authorSebastien Boeuf <sebastien.boeuf@intel.com>2023-01-03 13:51:06 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-02-21 03:26:56 +0300
commit69106b6fb3d73bd4252daa48ae96e600c9701147 (patch)
tree22a7af5612cc15a224e958ceb8894e2abc109ca6 /include/uapi/linux/vhost_types.h
parent1538a8a49ecbe6d3302cd7f347632338e56857f8 (diff)
downloadlinux-69106b6fb3d73bd4252daa48ae96e600c9701147.tar.xz
vhost-vdpa: Introduce RESUME backend feature bit
Userspace knows if the device can be resumed or not by checking this feature bit. It's only exposed if the vdpa driver backend implements the resume() operation callback. Userspace trying to negotiate this feature when it hasn't been exposed will result in an error. Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> Message-Id: <b18db236ba3d990cdb41278eb4703be9201d9514.1672742878.git.sebastien.boeuf@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Diffstat (limited to 'include/uapi/linux/vhost_types.h')
-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 53601ce2c20a..c5690a8992d8 100644
--- a/include/uapi/linux/vhost_types.h
+++ b/include/uapi/linux/vhost_types.h
@@ -163,5 +163,7 @@ struct vhost_vdpa_iova_range {
#define VHOST_BACKEND_F_IOTLB_ASID 0x3
/* Device can be suspended */
#define VHOST_BACKEND_F_SUSPEND 0x4
+/* Device can be resumed */
+#define VHOST_BACKEND_F_RESUME 0x5
#endif