qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/1] util/path: Do not cache all filenames at startup
@ 2019-04-17  5:32 Richard Henderson
  2019-04-17  5:32 ` Richard Henderson
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Richard Henderson @ 2019-04-17  5:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: laurent, evgreen, peter.maydell

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-04-24  8:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-17  5:32 [Qemu-devel] [PATCH 0/1] util/path: Do not cache all filenames at startup Richard Henderson
2019-04-17  5:32 ` Richard Henderson
2019-04-17  5:32 ` [Qemu-devel] [PATCH 1/1] " Richard Henderson
2019-04-17  5:32   ` Richard Henderson
2019-04-23  9:54   ` Philippe Mathieu-Daudé
2019-04-23  9:54     ` Philippe Mathieu-Daudé
2019-04-23 10:01     ` Daniel P. Berrangé
2019-04-23 10:01       ` Daniel P. Berrangé
2019-04-23 18:30       ` David Hildenbrand
2019-04-23 18:30         ` David Hildenbrand
2019-04-24  8:18         ` Daniel P. Berrangé
2019-04-24  8:18           ` Daniel P. Berrangé
2019-04-17  5:39 ` [Qemu-devel] [PATCH 0/1] " no-reply
2019-04-17  5:39   ` no-reply
2019-04-17  5:40 ` no-reply
2019-04-17  5:40   ` no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).