Re: [Qemu-devel] [PATCH] mips_malta: support up to 2GiB RAM

2013-08-27 Thread Paul Burton
Thanks Richard. To be clear, is that a "this would be a nice future improvement" or a "NAK until this is done"? Paul On Mon 26 Aug 2013 19:01:51 BST, Richard Henderson wrote: On 08/23/2013 08:09 AM, Yongbok Kim wrote: +/* alias for pre IO hole access */ +memory_region_init_alias(ram_l

Re: [Qemu-devel] [PATCH] mips_malta: support up to 2GiB RAM

2013-08-27 Thread Paul Burton
Great, thanks for looking it over & for amusing me with your original clear as mud answer :) Paul On Tue 27 Aug 2013 15:55:50 BST, Richard Henderson wrote: On 08/27/2013 01:45 AM, Paul Burton wrote: Thanks Richard. To be clear, is that a "this would be a nice future improvement&q

[Qemu-devel] [PATCH 02/16] linux-user: support SO_ACCEPTCONN getsockopt option

2014-06-15 Thread Paul Burton
Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3921cff..e6afd30 100644 --- a/linux-user/sysca

[Qemu-devel] [PATCH 01/16] linux-user: translate the result of getsockopt SO_TYPE

2014-06-15 Thread Paul Burton
tion mirroring the existing target_to_host_sock_type, and call it to translate the value provided by getsockopt when called for the SO_TYPE option. Signed-off-by: Paul Burton --- linux-user/syscall.c | 33 + 1 file changed, 33 insertions(+) diff --git a/linux-user/sysca

[Qemu-devel] [PATCH 00/16] linux-user fixes & improvements

2014-06-15 Thread Paul Burton
This series fixes a number of bugs in QEMUs linux-user support, some specific to targetting the MIPS architecture but mostly generic. It also adds support for some previously unsupported syscalls & {g,s}etsockopt options. Paul Burton (16): linux-user: translate the result of getsockopt SO_

[Qemu-devel] [PATCH 05/16] linux-user: allow NULL arguments to mount

2014-06-15 Thread Paul Burton
cked. Since the patch already touched most lines of the TARGET_NR_mount case, it fixes the indentation for good measure. Signed-off-by: Paul Burton --- linux-user/syscall.c | 68 +++- 1 file changed, 46 insertions(+), 22 deletions(-) diff --git a/l

[Qemu-devel] [PATCH 08/16] linux-user: respect timezone for settimeofday

2014-06-15 Thread Paul Burton
ument is described by the settimeofday man page as obsolete, it is used by systemd as of version 213. Signed-off-by: Paul Burton --- linux-user/syscall.c | 27 ++- linux-user/syscall_defs.h | 5 + 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/li

[Qemu-devel] [PATCH 07/16] linux-user: fix struct target_epoll_event layout for MIPS

2014-06-15 Thread Paul Burton
MIPS requires the pad field to 64b-align the data field just as ARM does. Signed-off-by: Paul Burton --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 69c3982..9fcb723 100644 --- a/linux

[Qemu-devel] [PATCH 12/16] linux-user: support {name_to, open_by}_handle_at syscalls

2014-06-15 Thread Paul Burton
Implement support for the name_to_handle_at and open_by_handle_at syscalls, allowing their use by the target program. Signed-off-by: Paul Burton --- linux-user/strace.c| 30 ++ linux-user/strace.list | 6 ++ linux-user/syscall.c | 50

[Qemu-devel] [PATCH 13/16] linux-user: support the setns syscall

2014-06-15 Thread Paul Burton
Add support for the setns syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- linux-user/strace.list | 3 +++ linux-user/syscall.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/linux-user/strace.list b/linux-user/strace.list index 147f579..d5b8033 100644

[Qemu-devel] [PATCH 11/16] linux-user: support ioprio_{get, set} syscalls

2014-06-15 Thread Paul Burton
Add support for the ioprio_get & ioprio_set syscalls, allowing their use by target programs. Signed-off-by: Paul Burton --- linux-user/syscall.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0830205..c7f176a 10

[Qemu-devel] [PATCH 15/16] linux-user: support the KDSIGACCEPT ioctl

2014-06-15 Thread Paul Burton
Add a definition of the KDSIGACCEPT ioctl & allow its use by target programs. Signed-off-by: Paul Burton --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 309fb21..cd21e64 10

[Qemu-devel] [PATCH 14/16] linux-user: support the unshare syscall

2014-06-15 Thread Paul Burton
Add support for the unshare syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- linux-user/syscall.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 208c6c4..5412b1e 100644 --- a/linux-user/syscall.c +++ b

