Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-08-12 Thread Riku Voipio
Hi, On Mon, Aug 11, 2014 at 06:54:59PM +0200, Joakim Tjernlund wrote: > I do not see this one in master yet. Is there any problem with the patch? It's included in the next pull request: https://git.linaro.org/people/riku.voipio/qemu.git/shortlog/refs/heads/linux-user-for-upstream It will be in

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-08-11 Thread Joakim Tjernlund
I do not see this one in master yet. Is there any problem with the patch? -Joakim Tjernlund wrote: - === To: Riku Voipio , Andreas Färber , Alexander Graf , qemu-devel@nongnu.org From: Joakim Tjernlund Date: 15/07/2014 15:47 Cc: Joakim Tjernlund Subjec

[Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-15 Thread Joakim Tjernlund
QEMU can autodetect if it is started from Linux binfmt loader when binfmt flag O is on. Use that and require binfmt flag P as well which will enable QEMU to pass in correct argv0 to the application. Signed-off-by: Joakim Tjernlund --- v2 - This one actually works and does not abuse argv0

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-15 Thread Joakim Tjernlund
Riku Voipio wrote on 2014/07/15 15:20:35: > > On Mon, Jul 14, 2014 at 11:37:02PM +0200, Joakim Tjernlund wrote: > > Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51: > > > > Why do we need to modify argv[] here when we are building a > > > > target_argv[] further down anyway? > > > > > Be

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-15 Thread Alexander Graf
> Am 15.07.2014 um 15:20 schrieb Riku Voipio : > >> On Mon, Jul 14, 2014 at 11:37:02PM +0200, Joakim Tjernlund wrote: >> Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51: Why do we need to modify argv[] here when we are building a target_argv[] further down anyway? >> >>> Becau

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-15 Thread Riku Voipio
On Mon, Jul 14, 2014 at 11:37:02PM +0200, Joakim Tjernlund wrote: > Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51: > > > Why do we need to modify argv[] here when we are building a > > > target_argv[] further down anyway? > > > Because parse_opts() will not do it for me and I cannot figu

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-15 Thread Alexander Graf
On 07/14/2014 11:37 PM, Joakim Tjernlund wrote: Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51: Why do we need to modify argv[] here when we are building a target_argv[] further down anyway? Because parse_opts() will not do it for me and I cannot figure out how to modify parse_opts()

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-14 Thread Joakim Tjernlund
Joakim Tjernlund/Transmode wrote on 2014/07/14 23:37:02: > From: Joakim Tjernlund/Transmode > To: > Cc: Andreas Färber , Alexander Graf , qemu-devel@nongnu.org, Riku Voipio > Date: 2014/07/14 23:37 > Subject: Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O requir

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-14 Thread Joakim Tjernlund
Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51: > > Why do we need to modify argv[] here when we are building a > > target_argv[] further down anyway? > Because parse_opts() will not do it for me and I cannot figure out how to modify > parse_opts() whithout breaking it. I took another l

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-14 Thread Joakim Tjernlund
Andreas Färber wrote on 2014/07/14 22:14:25: > Am 14.07.2014 20:52, schrieb Joakim Tjernlund: > > Qemu can autodetect if it is started from Linux binfmt loader > > "QEMU" > > > when binfmt flag O is on. > > Use that and require binfmt flag P as well which will enable QEMU > > to pass in correct

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-14 Thread Andreas Färber
Am 14.07.2014 20:52, schrieb Joakim Tjernlund: > Qemu can autodetect if it is started from Linux binfmt loader "QEMU" > when binfmt flag O is on. > Use that and require binfmt flag P as well which will enable QEMU > to pass in correct argv0 to the application. > > Signed-off-by: Joakim Tjernlund

[Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-14 Thread Joakim Tjernlund
Qemu can autodetect if it is started from Linux binfmt loader when binfmt flag O is on. Use that and require binfmt flag P as well which will enable QEMU to pass in correct argv0 to the application. Signed-off-by: Joakim Tjernlund --- linux-user/main.c | 13 - scripts/qemu-