Add extended shared memory attach structure
This provides an extended version of
X_ShmAttachFdExt, which allows the client to specify two additional
- The size of the mapping, in bytes.
- The offset that should be passed to
mmap, in bytes.
The intended use-case for this extension is when one needs to map
a drawable from a character special device, but it can also be
used with regular files if one needs to map with a nonzero offset.
Qubes OS needs the X server to map the
device, which represents memory shared from a different virtual
machine. This is currently accomplished with an
shared library that overrides
I have written a version that instead overrides
With this extension, the preloaded shared library will not be required.