OSDN Git Service

radv: add a secure_compile_open_fifo_fds() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 13 Nov 2019 03:51:48 +0000 (14:51 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 24 Nov 2019 23:10:14 +0000 (10:10 +1100)
commit1663bb1f772dacadaec2d80f8286cfb76c4bb200
tree14ae0642961707ec642070d260439f4be67e141d
parentef54f15da9ac11fafcbd6c91a7fcdac734436db8
radv: add a secure_compile_open_fifo_fds() helper

This will be used to create a communication pipe between the user
facing device and a freshly forked (per pipeline compile) slim copy
of that device.

We can't use pipe() here because the fork will not be a direct fork
of the user facing process. Instead we use a previously forked
copy of the process that was forked at device creation in order to
reduce the resources required for the fork and avoid performance
issues.

Fixes: cff53da3748d ("radv: enable secure compile support")
src/amd/vulkan/radv_device.c