[Qemu-devel] [PATCH 16/16] linux-user: support the SIOCGIFINDEX ioctl

2014-06-15 Thread Paul Burton
Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index cd21e64..20551a8

[Qemu-devel] [PATCH 03/16] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options

2014-06-15 Thread Paul Burton
Translate the SO_SNDBUFFORCE & SO_RCVBUFFORCE options to setsockopt to the host values & perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton --- linux-user/syscall.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/li

[Qemu-devel] [PATCH 04/16] linux-user: support SO_PASSSEC setsockopt option

2014-06-15 Thread Paul Burton
Translate the SO_PASSSEC option to setsockopt to the host value & perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton --- linux-user/socket.h | 2 ++ linux-user/syscall.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/linux-

[Qemu-devel] [PATCH 10/16] linux-user: support timerfd_{create, gettime, settime} syscalls

2014-06-15 Thread Paul Burton
Adds support for the timerfd_create, timerfd_gettime & timerfd_settime syscalls, allowing use of timerfds by target programs. Signed-off-by: Paul Burton --- linux-user/strace.list | 9 + linux-user/syscall.c | 44 2 files changed

[Qemu-devel] [PATCH 09/16] linux-user: allow NULL tv argument for settimeofday

2014-06-15 Thread Paul Burton
The tv argument to the settimeofday syscall is allowed to be NULL, if the program only wishes to provide the timezone. QEMU previously returned -EFAULT when tv was NULL. Instead, execute the syscall & provide NULL to the kernel as the target program expected. Signed-off-by: Paul Bu

[Qemu-devel] [PATCH 06/16] linux-user: support strace of epoll_create1

2014-06-15 Thread Paul Burton
Add the epoll_create1 syscall to strace.list in order to display that syscall when it occurs, rather than a message about the syscall being unknown despite QEMU already implementing support for it. Signed-off-by: Paul Burton --- linux-user/strace.list | 3 +++ 1 file changed, 3 insertions

Re: [Qemu-devel] [PATCH 01/16] linux-user: translate the result of getsockopt SO_TYPE

