Re: linux-user: Add option to run `execve`d programs through QEMU

2024-11-06 Thread Noah Goldstein
On Wed, Nov 6, 2024 at 3:30 PM Noah Goldstein wrote: > > On Wed, Nov 6, 2024 at 3:10 PM Richard Henderson > wrote: > > > > On 11/6/24 18:13, Noah Goldstein wrote: > > > Question about impl regarding handling of `-execfd` with/without a > > > program name.

Re: linux-user: Add option to run `execve`d programs through QEMU

2024-11-06 Thread Noah Goldstein
On Wed, Nov 6, 2024 at 3:10 PM Richard Henderson wrote: > > On 11/6/24 18:13, Noah Goldstein wrote: > > Question about impl regarding handling of `-execfd` with/without a program > > name. > > > > 1) `-execfd` + program name ie: `qemu -execfd ls -a`. > > 2

Re: linux-user: Add option to run `execve`d programs through QEMU

2024-11-06 Thread Noah Goldstein
On Wed, Nov 6, 2024 at 11:53 AM Noah Goldstein wrote: > > On Wed, Nov 6, 2024 at 11:26 AM Richard Henderson > wrote: > > > > On 11/6/24 17:03, Noah Goldstein wrote: > > > On Wed, Nov 6, 2024 at 3:38 AM Richard Henderson > > > wrote: > > >

Re: linux-user: Add option to run `execve`d programs through QEMU

2024-11-06 Thread Noah Goldstein
On Wed, Nov 6, 2024 at 11:26 AM Richard Henderson wrote: > > On 11/6/24 17:03, Noah Goldstein wrote: > > On Wed, Nov 6, 2024 at 3:38 AM Richard Henderson > > wrote: > >> > >> On 11/5/24 23:54, Noah Goldstein wrote: > >>>>> You sti

Re: linux-user: Add option to run `execve`d programs through QEMU

