History

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.

Sebastien Boeuf committed 3 years ago

Commit 69106b61 parent 1538a8a2 files · +17 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/vhost_types.h+2−0
@@ -163,5 +163,7 @@ struct vhost_vdpa_iova_range { · 162 unmodified lines
163#define VHOST_BACKEND_F_IOTLB_ASID 0x3163#define VHOST_BACKEND_F_IOTLB_ASID 0x3
164/* Device can be suspended */164/* Device can be suspended */
165#define VHOST_BACKEND_F_SUSPEND 0x4165#define VHOST_BACKEND_F_SUSPEND 0x4
166/* Device can be resumed */
167#define VHOST_BACKEND_F_RESUME 0x5
166 168
167#endif169#endif