[Qemu-devel] [PATCH] Workaround to the real-mode/protected-mode conflict in GDB.

2012-01-24 Thread Laurent Vivier
rget architecture is assumed to be i386:x86-64 (gdb) sym vmlinux Reading symbols from /home/laurent/linux/vmlinux...done. (gdb) target remote :1234 Remote debugging using :1234 start_kernel () at init/main.c:468 468 { (gdb) x/i $pc => 0x81ad391f : push %rbp (gdb) c

Re: [Qemu-devel] [PATCH 0/4] linux-user: A serie of patches to set default CPU

2012-01-31 Thread Laurent Vivier
Le mardi 31 janvier 2012 à 22:01 +0200, Riku Voipio a écrit : > On Sun, Jan 22, 2012 at 01:27:13PM +0100, Laurent Vivier wrote: > > This serie of patches has already been sent, more or less, several time, > > last time in july 2011. > > > For chrooted environment, it allo

[Qemu-devel] [PATCH] linux-user: convert /proc/net/route when endianess differs between target and host.

2012-12-08 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e4291ed..0415135 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5085,6

[Qemu-devel] [PATCH] linux-user: correctly align types in thunking code

2012-12-08 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- thunk.h | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/thunk.h b/thunk.h index 87025c3..d3e9f3d 100644 --- a/thunk.h +++ b/thunk.h @@ -151,20 +151,32 @@ static inline int thunk_type_align(const argtype *type_ptr

[Qemu-devel] [PATCH] linux-user: add string type in rtentry struct             to be able to pass the device name

2012-12-08 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 64 linux-user/syscall_types.h |4 ++- 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0415135..849fc7a 100644 --- a

[Qemu-devel] [PATCH] linux-user: allow to use sudo in guest qemu must have suid/gid bit and root owner/group

2012-12-08 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/linuxload.c | 12 +++- linux-user/main.c |3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index 381ab89..0fccf58 100644 --- a/linux-user/linuxload.c +++ b/linux

Re: [Qemu-devel] [PATCH] linux-user: correctly align types in thunking code

2012-12-08 Thread Laurent Vivier
Le samedi 08 décembre 2012 à 16:40 +, Peter Maydell a écrit : > On 8 December 2012 15:18, Laurent Vivier wrote: > > Signed-off-by: Laurent Vivier > > This kind of patch really needs an explanation (and ideally > test case) of what the bug is that it is attempting to fix...

Re: [Qemu-devel] [PATCH] linux-user: correctly align types in thunking code

2012-12-08 Thread Laurent Vivier
Le samedi 08 décembre 2012 à 17:55 +0100, Andreas Färber a écrit : > Am 08.12.2012 16:18, schrieb Laurent Vivier: > > Signed-off-by: Laurent Vivier > > --- > > thunk.h | 22 +- > > 1 file changed, 17 insertions(+), 5 deletions(-) > > &

[Qemu-devel] [PATCH] linux-user: convert /proc/net/route when endianess differs

2012-12-20 Thread Laurent Vivier
Metric Mask MTU Window IRTT eth00a00030100030 0 0 0 0 0 eth00a00030000010 0 0 ff000 0 0 Signed-off-by: Laurent Vivier --- linux-user/syscal

[Qemu-devel] [PATCH] linux-user: correctly align types in thunking code

2012-12-20 Thread Laurent Vivier
This is a follow up of patch: commit c2e3dee6e03527baf8698698cce76b1a3174969a Author: Laurent Vivier Date: Sun Feb 13 23:37:34 2011 +0100 linux-user: Define target alignment size In my case m68k aligns "int" on 2 not 4. You can check thi

[Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2012-12-20 Thread Laurent Vivier
oto laurent@m68k $ fakeroot root@m68k # touch toto root@m68k # ls -l toto -rw-r--r-- 1 root root 0 2012-12-18 22:50 toto root@m68k # exit exit root@m68k # ls -l toto -rw-r--r-- 1 laurent laurent 0 2012-12-18 22:50 toto Signed-off-by: Laurent Vivier --- configure

[Qemu-devel] [PATCH] linux-user: add string type in rtentry struct

2012-12-20 Thread Laurent Vivier
0.0.0.0 UG0 0 0 eth0 10.0.3.00.0.0.0 255.255.255.0 U 0 0 0 eth0 Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 64 linux-user/syscall_types.h |4 ++- 2 files changed, 67

[Qemu-devel] [PATCH] linux-user: correct semctl() and shmctl()

2012-12-20 Thread Laurent Vivier
01 -- Message Queues keymsqid owner perms used-bytes messages 0x1c44ac45 458752 laurent60000 0x1c44ac46 491521 laurent60000 Signed-off-by: Laurent Vivier --- linux-user/syscal

[Qemu-devel] [PATCH] linux-user: correct msgrcv()

2012-12-20 Thread Laurent Vivier
FAKEROOT: msg=0, key=1569385744 ^C fakeroot: clearing up message queues and semaphores, signal=2 fakeroot: database save FAILED Signed-off-by: Laurent Vivier --- linux-user/syscall.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user

[Qemu-devel] [PATCH 0/2] linux-user: dhclient support

2012-12-31 Thread Laurent Vivier
This two patches allow to use dhclient to configure IP addresses in a linux container running the linux-user version of qemu. [PATCH 1/2] linux-user: Add setsockopt(SO_ATTACH_FILTER) [PATCH 2/2] linux-user: SOCK_PACKET uses network endian to encode

[Qemu-devel] [PATCH 1/2] linux-user: Add setsockopt(SO_ATTACH_FILTER)

2012-12-31 Thread Laurent Vivier
This is needed to be able to run dhclient. Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 34 +- linux-user/syscall_defs.h | 12 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user

[Qemu-devel] [PATCH 2/2] linux-user: SOCK_PACKET uses network endian to encode protocol in socket()

2012-12-31 Thread Laurent Vivier
From: Laurent Vivier in PACKET(7) : protocol is the IEEE 802.3 protocol number in network order. See the include file for a list of allowed protocols. When protocol is set to htons(ETH_P_ALL) then all protocols are received. All incoming packets of that

[Qemu-devel] [PATCH] linux-user: correct print_timeval() swap tv_sec and tv_usec

2012-12-31 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- linux-user/strace.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 6ec90e8..4e91a6e 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -682,7 +682,7

[Qemu-devel] [PATCH] linux-user: correct setsockopt() SO_SNDTIMEO and SO_RCVTIMEO take a struct timeval, not an int

2012-12-31 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e99adab..1530c8f 100644 --- a/linux-user/syscall.c +++ b/linux-user

[Qemu-devel] [PATCH] linux-user: improve print_fcntl()

2012-12-31 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- linux-user/strace.c | 97 +-- 1 file changed, 79 insertions(+), 18 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 6ec90e8..039fee8 100644 --- a/linux-user

Re: [Qemu-devel] [PATCH 2/2] linux-user: SOCK_PACKET uses network endian to encode protocol in socket()

2012-12-31 Thread Laurent Vivier
Le lundi 31 décembre 2012 à 21:32 +, Peter Maydell a écrit : > On 31 December 2012 19:38, Laurent Vivier wrote: > > @@ -1900,6 +1900,12 @@ static abi_long do_socket(int domain, int type, int > > protocol) > > #endif > > if (domain == PF_NETLINK) > >

Re: [Qemu-devel] [PATCH 2/2] linux-user: SOCK_PACKET uses network endian to encode protocol in socket()

2013-01-01 Thread Laurent Vivier
Le mardi 01 janvier 2013 à 15:03 +, Peter Maydell a écrit : > On 31 December 2012 22:19, Laurent Vivier wrote: > > Le lundi 31 décembre 2012 à 21:32 +, Peter Maydell a écrit : > >> Also it seems rather involved since we swap things three times and > >> have an

[Qemu-devel] [PATCH][v2] linux-user: correct setsockopt()

2013-01-01 Thread Laurent Vivier
From: Laurent Vivier SO_SNDTIMEO and SO_RCVTIMEO take a struct timeval, not an int To test this, you can use : QEMU_STRACE= ping localhost 2>&1 |grep TIMEO 568 setsockopt(3,SOL_SOCKET,SO_SNDTIMEO,{1,0},8) = 0 568 setsockopt(3,SOL_SOCKET,SO_RCVTIMEO,{1,0},8) = 0 Signed-off-by: Laurent

Re: [Qemu-devel] [PATCH 2/2] linux-user: SOCK_PACKET uses network endian to encode protocol in socket()

2013-01-01 Thread Laurent Vivier
Le mardi 01 janvier 2013 à 18:27 +0100, Laurent Vivier a écrit : > Le mardi 01 janvier 2013 à 15:03 +, Peter Maydell a écrit : > > On 31 December 2012 22:19, Laurent Vivier wrote: > > > works... sometime. In fact, work if target endianess is network endianess. > > &

Re: [Qemu-devel] [PATCH 2/2] linux-user: SOCK_PACKET uses network endian to encode protocol in socket()

2013-01-01 Thread Laurent Vivier
Le mardi 01 janvier 2013 à 19:45 +, Peter Maydell a écrit : > On 1 January 2013 18:37, Laurent Vivier wrote: > > Le mardi 01 janvier 2013 à 18:27 +0100, Laurent Vivier a écrit : > >> Le mardi 01 janvier 2013 à 15:03 +, Peter Maydell a écrit : > >> > On 3

Re: [Qemu-devel] [PATCH] linux-user: convert /proc/net/route when endianess differs

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 21:53 +0100, Laurent Vivier a écrit : > This patch allows to have IP addresses in correct order > in the case of "netstat -nr" when the endianess of the > guest differs from one of the host. > > For instance, an m68k guest on an x86_6

Re: [Qemu-devel] [PATCH] linux-user: correctly align types in thunking code

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 21:55 +0100, Laurent Vivier a écrit : > This is a follow up > of patch: > > commit c2e3dee6e03527baf8698698cce76b1a3174969a > Author: Laurent Vivier > Date: Sun Feb 13 23:37:34 2011 +0100 > > l

Re: [Qemu-devel] [PATCH] linux-user: add string type in rtentry struct

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 21:56 +0100, Laurent Vivier a écrit : > This allows to pass the device name. > > You can test this with the "route" command. > > WITHOUT this patch: > > $ sudo route add -net default gw 10.0.3.1 eth0 > SIOCADDRT: Bad a

Re: [Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 21:56 +0100, Laurent Vivier a écrit : > When qemu-linux-user is used in a linux container or chroot, > if it needs to load binaries with SUID/SGID bits, it needs to > have root rights to be able to change UID/GID. To do that, we > need to install

Re: [Qemu-devel] [PATCH] linux-user: correct semctl() and shmctl()

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 21:58 +0100, Laurent Vivier a écrit : > The parameter "union semun" of semctl() is not a value > but a pointer to the value. > > Moreover, all fields of target_su must be swapped (if needed). > > The third argument of shmctl is

Re: [Qemu-devel] [PATCH] linux-user: correct msgrcv()

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 22:00 +0100, Laurent Vivier a écrit : > All parameters must be swapped before the call of do_msgrcv(). > > Allow faked (debian fakeroot daemon) to work properly. > > WITHOUT this patch: > > $ faked-sysv --foreground --debug > usi

Re: [Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2013-01-02 Thread Laurent Vivier
Le mercredi 02 janvier 2013 à 01:16 +, Peter Maydell a écrit : > On 20 December 2012 20:56, Laurent Vivier wrote: > > When qemu-linux-user is used in a linux container or chroot, > > if it needs to load binaries with SUID/SGID bits, it needs to > > have root rights to

[Qemu-devel] [PATCH][v2] linux-user: correct semctl() and shmctl()

2013-01-02 Thread Laurent Vivier
01 -- Message Queues keymsqid owner perms used-bytes messages 0x1c44ac45 458752 laurent60000 0x1c44ac46 491521 laurent60000 Signed-off-by: Laurent Vivier --- [v2] move lock_user_struct() in do_semctl()

Re: [Qemu-devel] [PATCH 1/3] scripts: extract ELF magics from qemu-binfmt-conf.sh

2013-01-24 Thread Laurent Vivier
Le jeudi 24 janvier 2013 à 19:07 +0100, Alexander Graf a écrit : > On 20.01.2013, at 00:20, Laurent Vivier wrote: > > > Signed-off-by: Laurent Vivier [...] > > index 0da2618..6235637 > > --- a/scripts/qemu-binfmt-conf.sh > > +++ b/scripts/qemu-binfmt-conf.sh >

Re: [Qemu-devel] [PATCH 3/3] scripts: A script to create linux container using qemu-linux-user.

2013-01-24 Thread Laurent Vivier
Le jeudi 24 janvier 2013 à 19:05 +0100, Alexander Graf a écrit : > On 20.01.2013, at 00:21, Laurent Vivier wrote: [...] > > +create_root() { > > + # sanity check > > + > > + if [ $(readlink -f ${CONTAINER_PATH}/) = "/" ] > > + then > > +

Re: [Qemu-devel] [PATCH] linux-user: convert /proc/net/route when endianess differs

2013-01-26 Thread Laurent Vivier
Le mercredi 02 janvier 2013 à 00:08 +0100, Laurent Vivier a écrit : > Ping ! ping > Le jeudi 20 décembre 2012 à 21:53 +0100, Laurent Vivier a écrit : > > This patch allows to have IP addresses in correct order > > in the case of "netstat -nr" when the endianess of th

Re: [Qemu-devel] [PATCH] linux-user: correctly align types in thunking code

2013-01-26 Thread Laurent Vivier
Le mercredi 02 janvier 2013 à 00:08 +0100, Laurent Vivier a écrit : > Ping ! ping > Le jeudi 20 décembre 2012 à 21:55 +0100, Laurent Vivier a écrit : > > This is a follow up > > of patch: > > > > commit c2e3dee6e03527baf8698698cce76b1a3174969a >

Re: [Qemu-devel] [PATCH][v3] linux-user: correct semctl() and shmctl()

2013-01-26 Thread Laurent Vivier
Ping Le lundi 21 janvier 2013 à 07:25 +0100, Laurent Vivier a écrit : > The parameter "union semun" of semctl() is not a value > but a pointer to the value. > > Moreover, all fields of target_su must be swapped (if needed). > > The third argument of shmctl is a poin

Re: [Qemu-devel] [PATCH] linux-user: correct msgrcv()

2013-01-26 Thread Laurent Vivier
Ping Le dimanche 20 janvier 2013 à 00:29 +0100, Laurent Vivier a écrit : > Le mercredi 02 janvier 2013 à 00:03 +, Peter Maydell a écrit : > > On 20 December 2012 21:00, Laurent Vivier wrote: > > > All parameters must be swapped before the call of do_msgrcv(). > > >

Re: [Qemu-devel] [PATCH] linux-user: correct print_timeval() swap tv_sec and tv_usec

2013-01-26 Thread Laurent Vivier
ping Le lundi 31 décembre 2012 à 20:45 +0100, Laurent Vivier a écrit : > From: Laurent Vivier > > Signed-off-by: Laurent Vivier > --- > linux-user/strace.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/strace.c b/linux-user/

Re: [Qemu-devel] [PATCH][v2] linux-user: correct setsockopt()

2013-01-26 Thread Laurent Vivier
Le dimanche 20 janvier 2013 à 00:32 +0100, Laurent Vivier a écrit : > ping ? ping > Le mardi 01 janvier 2013 à 19:24 +0100, Laurent Vivier a écrit : > > From: Laurent Vivier > > > > SO_SNDTIMEO and SO_RCVTIMEO take a struct timeval, not an int > >

Re: [Qemu-devel] [PATCH][v2] linux-user: correct reboot()

2013-01-26 Thread Laurent Vivier
ping Le dimanche 20 janvier 2013 à 00:26 +0100, Laurent Vivier a écrit : > Le lundi 07 janvier 2013 à 21:46 +, Peter Maydell a écrit : > > On 7 January 2013 21:40, Laurent Vivier wrote: > > > According to man reboot(2), the 4th argument is only used with > > > LI

Re: [Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2013-01-26 Thread Laurent Vivier
In fact, this patch is useless as binfmt_mist provides a flag to manage credentials and security token. A new patch follows... Regards, Laurent Le jeudi 20 décembre 2012 à 21:56 +0100, Laurent Vivier a écrit : > When qemu-linux-user is used in a linux container or chroot, > if it needs t

[Qemu-devel] [PATCH] linux-user: add support of binfmt_misc 'O' flag

2013-01-26 Thread Laurent Vivier
opens the file for reading and pass the file descriptor to the interpreter. References: linux/Documentation/binfmt_misc.txt ['O' and 'C' description] linux/fs/binfmt_misc.c linux/fs/binfmt_elf.c [ AT_EXECFD usage ] Signed-off-by: Laurent Vivier --- linux-user/linuxloa

Re: [Qemu-devel] [PATCH][v2] linux-user: correct setsockopt()

2013-01-30 Thread Laurent Vivier
Le 30 janvier 2013 à 11:42, Peter Maydell a écrit : > On 30 January 2013 08:45, Riku Voipio wrote: > > On Sat, Jan 26, 2013 at 12:24:56PM +0100, Laurent Vivier wrote: > >> Le dimanche 20 janvier 2013 à 00:32 +0100, Laurent Vivier a écrit : > >> > ping ? > &g

[Qemu-devel] [PULL 0/4] generic linux-user patches

2013-01-30 Thread Laurent Vivier
repository at: https://git.gitorious.org/qemu-m68k/qemu-m68k.git for-linux-user for you to fetch changes up to c07ecc6866f8c5eb2e0b23ba20214000310355e0: linux-user: correct reboot() (2013-01-30 12:13:21 +0100) Laurent Vivier (4): linux

[Qemu-devel] [PATCH][v4] linux-user: correct semctl() and shmctl()

2013-01-31 Thread Laurent Vivier
01 -- Message Queues keymsqid owner perms used-bytes messages 0x1c44ac45 458752 laurent60000 0x1c44ac46 491521 laurent60000 Signed-off-by: Laurent Vivier --- v2: move lock_user_struct() in do_semctl() v3:

Re: [Qemu-devel] [PATCH][v4] linux-user: correct semctl() and shmctl()

2013-01-31 Thread Laurent Vivier
Sorry, this one is wrong, I missed some returns... Regards, LAurent Le jeudi 31 janvier 2013 à 20:36 +0100, Laurent Vivier a écrit : > The parameter "union semun" of semctl() is not a value > but a pointer to the value. > > Moreover, all fields of target_su must be swapped

[Qemu-devel] [PATCH][v5] linux-user: correct semctl() and shmctl()

2013-01-31 Thread Laurent Vivier
01 -- Message Queues keymsqid owner perms used-bytes messages 0x1c44ac45 458752 laurent60000 0x1c44ac46 491521 laurent60000 Signed-off-by: Laurent Vivier --- v2: move lock_user_struct() in do_semctl() v3:

Re: [Qemu-devel] [PATCH][v5] linux-user: correct semctl() and shmctl()

2013-02-04 Thread Laurent Vivier
Le lundi 04 février 2013 à 15:16 +, Peter Maydell a écrit : > On 31 January 2013 19:50, Laurent Vivier wrote: > > The parameter "union semun" of semctl() is not a value > > but a pointer to the value. > > Hi. For your next patch could you make sure you send it

[Qemu-devel] [PATCH 2/6] linux-user: Add setsockopt(SO_ATTACH_FILTER)

2013-08-29 Thread Laurent Vivier
This is needed to be able to run dhclient. Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 44 linux-user/syscall_defs.h | 12 2 files changed, 56 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c

[Qemu-devel] [PATCH 0/6] linux-user: Misc patches for linux container compatibility

2013-08-29 Thread Laurent Vivier
I bring with me this serie of patches for some months now. They allow to boot and use a linux-user mode qemu in a linux container. Some of them have been already sent to the mailing list with no result. Please review, comments are welcome, and apply. Laurent Vivier (6): linux-user: convert

[Qemu-devel] [PATCH 1/6] linux-user: convert /proc/net/route when endianess differs

2013-08-29 Thread Laurent Vivier
Metric Mask MTU Window IRTT eth00a00030100030 0 0 0 0 0 eth00a00030000010 0 0 ff000 0 0 Signed-off-by: Laurent Vivier --- linux-user/sysc

[Qemu-devel] [PATCH 4/6] linux-user: add some IPV6 commands in setsockop()

2013-08-29 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 20 1 file changed, 20 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9acc4f5..b32bff0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1315,6 +1315,26 @@ static abi_long

[Qemu-devel] [PATCH 3/6] linux-user: allow use of TIOCGSID

2013-08-29 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/ioctls.h | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 439c2a9..7381012 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -20,6 +20,7 @@ IOCTL(TIOCSCTTY, 0, TYPE_INT) IOCTL

[Qemu-devel] [PATCH 6/6] scripts: create a template to use with lxc-create

2013-08-29 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- scripts/lxc-cross-debian | 353 +++ 1 file changed, 353 insertions(+) create mode 100755 scripts/lxc-cross-debian diff --git a/scripts/lxc-cross-debian b/scripts/lxc-cross-debian new file mode 100755 index 000

[Qemu-devel] [PATCH 5/6] linux-user: add support of binfmt_misc 'O' flag

2013-08-29 Thread Laurent Vivier
opens the file for reading and pass the file descriptor to the interpreter. References: linux/Documentation/binfmt_misc.txt ['O' and 'C' description] linux/fs/binfmt_misc.c linux/fs/binfmt_elf.c [ AT_EXECFD usage ] Signed-off-by: Laurent Vivier --- linux-user/linu

Re: [Qemu-devel] [PULL 00/24] Linux-user updates

2014-08-18 Thread Laurent Vivier
> Le 18 août 2014 à 14:45, Peter Maydell a écrit : > > > On 18 August 2014 13:38, Joakim Tjernlund > wrote: > > Peter Maydell wrote on 2014/08/18 12:58:48: > >> Well, binfmt-misc works fine for me as it is and presumably > >> for most people or we'd have had more complaints. So > >> breaking al

Re: [Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Laurent Vivier
Hi, as in the kernel timer_t is an "int" (as said PMM), you should cast to "int" to remove garbage on 64bit hosts and check sign ... Regards, Laurent > Le 22 août 2014 à 13:56, Alexander Graf a écrit : > > > We check whether the passed in timer id is negative on all calls > that involve g_posix

Re: [Qemu-devel] [PATCH v2] linux-user: Simplify timerid checks on g_posix_timers range

2014-08-22 Thread Laurent Vivier
> Le 22 août 2014 à 14:29, Alexander Graf a écrit : > > > > > On 22.08.14 14:25, Peter Maydell wrote: > > On 22 August 2014 13:12, Alexander Graf wrote: > >> In Linux, the timer id is a "key" into a hash table that the kernel > >> searches to find its timer. In QEMU it's an offset into an array.

Re: [Qemu-devel] linux-user: enabling binfmt P flag

2014-08-25 Thread Laurent Vivier
> Le 25 août 2014 à 14:46, Alexander Graf a écrit : > > > > > On 25.08.14 14:42, Riku Voipio wrote: > > On Mon, Aug 25, 2014 at 11:14:58AM +0200, Alexander Graf wrote: > >> > >> > >> On 25.08.14 11:09, Riku Voipio wrote: > >>> Hi, > >>> > >>> After weekend, I think the solution to using the P fla

[Qemu-devel] [PATCH 4/4] linux-user,arm: display default cpu

2012-01-22 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- target-arm/helper.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 00458fc..7be315f 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -438,7 +438,12 @@ void arm_cpu_list

[Qemu-devel] [PATCH 0/4] linux-user: A serie of patches to set default CPU

2012-01-22 Thread Laurent Vivier
This serie of patches has already been sent, more or less, several time, last time in july 2011. For chrooted environment, it allows to define the default cpu model as we can't use '-cpu' argument. For instance: ./configure --target-list=m68k-linux-user,arm-linux-user \ --m6

[Qemu-devel] [PATCH 2/4] linux-user: specify the cpu model during configure

2012-01-22 Thread Laurent Vivier
From: Laurent Vivier This patch allows to set the default cpu model for a given architecture, for instance: ./configure --target-list=m68k-linux-user,arm-linux-user \ --m68k-default-cpu=m68040 --arm-default-cpu=sa1100 Signed-off-by: Laurent Vivier --- configure |9

[Qemu-devel] [PATCH 3/4] linux-user,m68k: display default cpu

2012-01-22 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- target-m68k/helper.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 674c8e6..ede5180 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -57,6

[Qemu-devel] [PATCH 1/4] linux-user: define default cpu model in configure instead of linux-user/main.c

2012-01-22 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- configure | 14 ++ linux-user/main.c | 34 +- 2 files changed, 15 insertions(+), 33 deletions(-) diff --git a/configure b/configure index 467e87b..c251df2 100755 --- a/configure

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Laurent Vivier
Le samedi 17 mars 2012 à 09:53 +0100, Jan Kiszka a écrit : > On 2012-03-16 03:43, Wei Yang wrote: > > All > > > > I like qemu very much and know it could debug the kernel. > > > > I tried what I searched on web but couldn't stop at the break point. > > Below is what I did. > > > > 1. Both host a

[Qemu-devel] [PATCH 0/4] Set of patches for chrooted environment

2011-07-28 Thread Laurent Vivier
This set of patches helps to use qemu-linux-user in a chrooted environment. It mostly allows to define the default cpu model as we can't use '-cpu' argument. The last one defines enviromnent variables to be able to use log file and gdb server ('-d' and '-g' arguments). NOTE: I saw some comment

[Qemu-devel] [PATCH 2/4] linux-user: specify the cpu model during configure

2011-07-28 Thread Laurent Vivier
This patch allows to set the default cpu model for a given architecture, for instance: configure --target-list=m68k-linux-user --m68k-default-cpu=m68040 Signed-off-by: Laurent Vivier --- configure |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/configure b

[Qemu-devel] [PATCH 3/4] linux-user,m68k: display default cpu

2011-07-28 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- target-m68k/helper.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index a936fe7..f5d33cd 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -57,6 +57,11 @@ void

[Qemu-devel] [PATCH 4/4] linux-user: define new environment variables

2011-07-28 Thread Laurent Vivier
QEMU_GDB=port allows to define gdb server port to wait on. QEMU_DEBUG=options allows to activate log file (like -d options) Signed-off-by: Laurent Vivier --- linux-user/main.c | 11 --- qemu-doc.texi |4 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a

[Qemu-devel] [PATCH 1/4] linux-user: define default cpu model in configure instead of linux-user/main.c

2011-07-28 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- configure | 15 +++ linux-user/main.c | 34 +- 2 files changed, 16 insertions(+), 33 deletions(-) diff --git a/configure b/configure index fb8819b..c74a5f9 100755 --- a/configure +++ b/configure @@ -3075,6

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
; > > > Alexander Paramonov (1): > >linux-user: Signals processing is not thread-safe. > > > > Andreas Schwab (3): > >m68k: add cas > >m68k: define fcntl constants > >m68k: add DBcc instruction. > > > > Laurent Vivier (106):

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
  Le 18 août 2011 à 13:12, "François Revol" a écrit : > Le -10/01/-28163 20:59, Laurent Vivier a écrit : > > Le mercredi 17 août 2011 à 17:35 -0500, Anthony Liguori a écrit : > >> On 08/17/2011 03:46 PM, Bryce Lanham wrote: > >>> These patches grea

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
Le jeudi 18 août 2011 à 20:42 +0100, Natalia Portillo a écrit : > Hi Laurent, Hi Natalia, > El 18/08/2011, a las 15:02, Laurent Vivier escribió: > > > > > > > > > Le 18 août 2011 à 13:12, "François Revol" a écrit : > > > > > Le

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-18 Thread Laurent Vivier
Le jeudi 18 août 2011 à 21:13 +0100, Natalia Portillo a écrit : > Hi Laurent, > > El 18/08/2011, a las 20:57, Laurent Vivier escribió: > > > Le jeudi 18 août 2011 à 20:42 +0100, Natalia Portillo a écrit : > >> Hi Laurent, > > > > Hi Natalia, > > &g

Re: [Qemu-devel] [PATCH 0/8] *** SUBJECT HERE ***

2011-08-19 Thread Laurent Vivier
Bryce,   please, run scripts/checkpatch.pl before submitting them to check the style. Then, IMHO, you can put all next-cube stuff in one patch (hw/next-* + Makefile.target), then make one patch by m68k feature/instruction added or m68k default corrected.   And remember, to be able to bisect, each

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-19 Thread Laurent Vivier
  Le 19 août 2011 à 17:52, Natalia Portillo a écrit : > > El 19/08/2011, a las 09:55, François Revol escribió: [snip] > > Release early, release often :p > > +1Ok, Ok, I think all m68k core can be submitted except some bitfield > operations and fpu instructions.   Just need to know how Anthon

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-20 Thread Laurent Vivier
Le samedi 20 août 2011 à 15:57 -0500, Rob Landley a écrit : > On 08/18/2011 06:12 AM, François Revol wrote: > > Le -10/01/-28163 20:59, Laurent Vivier a écrit : > >> Le mercredi 17 août 2011 à 17:35 -0500, Anthony Liguori a écrit : > >>> On 08/17/2011 03:46 PM, Br

Re: [Qemu-devel] [RFC][PATCH 000/111] QEMU m68k core additions

2011-08-21 Thread Laurent Vivier
Le samedi 20 août 2011 à 18:42 -0500, Rob Landley a écrit : > On 08/20/2011 06:17 PM, Natalia Portillo wrote: > >> or ancient macintosh support > > > > Most of the hardware (but a few required ones like SWIM) is already > > in QEMU, you need to glue everything, make Toolbox be VERY happy > > about

Re: [Qemu-devel] Poking at m68k gitorious branch.

2012-04-19 Thread Laurent Vivier
Hi Rob, you need to do a fresh clone because I rebase the branch frequently on the qemu/master instead of merging it. It is easier to manage for me. BTW, qemu-system-m68k is not working currently. I'm working on it on the branch q800 to emulate a macintosh quadra 800. I'm able to boot until the f

Re: [Qemu-devel] [PATCH v2 0/4] QOM'ify Motorola 68k CPU

2012-04-21 Thread Laurent Vivier
f you have any fixes to > upstream yourself, obviously). I'm sorry, I can't test it with my branch: my branch is based on 1.0.1 and when I rebase it something else is broken, so I can't test... and I don't have any time to do more. Anyway, patches seem OK. Reviewe

Re: [Qemu-devel] [PATCH v2 0/4] QOM'ify Motorola 68k CPU

2012-04-21 Thread Laurent Vivier
Le dimanche 22 avril 2012 à 01:17 +0200, Laurent Vivier a écrit : > Le samedi 21 avril 2012 à 08:08 +0200, Andreas Färber a écrit : > > Am 15.04.2012 05:10, schrieb Andreas Färber: > > > Hello, > > > > > > This series splits up my m68k QOM'ification patch

[Qemu-devel] NBD broken ?

2012-03-03 Thread Laurent Vivier
Hi, since commit ae255e523, qemu with NBD hangs at startup (when it tries to access the disk): commit ae255e523c256cf0708f1c16cb946ff96340a800 Author: Paolo Bonzini Date: Thu Sep 8 14:28:59 2011 +0200 nbd: switch to asynchronous operation Signed-off-by: Paolo Bonzini Reverting

[Qemu-devel] [PATCH] ppc: move ADB stuff from ppc_mac.h to adb.h

2011-09-04 Thread Laurent Vivier
Allow to use ADB in non-ppc macintosh Signed-off-by: Laurent Vivier --- hw/adb.c |2 +- hw/adb.h | 67 + hw/cuda.c |1 + hw/ppc_mac.h | 42 - hw/ppc_newworld.c |1

Re: [Qemu-devel] [PATCH] ppc: move ADB stuff from ppc_mac.h to adb.h

2011-09-07 Thread Laurent Vivier
Hi,   Le 7 septembre 2011 à 14:05, Alexander Graf a écrit : > > On 04.09.2011, at 20:41, Laurent Vivier wrote: > > > Allow to use ADB in non-ppc macintosh > > What exactly do you need this for? Not saying I'm opposed to the change - it > looks reasonable to have

Re: [Qemu-devel] [PATCH] Add iSCSI support for QEMU

2011-09-17 Thread Laurent Vivier
Le jeudi 15 septembre 2011 à 08:06 +0200, Paolo Bonzini a écrit : > On 09/14/2011 06:36 PM, Orit Wasserman wrote: > > > I think NBD would be fine, especially with a flush command. > > I think NBD would be fine, especially with a flush command. > > If I remember correctly , there is a problem with

[Qemu-devel] [PATCH 0/4] Set of patches for chrooted environment

2011-09-18 Thread Laurent Vivier
This set of patches helps to use qemu-linux-user in a chrooted environment. It mostly allows to define the default cpu model as we can't use '-cpu' argument. The last one defines enviromnent variables to be able to use log file and gdb server ('-d' and '-g' arguments). [PATCH 1/4] linux-user:

[Qemu-devel] [PATCH 2/4] linux-user: specify the cpu model during configure

2011-09-18 Thread Laurent Vivier
From: Laurent Vivier This patch allows to set the default cpu model for a given architecture, for instance: configure --target-list=m68k-linux-user --m68k-default-cpu=m68040 Signed-off-by: Laurent Vivier --- configure |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH 3/4] linux-user,m68k: display default cpu

2011-09-18 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- target-m68k/helper.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 674c8e6..ede5180 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -57,6

[Qemu-devel] [PATCH 1/4] linux-user: define default cpu model in configure instead of linux-user/main.c

2011-09-18 Thread Laurent Vivier
From: Laurent Vivier Signed-off-by: Laurent Vivier --- configure | 14 ++ linux-user/main.c | 34 +- 2 files changed, 15 insertions(+), 33 deletions(-) diff --git a/configure b/configure index ad924c4..5e10055 100755 --- a/configure

[Qemu-devel] [PATCH 4/4] linux-user: define new environment variables

2011-09-18 Thread Laurent Vivier
From: Laurent Vivier QEMU_GDB=port allows to define gdb server port to wait on. QEMU_DEBUG=options allows to activate log file (like -d options) Signed-off-by: Laurent Vivier --- linux-user/main.c | 14 +++--- qemu-doc.texi |4 2 files changed, 15 insertions(+), 3

Re: [Qemu-devel] [PATCH resend] linux-user: Support the accept4 socketcall

2014-01-06 Thread Laurent Vivier
> Le 6 janvier 2014 à 02:57, André Hentschel a écrit : > > > From: André Hentschel > Cc: Riku Voipio > Signed-off-by: André Hentschel [...] > diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h > index cf08db5..b36f99c 100644 > --- a/linux-user/syscall_defs.h > +++ b/linux-user/

Re: [Qemu-devel] [PATCH resend] linux-user: Support the accept4 socketcall

2014-01-06 Thread Laurent Vivier
> Le 6 janvier 2014 à 10:14, Peter Maydell a écrit : > > > On 6 January 2014 08:45, Laurent Vivier wrote: > > > >> Le 6 janvier 2014 à 02:57, André Hentschel a écrit : > >> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h > >> i

Re: [Qemu-devel] [PATCH v2] linux-user: Support the accept4 socketcall

2014-01-06 Thread Laurent Vivier
> Le 6 janvier 2014 à 17:15, André Hentschel a écrit : > > > From: André Hentschel > Cc: Riku Voipio > Signed-off-by: André Hentschel > --- > See > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/net.h > for the value. > > linux-user/syscall.c | 16 +

Re: [Qemu-devel] [PATCH v3] linux-user: Support the accept4 socketcall

2014-01-07 Thread Laurent Vivier
Le 06/01/2014 20:18, André Hentschel a écrit : From: André Hentschel Cc: Riku Voipio Signed-off-by: André Hentschel Reviewed-by: Laurent Vivier

Re: [Qemu-devel] [PATCH 29/51] linux-user: pass correct parameter to do_shmctl()

2014-02-21 Thread Laurent Vivier
> Le 21 février 2014 à 09:17, Michael Roth a écrit : > > > From: Petar Jovanovic > > Fix shmctl issue by passing correct parameter buf to do_shmctl(). > > Signed-off-by: Petar Jovanovic > Signed-off-by: Riku Voipio > (cherry picked from commit a29267846a52b4ca294ba3a962b74b67df7ce6d2) > > Sign

Re: [Qemu-devel] [PATCH] Update MAINTAINERS

2013-10-02 Thread Laurent Vivier
Le 02/10/2013 20:42, Rob Landley a écrit : On 10/02/2013 12:09:58 PM, Anthony Liguori wrote: All of Paul's emails are bouncing and he hasn't been active for some time. ... M68K -M: Paul Brook -S: Odd Fixes +S: Orphan F: target-m68k/ F: hw/m68k/ Laurent Vivier has an m68k

Re: [Qemu-devel] [PATCH 29/43] linux-user: Fix broken m68k signal handling on 64 bit hosts

2015-02-25 Thread Laurent Vivier
Hi, I think you should use abi_long instead of uint32_t. abi_long has an "aligned" attribute, and on m68k long are aligned on a short boundary. #ifdef TARGET_M68K #define ABI_INT_ALIGNMENT 2 #define ABI_LONG_ALIGNMENT 2 #define ABI_LLONG_ALIGNMENT 2 #endif typedef uint32_t abi_ulong __attr

Re: [Qemu-devel] [PATCH 29/43] linux-user: Fix broken m68k signal handling on 64 bit hosts

2015-02-25 Thread Laurent Vivier
> Le 25 février 2015 à 12:28, Peter Maydell a écrit : > > > On 25 February 2015 at 17:39, Laurent Vivier wrote: > > Hi, > > > > I think you should use abi_long instead of uint32_t. > > > > abi_long has an "aligned" attribute,

  1   2   3   4   5   6   7   8   9   10   >