criu/plugins
Tvrtko Ursulin 3c07837bad plugins/amdgpu: Add userptr support
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>
2026-06-23 13:09:24 +01:00
..
amdgpu plugins/amdgpu: Add userptr support 2026-06-23 13:09:24 +01:00
cuda amdgpu: use fseeko with large-file support instead of fseeko64 2026-01-08 07:48:23 -08:00