[pulseaudio-discuss] [PATCH v3 00/11] Introduce memfd support

Ahmed S. Darwish darwish.07 at gmail.com
Wed Mar 23 22:38:27 UTC 2016


On Wed, Mar 23, 2016 at 11:03:35PM +0200, Ahmed S. Darwish wrote:
> Hi :-)
> 
> On Tue, Mar 22, 2016 at 11:46:35AM +0500, Alexander E. Patrakov wrote:
> > 
> > Spoke too soon. The game "Baldurs Gate The Original Saga", available on
> > gog.com, bundles wine and libpulse.
> > 
> 
> Will games which statically link libpulse, or bundles its own
> version of it, be affected by the global mempool not being in a
> shared memory?
> 
> My understanding is that they may be affected only if they're
> using the Mic as an _in-game_ input mechanism.
> 
> If that's indeed the case, then we can drop the latest patch of
> this series. In all cases, the next patch series will transform
> the global mempool to a per-client one. By doing so, we can match
> the type of global mempool shared-memory with client needs..
>

ah, forgot something ..

A benefit for transforming the global mempool to memfds by
default now is that a follow-up patch can be quickly developed
to statically remove POSIX SHM support through a
--disable-posix-shm configure flag.

Doing so, we can build a memfd-only libpulse version that can be
bundled in xdg-app runtimes going forward .. [1] [2]

If this is deemed not too high a priority and the danger from
any statically-linked or bundled libraries is higher, then let's
merge patches #1 to #10 and I'll later post a modified version of
patch #11 that only transforms the srbchannel mempool to memfds.

Thanks,

[1] http://article.gmane.org/gmane.comp.audio.pulseaudio.general/24125

[2] http://lwn.net/Articles/680642/

-- 
Darwish
http://darwish.chasingpointers.com


More information about the pulseaudio-discuss mailing list