[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix |
Date: |
Mon, 4 Jun 2018 03:04:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 01/06/2018 00:49, Richard Henderson wrote:
> If the interp_prefix is a complete chroot, it may have a *lot* of files.
> Setting up the cache for this is quite expensive.
>
> For the most part, we can use the *at versions of various syscalls to
> attempt the operation in the prefix. For the few cases that remain,
> attempt the operation in the prefix via concatenation and then retry
> if that fails.
>
I like the idea, but it breaks real chroot.
You can test it with:
wget
https://github.com/vivier/linux-user-test-scrips/raw/master/create_chroot.sh
then
sudo sh ./create_chroot.sh /path/to/static/qemu-s390x stretch
It fails with:
Reading package lists... Done
E: Method /usr/lib/apt/methods/http did not start correctly
E: Failed to fetch http://ftp.us.debian.org/debian/dists/stretch/InRelease
E: Some index files failed to download. They have been ignored, or old
ones used instead.
stretch s390x FAILED
Thanks,
Laurent
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix,
Laurent Vivier <=
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix, Richard Henderson, 2018/06/05
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix, Peter Maydell, 2018/06/05
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix, Laurent Vivier, 2018/06/05
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix, Peter Maydell, 2018/06/05
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix, Laurent Vivier, 2018/06/05
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix, Daniel P . Berrangé, 2018/06/05
- Re: [Qemu-devel] [PATCH 6/6] linux-user: Use *at functions to implement interp_prefix, Peter Maydell, 2018/06/05