2014-06-21 Thread Paul Burton
On Sat, Jun 21, 2014 at 12:39:12PM +0300, Riku Voipio wrote: > > @@ -1526,6 +1555,7 @@ static abi_long do_getsockopt(int sockfd, int level, > > int optname, > > abi_long ret; > > int len, val; > > socklen_t lv; > > +int (*translate_result)(int val) = NULL; > > > > switch(

[Qemu-devel] [PATCH v2 00/16] linux-user fixes & improvements

2014-06-21 Thread Paul Burton
From: Paul Burton This series fixes a number of bugs in QEMUs linux-user support, some specific to targetting the MIPS architecture but mostly generic. It also adds support for some previously unsupported syscalls & {g,s}etsockopt options. Paul Burton (16): linux-user: translate the resul

[Qemu-devel] [PATCH v2 03/16] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options

2014-06-21 Thread Paul Burton
Translate the SO_SNDBUFFORCE & SO_RCVBUFFORCE options to setsockopt to the host values & perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 6 ++ 1 file changed, 6 in

[Qemu-devel] [PATCH v2 02/16] linux-user: support SO_ACCEPTCONN getsockopt option

2014-06-21 Thread Paul Burton
Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 30610e7..dba

[Qemu-devel] [PATCH v2 06/16] linux-user: support strace of epoll_create1

2014-06-21 Thread Paul Burton
Add the epoll_create1 syscall to strace.list in order to display that syscall when it occurs, rather than a message about the syscall being unknown despite QEMU already implementing support for it. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/strace.list | 3 +++ 1

[Qemu-devel] [PATCH v2 14/16] linux-user: support the unshare syscall

2014-06-21 Thread Paul Burton
Add support for the unshare syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0bbdf61..936064c 100644 --- a

[Qemu-devel] [PATCH v2 01/16] linux-user: translate the result of getsockopt SO_TYPE

2014-06-21 Thread Paul Burton
tion mirroring the existing target_to_host_sock_type, and call it to translate the value provided by getsockopt when called for the SO_TYPE option. Signed-off-by: Paul Burton --- Changes in v2: - Remove indirection via a function pointer, and just call host_to_target_sock_type directly. --- linux-

[Qemu-devel] [PATCH v2 07/16] linux-user: fix struct target_epoll_event layout for MIPS

2014-06-21 Thread Paul Burton
MIPS requires the pad field to 64b-align the data field just as ARM does. Signed-off-by: Paul Burton --- Changes in v2: - Apply the same padding for the mips64 target. --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b

[Qemu-devel] [PATCH v2 11/16] linux-user: support ioprio_{get, set} syscalls

2014-06-21 Thread Paul Burton
Add support for the ioprio_get & ioprio_set syscalls, allowing their use by target programs. Signed-off-by: Paul Burton --- Changes in v2: - Declare the host syscalls conditionally upon whether both host & target define their numbers, to avoid compile time warnings/errors a

[Qemu-devel] [PATCH v2 12/16] linux-user: support {name_to, open_by}_handle_at syscalls

2014-06-21 Thread Paul Burton
Implement support for the name_to_handle_at and open_by_handle_at syscalls, allowing their use by the target program. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/strace.c| 30 ++ linux-user/strace.list | 6 ++ linux-user/syscall.c

[Qemu-devel] [PATCH v2 08/16] linux-user: respect timezone for settimeofday

2014-06-21 Thread Paul Burton
ument is described by the settimeofday man page as obsolete, it is used by systemd as of version 213. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 27 ++- linux-user/syscall_defs.h | 5 + 2 files changed, 31 insertions(+), 1

[Qemu-devel] [PATCH v2 04/16] linux-user: support SO_PASSSEC setsockopt option

2014-06-21 Thread Paul Burton
Translate the SO_PASSSEC option to setsockopt to the host value & perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton --- Changes in v2: - Fix the value of TARGET_SO_PASSSEC for the sparc target. --- linux-user/socket.h | 5 + l

[Qemu-devel] [PATCH v2 05/16] linux-user: allow NULL arguments to mount

2014-06-21 Thread Paul Burton
cked. Since the patch already touched most lines of the TARGET_NR_mount case, it fixes the indentation for good measure. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 68 +++- 1 file changed, 46 insertions(+)

[Qemu-devel] [PATCH v2 15/16] linux-user: support the KDSIGACCEPT ioctl

2014-06-21 Thread Paul Burton
Add a definition of the KDSIGACCEPT ioctl & allow its use by target programs. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioct

[Qemu-devel] [PATCH v2 09/16] linux-user: allow NULL tv argument for settimeofday

2014-06-21 Thread Paul Burton
The tv argument to the settimeofday syscall is allowed to be NULL, if the program only wishes to provide the timezone. QEMU previously returned -EFAULT when tv was NULL. Instead, execute the syscall & provide NULL to the kernel as the target program expected. Signed-off-by: Paul Bu

[Qemu-devel] [PATCH v2 16/16] linux-user: support the SIOCGIFINDEX ioctl

2014-06-21 Thread Paul Burton
Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h

[Qemu-devel] [PATCH v2 10/16] linux-user: support timerfd_{create, gettime, settime} syscalls

2014-06-21 Thread Paul Burton
Adds support for the timerfd_create, timerfd_gettime & timerfd_settime syscalls, allowing use of timerfds by target programs. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/strace.list | 9 + linux-user/syscall.c

[Qemu-devel] [PATCH v2 13/16] linux-user: support the setns syscall

2014-06-21 Thread Paul Burton
Add support for the setns syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/strace.list | 3 +++ linux-user/syscall.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/linux-user/strace.list b/linux-user/strace.list

Re: [Qemu-devel] [PATCH 04/16] linux-user: support SO_PASSSEC setsockopt option

2014-06-21 Thread Paul Burton
On Sat, Jun 21, 2014 at 01:59:33PM +0300, Riku Voipio wrote: > On Sun, Jun 15, 2014 at 05:18:21PM +0100, Paul Burton wrote: > > Translate the SO_PASSSEC option to setsockopt to the host value & > > perform the syscall as expected, allowing use of the option by target > &g

Re: [Qemu-devel] [PATCH 07/16] linux-user: fix struct target_epoll_event layout for MIPS

2014-06-21 Thread Paul Burton
On Sat, Jun 21, 2014 at 02:02:55PM +0300, Riku Voipio wrote: > On Sun, Jun 15, 2014 at 05:18:24PM +0100, Paul Burton wrote: > > MIPS requires the pad field to 64b-align the data field just as ARM > > does. > > Is this true for the 64bit mips also? It appears so, good catch

Re: [Qemu-devel] [PATCH v2 15/16] linux-user: support the KDSIGACCEPT ioctl

2014-06-22 Thread Paul Burton
On Sun, Jun 22, 2014 at 12:13:27AM +0100, Peter Maydell wrote: > > diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h > > index 309fb21..cd21e64 100644 > > --- a/linux-user/ioctls.h > > +++ b/linux-user/ioctls.h > > @@ -64,6 +64,7 @@ > > IOCTL(KDSKBLED, 0, TYPE_INT) > > IOCTL(KDGETL

Re: [Qemu-devel] [PATCH v2 08/16] linux-user: respect timezone for settimeofday

2014-06-22 Thread Paul Burton
On Sun, Jun 22, 2014 at 12:18:02AM +0100, Peter Maydell wrote: > > +if (!lock_user_struct(VERIFY_READ, target_tz, target_tz_addr, 1)) > > +return -TARGET_EFAULT; > > Coding style mandates braces even on single-line if()s; checkpatch.pl > will catch this usually. I copied that style fr

[Qemu-devel] [PATCH v3 04/16] linux-user: support SO_PASSSEC setsockopt option

2014-06-22 Thread Paul Burton
Translate the SO_PASSSEC option to setsockopt to the host value & perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - Fix the value of TARGET_SO_PASSSEC for the sparc target. --- linux-

[Qemu-devel] [PATCH v3 02/16] linux-user: support SO_ACCEPTCONN getsockopt option

2014-06-22 Thread Paul Burton
Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - None. --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/sysca

[Qemu-devel] [PATCH v3 01/16] linux-user: translate the result of getsockopt SO_TYPE

2014-06-22 Thread Paul Burton
tion mirroring the existing target_to_host_sock_type, and call it to translate the value provided by getsockopt when called for the SO_TYPE option. Signed-off-by: Paul Burton --- Changes in v3: - Fix coding style, checkpatch clean. Changes in v2: - Remove indirection via a function pointer, and

[Qemu-devel] [PATCH v3 09/16] linux-user: allow NULL tv argument for settimeofday

2014-06-22 Thread Paul Burton
The tv argument to the settimeofday syscall is allowed to be NULL, if the program only wishes to provide the timezone. QEMU previously returned -EFAULT when tv was NULL. Instead, execute the syscall & provide NULL to the kernel as the target program expected. Signed-off-by: Paul Bu

[Qemu-devel] [PATCH v3 03/16] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options

2014-06-22 Thread Paul Burton
Translate the SO_SNDBUFFORCE & SO_RCVBUFFORCE options to setsockopt to the host values & perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton --- Changes in v3: - Fix coding style, checkpatch clean. Changes in v2: - None. --

[Qemu-devel] [PATCH v3 00/16] linux-user fixes & improvements

2014-06-22 Thread Paul Burton
This series fixes a number of bugs in QEMUs linux-user support, some specific to targetting the MIPS architecture but mostly generic. It also adds support for some previously unsupported syscalls & {g,s}etsockopt options. Paul Burton (16): linux-user: translate the result of getsockopt SO_

[Qemu-devel] [PATCH v3 11/16] linux-user: support ioprio_{get, set} syscalls

2014-06-22 Thread Paul Burton
Add support for the ioprio_get & ioprio_set syscalls, allowing their use by target programs. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - Declare the host syscalls conditionally upon whether both host & target define their numbers, to avoid comp

[Qemu-devel] [PATCH v3 16/16] linux-user: support the SIOCGIFINDEX ioctl

2014-06-22 Thread Paul Burton
Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - None. --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user

[Qemu-devel] [PATCH v3 05/16] linux-user: allow NULL arguments to mount

2014-06-22 Thread Paul Burton
cked. Since the patch already touched most lines of the TARGET_NR_mount case, it fixes the indentation & coding style for good measure. Signed-off-by: Paul Burton --- Changes in v3: - Fix coding style, checkpatch clean. Changes in v2: - None. --- linux-user/syscal

[Qemu-devel] [PATCH v3 13/16] linux-user: support the setns syscall

2014-06-22 Thread Paul Burton
Add support for the setns syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - None. --- linux-user/strace.list | 3 +++ linux-user/syscall.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/linux-user/strace.list

[Qemu-devel] [PATCH v3 06/16] linux-user: support strace of epoll_create1

2014-06-22 Thread Paul Burton
Add the epoll_create1 syscall to strace.list in order to display that syscall when it occurs, rather than a message about the syscall being unknown despite QEMU already implementing support for it. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - None. --- linux-user

[Qemu-devel] [PATCH v3 08/16] linux-user: respect timezone for settimeofday

2014-06-22 Thread Paul Burton
ument is described by the settimeofday man page as obsolete, it is used by systemd as of version 213. Signed-off-by: Paul Burton --- Changes in v3: - Fix coding style, checkpatch clean. Changes in v2: - None. --- linux-user/syscall.c | 29 - linux-user/syscal

[Qemu-devel] [PATCH v3 12/16] linux-user: support {name_to, open_by}_handle_at syscalls

2014-06-22 Thread Paul Burton
Implement support for the name_to_handle_at and open_by_handle_at syscalls, allowing their use by the target program. Signed-off-by: Paul Burton --- Changes in v3: - Fix coding style, checkpatch clean. Changes in v2: - None. --- linux-user/strace.c| 30 ++ linux

[Qemu-devel] [PATCH v3 10/16] linux-user: support timerfd_{create, gettime, settime} syscalls

2014-06-22 Thread Paul Burton
Adds support for the timerfd_create, timerfd_gettime & timerfd_settime syscalls, allowing use of timerfds by target programs. Signed-off-by: Paul Burton --- Changes in v3: - Fix coding style, checkpatch clean. Changes in v2: - None. --- linux-user/strace.list | 9 + linux-

[Qemu-devel] [PATCH v3 14/16] linux-user: support the unshare syscall

2014-06-22 Thread Paul Burton
Add support for the unshare syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - None. --- linux-user/syscall.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v3 15/16] linux-user: support the KDSIGACCEPT ioctl

2014-06-22 Thread Paul Burton
Add a definition of the KDSIGACCEPT ioctl & allow its use by target programs. Signed-off-by: Paul Burton --- Changes in v3: - Translate signal number to host value. Changes in v2: - None. --- linux-user/ioctls.h | 1 + linux-user/syscall.c | 7 +++ linux-user/syscall_de

[Qemu-devel] [PATCH v3 07/16] linux-user: fix struct target_epoll_event layout for MIPS

2014-06-22 Thread Paul Burton
MIPS requires the pad field to 64b-align the data field just as ARM does. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - Apply the same padding for the mips64 target. --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-23 Thread Paul Burton
1.20 for the MIPS target. Previously it would hang waiting on a semaphore which was not being initialised to the correct value. Signed-off-by: Paul Burton --- linux-user/syscall.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-23 Thread Paul Burton
On Mon, Jun 23, 2014 at 11:12:42PM +0100, Peter Maydell wrote: > On 23 June 2014 22:40, Paul Burton wrote: > > The ptr argument to the ipc syscall was incorrectly being used as the > > value of the argument union for the SEMCTL call. It is actually, as its > > name would

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-23 Thread Paul Burton
On Mon, Jun 23, 2014 at 11:18:25PM +0100, Paul Burton wrote: > > Also, VERIFY_READ doesn't seem right for some of the > > semctl operations which will modify the target_semun. > > > > thanks > > -- PMM > > That part I think you're right about, I&#x

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-23 Thread Paul Burton
On Mon, Jun 23, 2014 at 11:35:17PM +0100, Peter Maydell wrote: > >> Have you checked this on other architectures than MIPS? > >> I have a vague recollection that there are between-arch > >> differences regarding handling of the semctl argument... > > > > I haven't tried running code for any other t

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-23 Thread Paul Burton
On Tue, Jun 24, 2014 at 12:21:42AM +0100, Peter Maydell wrote: > On 24 June 2014 00:06, Paul Burton wrote: > > On Mon, Jun 23, 2014 at 11:35:17PM +0100, Peter Maydell wrote: > >> and so I'm dubious about a patch that's > >> trying to make a very small change t

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-23 Thread Paul Burton
On Mon, Jun 23, 2014 at 11:42:14PM +0100, Peter Maydell wrote: > On 23 June 2014 23:36, Paul Burton wrote: > > Actually no, I don't think you're right about that afterall. The > > argument union itself is never modified. I imagine if it were then it > > would be pa

Re: [Qemu-devel] [PATCH] linux-user: fix ipc(SEMCTL, ...) argument handling

2014-06-24 Thread Paul Burton
On Tue, Jun 24, 2014 at 09:19:45AM +0100, Peter Maydell wrote: > On 24 June 2014 00:53, Paul Burton wrote: > > Well I disagree with your logic, but perhaps that's primarily because of > > your claim that the semctl code is "clearly bogus" and "obviously > >

Re: [Qemu-devel] [12/16] linux-user: support {name_to, open_by}_handle_at syscalls

2014-08-26 Thread Paul Burton
On Tue, Aug 26, 2014 at 03:30:41PM +0300, Riku Voipio wrote: > Hi Paul, > > On Sun, Jun 15, 2014 at 05:18:29PM +0100, Paul Burton wrote: > > Implement support for the name_to_handle_at and open_by_handle_at > > syscalls, allowing their use by the target program. > >

[Qemu-devel] [PATCH] mips_malta: provide ememsize env variable to kernels

2015-05-25 Thread Paul Burton
g its size & location. Signed-off-by: Paul Burton Cc: Aurelien Jarno Cc: Leon Alrae --- Note that in order for Linux kernels to make use of all memory automatically when using highmem rather than EVA, the following patchset is required: http://www.linux-mips.org/archives/linux-mips/2015-05

[Qemu-devel] [PATCH v2] mips_malta: support up to 2GiB RAM

2013-09-06 Thread Paul Burton
e physical address space it is usual for the bootloader to indicate a maximum of 256MiB memory to a kernel. This allows kernels which do not support such access to boot on systems with more than 256MiB of RAM. It is also the behaviour assumed by Linux. QEMUs small generated bootloader is modified to p

Re: [Qemu-devel] [PATCH v2 0/8] MIPS Boston board support

2016-10-27 Thread Paul Burton
On Thursday, 8 September 2016 15:51:50 BST Paul Burton wrote: > This series introduces support for the MIPS Boston development board. It > begins by introducing support for moving MIPS Coherence Manager GCRs which > Boston software typically does to avoid conflicting with its flash memory

Re: [Qemu-devel] [PATCH 0/7] MIPS Boston board support

2016-09-08 Thread Paul Burton
On 08/09/16 09:57, Leon Alrae wrote: > On Fri, Aug 19, 2016 at 08:40:32PM +0100, Paul Burton wrote: >> On 19/08/16 20:25, no-re...@patchew.org wrote: >>> Hi, >>> >>> Your series failed automatic build test. Please find the testing commands >>> a

[Qemu-devel] [PATCH v2 0/8] MIPS Boston board support

2016-09-08 Thread Paul Burton
nel argument, for example: $ qemu-system-mips64el -M boston -kernel vmlinux.gz.itb -serial stdio Paul Burton (8): hw/mips_cmgcr: allow GCR base to be moved hw/mips_gictimer: provide API for retrieving frequency hw/mips_gic: Update pin state on mask changes target-mips: Provide function to test

[Qemu-devel] [PATCH v2 5/8] dtc: Update requirement to v1.4.2

2016-09-08 Thread Paul Burton
In order to obtain fdt_first_subnode & fdt_next_subnode symbols from libfdt for use by a later patch, bump the requirement for dtc to v1.4.2 & the submodule to that same version. Signed-off-by: Paul Burton --- This will rely upon the dtc v1.4.2 tag being pushed to the dtc repos

[Qemu-devel] [PATCH v2 6/8] loader: Support Flattened Image Trees (FIT images)

2016-09-08 Thread Paul Burton
typically boots kernels in the form of FIT images, and will make use of this code. Signed-off-by: Paul Burton --- hw/core/Makefile.objs | 1 + hw/core/loader-fit.c| 287 hw/core/loader.c| 3 +- include/hw/loader-fit.h | 41

[Qemu-devel] [PATCH v2 7/8] hw: xilinx-pcie: Add support for Xilinx AXI PCIe Controller

2016-09-08 Thread Paul Burton
Add support for emulating the Xilinx AXI Root Port Bridge for PCI Express as described by Xilinx' PG055 document. This is a PCIe controller that can be used with certain series of Xilinx FPGAs, and is used on the MIPS Boston board which will make use of this code. Signed-off-by: Paul B

[Qemu-devel] [PATCH v2 8/8] hw/mips: MIPS Boston board support

2016-09-08 Thread Paul Burton
will only allow use of CPUs which implement the CPS components, including the GIC, and will otherwise exit with a message. Signed-off-by: Paul Burton --- Changes in v2: - Require libfdt for mips*-softmmu builds, so that the FIT loader can be used. --- configure |

[Qemu-devel] [PATCH v2 1/8] hw/mips_cmgcr: allow GCR base to be moved

2016-09-08 Thread Paul Burton
Support moving the GCR base address & updating the CPU's CP0 CMGCRBase register appropriately. This is required if a platform needs to move its GCRs away from other memory, as the MIPS Boston development board does to avoid its flash memory. Signed-off-by: Paul Burton Reviewed-by: L

[Qemu-devel] [PATCH v2 2/8] hw/mips_gictimer: provide API for retrieving frequency

2016-09-08 Thread Paul Burton
Provide a new function mips_gictimer_get_freq() which returns the frequency at which a GIC timer will count. This will be useful for boards which perform setup based upon this frequency. Signed-off-by: Paul Burton Reviewed-by: Leon Alrae --- hw/timer/mips_gictimer.c | 5 + include

[Qemu-devel] [PATCH v2 3/8] hw/mips_gic: Update pin state on mask changes

2016-09-08 Thread Paul Burton
an already pending interrupt is unmasked. Signed-off-by: Paul Burton Reviewed-by: Leon Alrae --- hw/intc/mips_gic.c | 56 ++ 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/hw/intc/mips_gic.c b/hw/intc/mips_gic.c index 6e25773

[Qemu-devel] [PATCH v2 4/8] target-mips: Provide function to test if a CPU supports an ISA

2016-09-08 Thread Paul Burton
determine the properties of the CPU that will be used, for example whether the CPU is 64 bit or which architecture revision it implements. Signed-off-by: Paul Burton Reviewed-by: Leon Alrae --- target-mips/cpu.h | 1 + target-mips/translate.c | 10 ++ 2 files changed, 11 insertions

Re: [Qemu-devel] [PATCH v2 0/8] MIPS Boston board support

2016-09-08 Thread Paul Burton
On 08/09/16 19:58, no-re...@patchew.org wrote: > Hi, > > Your series failed automatic build test. Please find the testing commands and > their output below. If you have docker installed, you can probably reproduce > it > locally. > > Type: series > Message-id: 20160908145158.30720-1-paul.bur...@

[Qemu-devel] [PATCH] hw/mips_malta: Fix YAMON API print routine

2016-07-22 Thread Paul Burton
ntinuous stream of the letter E. Signed-off-by: Paul Burton Cc: Aurelien Jarno Cc: Leon Alrae --- hw/mips/mips_malta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 34d41ef..e90857e 100644 --- a/hw/mips/mips_malta.c +++ b

Re: [Qemu-devel] [PATCH] msi: remove return code for msi_init()

2017-06-01 Thread Paul Burton
MSI on real hardware but not in QEMU? > > SH clearly doesn't support MSI. > > The oldest MIPS board also do not support MSI, but I guess the Boston > board might support it. I am adding Paul Burton in Cc: who probably > knows about that. > > Aurelien Indeed, real Bos

[Qemu-devel] [PATCH 0/7] MIPS Boston board support

2016-08-19 Thread Paul Burton
x.gz.itb make target should be used when building a Linux kernel to run on the Boston board. Paul Burton (7): hw/mips_cmgcr: allow GCR base to be moved hw/mips_gictimer: provide API for retrieving frequency hw/mips_gic: Update pin state on mask changes target-mips: Provide function to test if a

[Qemu-devel] [PATCH 1/7] hw/mips_cmgcr: allow GCR base to be moved

2016-08-19 Thread Paul Burton
Support moving the GCR base address & updating the CPU's CP0 CMGCRBase register appropriately. This is required if a platform needs to move its GCRs away from other memory, as the MIPS Boston development board does to avoid its flash memory. Signed-off-by: Paul Burton --- hw/misc/mip

[Qemu-devel] [PATCH 3/7] hw/mips_gic: Update pin state on mask changes

2016-08-19 Thread Paul Burton
an already pending interrupt is unmasked. Signed-off-by: Paul Burton --- hw/intc/mips_gic.c | 56 ++ 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/hw/intc/mips_gic.c b/hw/intc/mips_gic.c index 6e25773..15e6e40 100644 --- a/hw

[Qemu-devel] [PATCH 4/7] target-mips: Provide function to test if a CPU supports an ISA

2016-08-19 Thread Paul Burton
determine the properties of the CPU that will be used, for example whether the CPU is 64 bit or which architecture revision it implements. Signed-off-by: Paul Burton --- target-mips/cpu.h | 1 + target-mips/translate.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/target-mips

[Qemu-devel] [PATCH 2/7] hw/mips_gictimer: provide API for retrieving frequency

2016-08-19 Thread Paul Burton
Provide a new function mips_gictimer_get_freq() which returns the frequency at which a GIC timer will count. This will be useful for boards which perform setup based upon this frequency. Signed-off-by: Paul Burton --- hw/timer/mips_gictimer.c | 5 + include/hw/timer/mips_gictimer.h

[Qemu-devel] [PATCH 5/7] loader: Support Flattened Image Trees (FIT images)

2016-08-19 Thread Paul Burton
typically boots kernels in the form of FIT images, and will make use of this code. Signed-off-by: Paul Burton --- hw/core/Makefile.objs | 1 + hw/core/loader-fit.c| 287 hw/core/loader.c| 3 +- include/hw/loader-fit.h | 41

[Qemu-devel] [PATCH 6/7] hw: xilinx-pcie: Add support for Xilinx AXI PCIe Controller

2016-08-19 Thread Paul Burton
Add support for emulating the Xilinx AXI Root Port Bridge for PCI Express as described by Xilinx' PG055 document. This is a PCIe controller that can be used with certain series of Xilinx FPGAs, and is used on the MIPS Boston board which will make use of this code. Signed-off-by: Paul B

[Qemu-devel] [PATCH 7/7] hw/mips: MIPS Boston board support

2016-08-19 Thread Paul Burton
will only allow use of CPUs which implement the CPS components, including the GIC, and will otherwise exit with a message. Signed-off-by: Paul Burton --- default-configs/mips-softmmu-common.mak | 2 + hw/mips/Makefile.objs | 1 + hw/mips/boston.c| 526 +

Re: [Qemu-devel] [PATCH 0/7] MIPS Boston board support

2016-08-19 Thread Paul Burton
On 19/08/16 20:25, no-re...@patchew.org wrote: > Hi, > > Your series failed automatic build test. Please find the testing commands and > their output below. If you have docker installed, you can probably reproduce > it > locally. > > Message-id: 20160819190903.10974-1-paul.bur...@imgtec.com > Su

[Qemu-devel] [PATCH] atomic.h: Set ATOMIC_REG_SIZE=8 for MIPS n32

2018-12-05 Thread Paul Burton
by defining ATOMIC_REG_SIZE as 8 for all MIPS64 builds, which will cover both n32 (ILP32) & n64 (LP64) ABIs in much the same was as we already do for x86_64/x32. Signed-off-by: Paul Burton --- include/qemu/atomic.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inclu

Re: [Qemu-devel] [PATCH] target/mips: Add initrd support for Boston board

2018-11-05 Thread Paul Burton
Hi Aleksandar, On Tue, Oct 23, 2018 at 03:12:14PM +0200, Aleksandar Markovic wrote: > From: Aleksandar Rikalo > > Add support for initial ramdisk loading for the Mips Boston board. > > Reviewed-by: Philippe Mathieu-Daudé > Signed-off-by: Aleksandar Rikalo > Signed-off-by: Aleksandar Markovic

Re: [Qemu-devel] [PULL v2 7/8] hw: xilinx-pcie: Add support for Xilinx AXI PCIe Controller

2018-06-06 Thread Paul Burton
Hi Peter, On Mon, Jun 04, 2018 at 11:29:47AM +0100, Peter Maydell wrote: > On 22 February 2017 at 00:21, Yongbok Kim wrote: > > From: Paul Burton > > > > Add support for emulating the Xilinx AXI Root Port Bridge for PCI > > Express as described by Xilinx'

Re: [Qemu-devel] [PATCH 0/2] mips boston/malta: don't have nomigrate RAM regions

2018-06-15 Thread Paul Burton
on migration compatibility AFAIK > > Any comment from the MIPS maintainers? > > thanks > -- PMM FWIW, this looks fine to me for both Boston & Malta: Reviewed-by: Paul Burton Thanks, Paul

[Qemu-devel] [PATCH] Update Paul Burton's email address

2017-10-20 Thread Paul Burton
From: Paul Burton Update my email address from paul.bur...@imgtec.com to paul.bur...@mips.com, since MIPS will soon no longer be a part of Imagination Technologies & as such the @imgtec.com address will soon cease to function. A mapping is added in .mailmap such that git reports the

Re: [Qemu-devel] QEMU dtc submodule

2016-09-23 Thread Paul Burton
On Friday, 23 September 2016 09:13:51 BST Jeff Cody wrote: > > Leon: Please give the git URL and branch that should be mirrored. It > > cannot be a tag since that is immutable. Instead it should be the > > dtc development/release tree that will be updated in the future. > > Yes, once I get the g

Re: [Qemu-devel] [PATCH 1/1] dtc: Update dtc / libfdt submodule to version 1.4.2

2016-09-26 Thread Paul Burton
On Monday, 26 September 2016 00:51:05 BST Jeff Cody wrote: > There are some patch series which rely on version 1.4.2 of dtc, so > update the submodule version. > > Signed-off-by: Jeff Cody > --- > dtc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dtc b/dtc > index 65c

[Qemu-devel] [PATCH 1/2] hw/net: Add support for Intel pch_gbe ethernet

2018-02-17 Thread Paul Burton
sing Linux v4.16-rc1. Signed-off-by: Paul Burton Cc: Aurelien Jarno Cc: Yongbok Kim --- hw/net/Makefile.objs | 1 + hw/net/pch_gbe.c | 766 +++ 2 files changed, 767 insertions(+) create mode 100644 hw/net/pch_gbe.c diff --git a/hw

[Qemu-devel] [PATCH 0/2] MIPS Boston / pch_gbe ethernet support

2018-02-17 Thread Paul Burton
Linux kernels with network access. Applies atop master as of 5e8d6a12d643 ("Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180216-pull-request' into staging"). Paul Burton (2): hw/net: Add support for Intel pch_gbe ethernet hw/mips/boston: Enable pch_gbe ethernet

  1   2   >