[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] e8efd8: Add support for MAP_NORESERVE mmap fl
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] e8efd8: Add support for MAP_NORESERVE mmap flag. |
Date: |
Sun, 29 Jun 2014 10:30:06 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: e8efd8e71f89b22d0a5028495cc35bd167f92e63
https://github.com/qemu/qemu/commit/e8efd8e71f89b22d0a5028495cc35bd167f92e63
Author: Christophe Lyon <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
Log Message:
-----------
Add support for MAP_NORESERVE mmap flag.
mmap_flags_tbl contains a list of mmap flags, and how to map them to
the target. This patch adds MAP_NORESERVE, which was missing to the
list.
Signed-off-by: Christophe Lyon <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: 76b94245507881a0621c5bb3b144c3c19dcbcb4d
https://github.com/qemu/qemu/commit/76b94245507881a0621c5bb3b144c3c19dcbcb4d
Author: Wim Vander Schelden <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
Log Message:
-----------
linux-user: added fake open() for /proc/self/cmdline
Signed-off-by: Wim Vander Schelden <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: 8289d112811adfd609c1e3d855427a96418564b0
https://github.com/qemu/qemu/commit/8289d112811adfd609c1e3d855427a96418564b0
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
Log Message:
-----------
linux-user: translate the result of getsockopt SO_TYPE
QEMU previously passed the result of the host syscall directly to the
target program. This is a problem if the host & target have different
representations of socket types, as is the case when running a MIPS
target program on an x86 host. Introduce a host_to_target_sock_type
helper function 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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: aec1ca411e8b772823d88eb64d86478a381cb819
https://github.com/qemu/qemu/commit/aec1ca411e8b772823d88eb64d86478a381cb819
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
Log Message:
-----------
linux-user: support SO_ACCEPTCONN getsockopt option
Translate the SO_ACCEPTCONN option to the host value & execute the
syscall as expected.
Signed-off-by: Paul Burton <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: d79b6cc4350a1c8debab8ae9a60ea745ea7ef036
https://github.com/qemu/qemu/commit/d79b6cc4350a1c8debab8ae9a60ea745ea7ef036
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
Log Message:
-----------
linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options
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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: 82d0fe6b7a7384ed442b6a481ab33d442a06f5f1
https://github.com/qemu/qemu/commit/82d0fe6b7a7384ed442b6a481ab33d442a06f5f1
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/socket.h
M linux-user/syscall.c
Log Message:
-----------
linux-user: support SO_PASSSEC setsockopt option
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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: 356d771b30071b44fcb19d2f8d911784b9b276be
https://github.com/qemu/qemu/commit/356d771b30071b44fcb19d2f8d911784b9b276be
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
Log Message:
-----------
linux-user: allow NULL arguments to mount
Calls to the mount syscall can legitimately provide NULL as the value
for the source of filesystemtype arguments, which QEMU would previously
reject & return -EFAULT to the target program. An example of this is
remounting an already mounted filesystem with different properties.
Instead of rejecting such syscalls with -EFAULT, pass NULL along to the
kernel as the target program expects.
Additionally this patch fixes a potential memory leak when DEBUG_REMAP
is enabled and lock_user_string fails on the target or filesystemtype
arguments but a prior argument was non-NULL and already locked.
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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: 0fa82d39c8afbaaa2fb4cdbb30f36c3dc76dad8e
https://github.com/qemu/qemu/commit/0fa82d39c8afbaaa2fb4cdbb30f36c3dc76dad8e
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/strace.list
Log Message:
-----------
linux-user: support strace of epoll_create1
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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: fd7678324391d497b53afa40eeafe04cc05030df
https://github.com/qemu/qemu/commit/fd7678324391d497b53afa40eeafe04cc05030df
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall_defs.h
Log Message:
-----------
linux-user: fix struct target_epoll_event layout for MIPS
MIPS requires the pad field to 64b-align the data field just as ARM
does.
Signed-off-by: Paul Burton <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: ef4467e911fc8a8a58c85877152a6ef7f46ed03a
https://github.com/qemu/qemu/commit/ef4467e911fc8a8a58c85877152a6ef7f46ed03a
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
M linux-user/syscall_defs.h
Log Message:
-----------
linux-user: respect timezone for settimeofday
The settimeofday syscall accepts a tz argument indicating the desired
timezone to the kernel. QEMU previously ignored any argument provided
by the target program & always passed NULL to the kernel. Instead,
translate the argument & pass along the data userland provided.
Although this argument is described by the settimeofday man page as
obsolete, it is used by systemd as of version 213.
Signed-off-by: Paul Burton <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: b67d80311a7d081747c0f4a731e0bfd2facf1464
https://github.com/qemu/qemu/commit/b67d80311a7d081747c0f4a731e0bfd2facf1464
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/syscall.c
Log Message:
-----------
linux-user: allow NULL tv argument for settimeofday
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 Burton <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: ca56f5b59622af0101f51b0f29459f749b6cbab0
https://github.com/qemu/qemu/commit/ca56f5b59622af0101f51b0f29459f749b6cbab0
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/ioctls.h
M linux-user/syscall.c
M linux-user/syscall_defs.h
Log Message:
-----------
linux-user: support the KDSIGACCEPT ioctl
Add a definition of the KDSIGACCEPT ioctl & allow its use by target
programs.
Signed-off-by: Paul Burton <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: f63eb01ac7a5b4437d5589ad4343527534bf9d0b
https://github.com/qemu/qemu/commit/f63eb01ac7a5b4437d5589ad4343527534bf9d0b
Author: Paul Burton <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/ioctls.h
M linux-user/syscall_defs.h
Log Message:
-----------
linux-user: support the SIOCGIFINDEX ioctl
Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target
programs.
Signed-off-by: Paul Burton <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
Commit: 4f9c5be9191fb08d16023fb6fde1f1d802ce4b44
https://github.com/qemu/qemu/commit/4f9c5be9191fb08d16023fb6fde1f1d802ce4b44
Author: Peter Maydell <address@hidden>
Date: 2014-06-29 (Sun, 29 Jun 2014)
Changed paths:
M linux-user/ioctls.h
M linux-user/socket.h
M linux-user/strace.list
M linux-user/syscall.c
M linux-user/syscall_defs.h
Log Message:
-----------
Merge remote-tracking branch 'remotes/riku/linux-user-for-upstream' into
staging
* remotes/riku/linux-user-for-upstream:
linux-user: support the SIOCGIFINDEX ioctl
linux-user: support the KDSIGACCEPT ioctl
linux-user: allow NULL tv argument for settimeofday
linux-user: respect timezone for settimeofday
linux-user: fix struct target_epoll_event layout for MIPS
linux-user: support strace of epoll_create1
linux-user: allow NULL arguments to mount
linux-user: support SO_PASSSEC setsockopt option
linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options
linux-user: support SO_ACCEPTCONN getsockopt option
linux-user: translate the result of getsockopt SO_TYPE
linux-user: added fake open() for /proc/self/cmdline
Add support for MAP_NORESERVE mmap flag.
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/4daebe014eff...4f9c5be9191f
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] e8efd8: Add support for MAP_NORESERVE mmap flag.,
GitHub <=