Skip to content

Commit 5c6b39e

Browse files
committed
shmoverride: extend documentation about LD_PRELOAD usage
1 parent 7fac094 commit 5c6b39e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shmoverride/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ it uses cmd_pages to determine which frames or grant pages should be mapped and
2020
from which domain. The munmap() implementation checks if the address is one
2121
that shmoverride.so had previously mapped, and if so, calls the appropriate Xen
2222
API functions to release the memory.
23+
24+
25+
The LD_PRELOAD can be used in two ways:
26+
1. Set directly for the Xorg/Xwayland process. For this, the package provides convenient wrappers:
27+
- /usr/bin/X for Xorg
28+
- /usr/libexec/qubes/wrappers/Xwayland for Xwayland (can be used by prepending /usr/libexec/qubes/wrappers to PATH for the wayland compositor process)
29+
2. Set for some parent process and use SHMOVERRIDE_PROGLIST="Xorg Xwayland" (space separated list of program basenames) to select which process should be affected.

0 commit comments

Comments
 (0)