criu/plugins
Tvrtko Ursulin c5150042fd plugins/amdgpu: Add support for AMDGPU_GEM_CREATE_VM_ALWAYS_VALID objects
Always valid buffer objects are special in that they cannot be exported
via dmabuf and as such the current code paths for dumping and restoring
their content cannot work.

To support them we make use of the new DRM_IOCTL_AMDGPU_GEM_COPY_BUFFER
ioctl, which allows access to the kernel side content copy code.

This is beneficial not just for handling VM always valid objects, but
also removes issues around GPU virtual address space conflicts, where
neither the dump or restore stages do not need to know, or attempt to work
work around not being able to know, the current VM virtual address range
allocations.

Therefore we implement this as the preferred method of copying buffer
object content and only fall-back on the existing code paths if the
current kernel does not support it.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
2026-06-23 14:55:55 +01:00
..
amdgpu plugins/amdgpu: Add support for AMDGPU_GEM_CREATE_VM_ALWAYS_VALID objects 2026-06-23 14:55:55 +01:00
cuda amdgpu: use fseeko with large-file support instead of fseeko64 2026-01-08 07:48:23 -08:00