mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
Use the AMDGPU_GEM_LIST_HANDLES_FLAG_IS_USERPTR flag returned from the DRM_IOCTL_AMDGPU_GEM_LIST_HANDLES ioctl to detect userptr objects. For userptr mmap is not supported so it needs to be skipped, likewise the dumping and restoring of buffer object content since that lives in the normal process memory space. The only trick is objects needs to be re-created without the AMDGPU_GEM_USERPTR_VALIDATE flag, given that the restore stage runs before the process address space has been restored. But that is fine, given that if those object exists and have had this flag set, that means they have past the validation on creation already. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> |
||
|---|---|---|
| .. | ||
| amdgpu | ||
| cuda | ||