libxshmfence: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Oct 26 23:05:26 UTC 2024


 src/xshmfence_alloc.c |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

New commits:
commit 3aaf46a2742d1698f3a4399b2bb2f855c0b904fe
Author: Asahi Lina <lina at asahilina.net>
Date:   Tue Oct 22 22:28:19 2024 +0900

    alloc: Allow disabling memfd usage at runtime with XSHMFENCE_NO_MEMFD=1
    
    For thin VMs used for compatibility reasons, it is desirable to directly
    proxy the X11 protocol between an application running in a VM and an X
    server running on the host. We can proxy futex wakeups with some watcher
    code, but we need the futex memory itself to be shared. This works when
    /dev/shm is mounted with virtiofs with DAX, but cannot work for memfds.
    
    Add a XSHMFENCE_NO_MEMFD environment variable that, when set, disables
    the memfd codepath and falls back to /dev/shm.
    
    Signed-off-by: Asahi Lina <lina at asahilina.net>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/merge_requests/9>



More information about the xorg-commit mailing list