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

2024-11-07 Thread Richard Henderson
On 11/6/24 23:49, Noah Goldstein wrote: 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. 1) `-execfd` + prog

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

2024-11-07 Thread Richard Henderson
On 11/6/24 21:30, 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. 1) `-execfd` + program name ie: `qemu -execfd ls -a`. 2) `-execfd` without

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. > > > > > > 1) `-execfd` + 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) `-execfd` without program name i.e: `q

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

2024-11-06 Thread Richard Henderson
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) `-execfd` without program name i.e: `qemu -execfd -a`. Do you want to allow both of these? If you want to allow (1)

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: > > >> > > >> On 11/5/24 23:54, Noah Goldstein 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 still need to handle is_proc_myself, for the guest binary. > >>> > >>>

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

2024-11-06 Thread Richard Henderson
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 still need to handle is_proc_myself, for the guest binary. Would this by handled by basically do: ``` if (is_proc_myself(p, "exe")) { exe =

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_myself(p, "exe")) { > > exe = exec_path; > >

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

2024-11-06 Thread Richard Henderson
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_myself(p, "exe")) { exe = exec_path; if (through_qemu) argp[argp_offset] = exec_path; } ``` Or am I missi

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 > > > process will be launch by the same `qemu` executab

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 along with its current commandline

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

2024-11-05 Thread Richard Henderson
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 along with its current commandline arguments. The motivation for the change is to make it so that plugins

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 motivation for the change is to

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

2024-10-30 Thread Noah Goldstein
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 motivation for the change is to make it so that plugins running through `qemu` can continue to run

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 with its current commandline arguments. > > > >

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

2024-10-29 Thread Alex Bennée
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 with its current commandline arguments. > > The motivation for the change is to make it so that plugins running

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 > > > wrote: > > > > > > > > On Wed, 2024-10-02 at

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: > > > > On Wed, Oct 2, 2024 at 3:08 AM Ilya Leos

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: > > > > > > > > On Fri, 2024-08-30 at 15:36 -0700,

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: > > > > The new option '-qemu-children' makes it

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

2024-10-02 Thread Ilya Leoshkevich
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: > > > The new option '-qemu-children' makes it so that on `execve` the > > > child > > > process will be launch by t

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: > > > > On Wed, Oct 2, 2024 at 9:53 AM Ilya Leo

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

2024-10-02 Thread Ilya Leoshkevich
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: > > > On Wed, Oct 2, 2024 at 9:53 AM Ilya Leoshkevich > > > > > > wrote: > > > > > > > > On Wed, 2024-10-02 at 09

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: > > > > On Wed, Oct 2, 2024 at 9:38 AM Ilya Leos

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

2024-10-02 Thread Ilya Leoshkevich
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: > > > On Wed, Oct 2, 2024 at 9:38 AM Ilya Leoshkevich > > > > > > wrote: > > > > > > > > On Wed, 2024-10-02 at 16:

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

2024-10-02 Thread Laurent Vivier
Le 02/10/2024 à 16:53, Ilya Leoshkevich a écrit : 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: Le 02/10/2024 à 10:08, Ilya Leoshkevich a écrit : On Fri, 2024-08-30 at

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: > > > > Le 02/10/2024 à 10:08, Ilya Leoshkevich a

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

2024-10-02 Thread Ilya Leoshkevich
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: > > > Le 02/10/2024 à 10:08, Ilya Leoshkevich a écrit : > > > > On Fri, 2024-08-30 at 15:36 -0700, Noah Goldstein wr

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

2024-10-02 Thread Noah Goldstein
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 motivation for the change is to make it so that plugins running through `qemu` can continue to run

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 '-qemu-children' makes it so that on `exec

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

2024-10-02 Thread Ilya Leoshkevich
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 '-qemu-children' makes it so that on `execve` the > > > child > > > process will be launch by the same `qemu

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

2024-10-02 Thread Laurent Vivier
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 '-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 argu

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 > > currently > > running along with i

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

2024-10-02 Thread Ilya Leoshkevich
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 > currently > running along with its current commandline arguments. > > The motivation for the change i

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 that on `execve` the child > > > process will be launch by

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 currently > > running along with its c

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

2024-08-30 Thread Noah Goldstein
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 motivation for the change is to make it so that plugins running through `qemu` can continue to run

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 motivation for the change is to