containers / libkrun

A dynamic library providing Virtualization-based process isolation capabilities
Apache License 2.0
920 stars 76 forks source link

X11 cross-domain prep work #231

Closed asahilina closed 3 weeks ago

asahilina commented 1 month ago

Prep work for the X11 channel type that does not strictly implement the code. This will be a dependency of #213.

Most of this is implementing support for sharing file handles between the FS code and the GPU code, to implement fence passing. Please let me know if this approach looks sensible.

asahilina commented 1 month ago

For the first commit, note that the original code is also arguably buggy in that it's not handling the fence properly in the EOF case (it should requeue a HandleFence job to allow processing to continue without sending out a ring message), though in practice this doesn't make much difference since EOF wasn't signaled anyway so it's going to hang.