Skip to content

venus: Map VIRGL_RESOURCE_FD_SHM resource on import path

Andrew Gazizov requested to merge andrewgazizov/virglrenderer:vkr_shmem_map into main

Resources with fdtype VIRGL_RESOURCE_FD_SHM must be mapped in address space of renderer server on vkr_context_import_resource() call and fd accordingly invalidated.

It fixes the issue on import of vkr shmem blob zero to virglrenderer. Otherwise on further access to vkr ring, dereference of fd instead of valid pointer will happen causing segmentation fault.

Signed-off-by: Andrew D. Gazizov andrew.gazizov@opensynergy.com

/cc @samael

Merge request reports