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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -161,5 +161,7 @@ struct vhost_vdpa_iova_range { · 160 unmodified lines | ||
| 161 | 161 | * message |
| 162 | 162 | */ |
| 163 | 163 | #define VHOST_BACKEND_F_IOTLB_ASID 0x3 |
| 164 | +/* Device can be suspended */ | |
| 165 | +#define VHOST_BACKEND_F_SUSPEND 0x4 | |
| 164 | 166 | |
| 165 | 167 | #endif |