[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/1] util/path: Do not cache all filenames at startu
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 0/1] util/path: Do not cache all filenames at startup |
Date: |
Tue, 16 Apr 2019 19:32:24 -1000 |
This is a third variant attempting to fix the problem of
the -L interp_prefix handling not coping well pointing to
a full chroot.
Previous versions include:
https://lists.gnu.org/archive/html/qemu-devel/2018-05/msg06592.html
https://lists.gnu.org/archive/html/qemu-devel/2018-05/msg07304.html
Both of the other versions keep an open file descriptor to
the directory that is interp_prefix. While this seems to be
efficient, they also leak a file descriptor into the guest.
This has follow-on effects on the emulation, causing failures
e.g. within the LTP testsuite.
This version uses only string manipulation and access(2).
A plausible criticism of this is the mutex and the cache.
Are they really needed? I have no idea. I can imagine
removing that is actually more efficient, not needing a
lock around a shared data structure.
Comments?
r~
Richard Henderson (1):
util/path: Do not cache all filenames at startup
util/path.c | 211 ++++++++++++++--------------------------------------
1 file changed, 57 insertions(+), 154 deletions(-)
--
2.17.1
- [Qemu-devel] [PATCH 0/1] util/path: Do not cache all filenames at startup,
Richard Henderson <=
Re: [Qemu-devel] [PATCH 0/1] util/path: Do not cache all filenames at startup, no-reply, 2019/04/17
Re: [Qemu-devel] [PATCH 0/1] util/path: Do not cache all filenames at startup, no-reply, 2019/04/17