2024-11-06 Thread Noah Goldstein
On Wed, Nov 6, 2024 at 3:38 AM Richard Henderson wrote: > > On 11/5/24 23:54, Noah Goldstein wrote: > >>> You still need to handle is_proc_myself, for the guest binary. > > > > Would this by handled by basically do: > > > > ``` > > if (is_proc_

Re: linux-user: Add option to run `execve`d programs through QEMU

2024-11-05 Thread Noah Goldstein
On Tue, Nov 5, 2024 at 5:48 PM Noah Goldstein wrote: > > On Tue, Nov 5, 2024 at 5:37 AM Richard Henderson > wrote: > > > > On 10/30/24 14:10, Noah Goldstein wrote: > > > The new option '-qemu-children' makes it so that on `execve` the child > &

Re: linux-user: Add option to run `execve`d programs through QEMU

2024-11-05 Thread Noah Goldstein
On Tue, Nov 5, 2024 at 5:37 AM Richard Henderson wrote: > > On 10/30/24 14:10, Noah Goldstein wrote: > > The new option '-qemu-children' makes it so that on `execve` the child > > process will be launch by the same `qemu` executable that is currently > > running

Re: linux-user: Add option to run `execve`d programs through QEMU

2024-10-30 Thread Noah Goldstein
On Wed, Oct 30, 2024 at 9:10 AM Noah Goldstein wrote: > > The new option '-qemu-children' makes it so that on `execve` the child > process will be launch by the same `qemu` executable that is currently > running along with its current commandline arguments. > > The mot

linux-user: Add option to run `execve`d programs through QEMU

2024-10-30 Thread Noah Goldstein
ontinue to run on children. Why not just `binfmt`?: Plugins can be desirable regardless of system/architecture emulation, and can sometimes be useful for elf files that can run natively. Enabling `binfmt` for all natively runnable elf files may not be desirable. Signed-off-by: Noah Goldstein ---

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-29 Thread Noah Goldstein
On Tue, Oct 29, 2024 at 10:23 AM Alex Bennée wrote: > > Noah Goldstein writes: > > > The new option '-qemu-children' makes it so that on `execve` the child > > process will be launch by the same `qemu` executable that is currently > > running along w

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-29 Thread Noah Goldstein
On Tue, Oct 22, 2024 at 5:06 PM Noah Goldstein wrote: > > On Fri, Oct 11, 2024 at 1:14 PM Noah Goldstein > wrote: > > > > On Wed, Oct 2, 2024 at 11:42 AM Noah Goldstein > > wrote: > > > > > > On Wed, Oct 2, 2024 at 11:39 AM Ilya Leoshkevich >

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-22 Thread Noah Goldstein
On Fri, Oct 11, 2024 at 1:14 PM Noah Goldstein wrote: > > On Wed, Oct 2, 2024 at 11:42 AM Noah Goldstein > wrote: > > > > On Wed, Oct 2, 2024 at 11:39 AM Ilya Leoshkevich wrote: > > > > > > On Wed, 2024-10-02 at 09:05 -0500, Noah Goldstein wrote: >

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-11 Thread Noah Goldstein
On Wed, Oct 2, 2024 at 11:42 AM Noah Goldstein wrote: > > On Wed, Oct 2, 2024 at 11:39 AM Ilya Leoshkevich wrote: > > > > On Wed, 2024-10-02 at 09:05 -0500, Noah Goldstein wrote: > > > On Wed, Oct 2, 2024 at 3:08 AM Ilya Leoshkevich > > > wrote: > > >

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-02 Thread Noah Goldstein
On Wed, Oct 2, 2024 at 11:39 AM Ilya Leoshkevich wrote: > > On Wed, 2024-10-02 at 09:05 -0500, Noah Goldstein wrote: > > On Wed, Oct 2, 2024 at 3:08 AM Ilya Leoshkevich > > wrote: > > > > > > On Fri, 2024-08-30 at 15:36 -0700, Noah Goldstein wrote: > >

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-02 Thread Noah Goldstein
On Wed, Oct 2, 2024 at 11:35 AM Ilya Leoshkevich wrote: > > On Wed, 2024-10-02 at 11:24 -0500, Noah Goldstein wrote: > > On Wed, Oct 2, 2024 at 11:14 AM Ilya Leoshkevich > > wrote: > > > > > > On Wed, 2024-10-02 at 10:10 -0500, Noah Goldstein wrote: > &g

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-02 Thread Noah Goldstein
On Wed, Oct 2, 2024 at 11:14 AM Ilya Leoshkevich wrote: > > On Wed, 2024-10-02 at 10:10 -0500, Noah Goldstein wrote: > > On Wed, Oct 2, 2024 at 9:53 AM Ilya Leoshkevich > > wrote: > > > > > > On Wed, 2024-10-02 at 09:44 -0500, Noah Goldstein wrote: > &g

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-02 Thread Noah Goldstein
On Wed, Oct 2, 2024 at 9:53 AM Ilya Leoshkevich wrote: > > On Wed, 2024-10-02 at 09:44 -0500, Noah Goldstein wrote: > > On Wed, Oct 2, 2024 at 9:38 AM Ilya Leoshkevich > > wrote: > > > > > > On Wed, 2024-10-02 at 16:08 +0200, Laurent Vivier wrote: > > &

[PATCH v2] linux-user: Add option to run `execve`d programs through QEMU

2024-10-02 Thread Noah Goldstein
ontinue to run on children. Why not just `binfmt`?: Plugins can be desirable regardless of system/architecture emulation, and can sometimes be useful for elf files that can run natively. Enabling `binfmt` for all natively runnable elf files may not be desirable. Signed-off-by: Noah Goldstein ---

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-02 Thread Noah Goldstein
On Wed, Oct 2, 2024 at 9:38 AM Ilya Leoshkevich wrote: > > On Wed, 2024-10-02 at 16:08 +0200, Laurent Vivier wrote: > > Le 02/10/2024 à 10:08, Ilya Leoshkevich a écrit : > > > On Fri, 2024-08-30 at 15:36 -0700, Noah Goldstein wrote: > > > > The new option &#x

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-10-02 Thread Noah Goldstein
On Wed, Oct 2, 2024 at 3:08 AM Ilya Leoshkevich wrote: > > On Fri, 2024-08-30 at 15:36 -0700, Noah Goldstein wrote: > > The new option '-qemu-children' makes it so that on `execve` the > > child > > process will be launch by the same `qemu` executable that is &g

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-09-24 Thread Noah Goldstein
On Tue, Sep 10, 2024 at 3:06 PM Noah Goldstein wrote: > > On Fri, Aug 30, 2024 at 3:37 PM Noah Goldstein > wrote: > > > > On Fri, Aug 30, 2024 at 3:36 PM Noah Goldstein > > wrote: > > > > > > The new option '-qemu-children' makes it so

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-09-10 Thread Noah Goldstein
On Fri, Aug 30, 2024 at 3:37 PM Noah Goldstein wrote: > > On Fri, Aug 30, 2024 at 3:36 PM Noah Goldstein > wrote: > > > > The new option '-qemu-children' makes it so that on `execve` the child > > process will be launch by the same `qemu` executable that is

[PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-08-30 Thread Noah Goldstein
ontinue to run on children. Why not just `binfmt`?: Plugins can be desirable regardless of system/architecture emulation, and can sometimes be useful for elf files that can run natively. Enabling `binfmt` for all natively runnable elf files may not be desirable. Signed-off-by: Noah Goldstein ---

Re: [PATCH v1] linux-user: Add option to run `execve`d programs through QEMU

2024-08-30 Thread Noah Goldstein
On Fri, Aug 30, 2024 at 3:36 PM Noah Goldstein wrote: > > The new option '-qemu-children' makes it so that on `execve` the child > process will be launch by the same `qemu` executable that is currently > running along with its current commandline arguments. > > The mot