qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 228168: linux-user: Set CF_PARALLEL when mapp


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 228168: linux-user: Set CF_PARALLEL when mapping shared me...
Date: Tue, 22 Jun 2021 08:13:43 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 228168cbb7cc40bfb1621b0b6868c018b522276a
      
https://github.com/qemu/qemu/commit/228168cbb7cc40bfb1621b0b6868c018b522276a
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M linux-user/mmap.c
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Set CF_PARALLEL when mapping shared memory

Signal the translator to use host atomic instructions for
guest operations, insofar as it is possible.  This is the
best we can do to allow the guest to interact atomically
with other processes.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/121
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210612060828.695332-1-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 144bff0304b8f93cf0eb9ed432434644302dc6d5
      
https://github.com/qemu/qemu/commit/144bff0304b8f93cf0eb9ed432434644302dc6d5
  Author: Michael Forney <mforney@mforney.org>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M linux-user/signal.c

  Log Message:
  -----------
  linux-user: Disable static assert involving __SIGRTMAX if it is missing

This check is to ensure that the loop in signal_table_init() from
SIGRTMIN to SIGRTMAX falls within the bounds of host_to_target_signal_table
(_NSIG). However, it is not critical, since _NSIG is already defined
to be the one larger than the largest signal supported by the system
(as specified in the upcoming POSIX revision[0]).

musl libc does not define __SIGRTMAX, so disabling this check when
it is missing fixes one of the last remaining errors when building
qemu.

[0] https://www.austingroupbugs.net/view.php?id=741

Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210526190203.4255-1-mforney@mforney.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 0e8876970401dee2055c1eb1c23f92f2e57d73ad
      
https://github.com/qemu/qemu/commit/0e8876970401dee2055c1eb1c23f92f2e57d73ad
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M linux-user/trace-events

  Log Message:
  -----------
  linux-user/trace-events: fix minor typo in format string

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210614144245.17660-1-alex.bennee@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: e10fbe8f34843891b18f68f76320b43606f4df69
      
https://github.com/qemu/qemu/commit/e10fbe8f34843891b18f68f76320b43606f4df69
  Author: YAMAMOTO Takashi <yamamoto@midokura.com>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Implement pivot_root

Used by runc.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210531055019.10149-6-yamamoto@midokura.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: ee3500d33a7431fbcc357a35ce1a46fcf13128cc
      
https://github.com/qemu/qemu/commit/ee3500d33a7431fbcc357a35ce1a46fcf13128cc
  Author: Ilya Leoshkevich <iii@linux.ibm.com>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M linux-user/signal.c

  Log Message:
  -----------
  linux-user: Let sigaction query SIGKILL/SIGSTOP

The kernel allows doing this, so let's allow this in qemu as well.
Valgrind relies on this.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210601145600.3131040-2-iii@linux.ibm.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 1df0f5c1141958368d7473c7bfe8beac7bf86385
      
https://github.com/qemu/qemu/commit/1df0f5c1141958368d7473c7bfe8beac7bf86385
  Author: Ilya Leoshkevich <iii@linux.ibm.com>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M tests/tcg/multiarch/linux-test.c

  Log Message:
  -----------
  tests/tcg/linux-test: Check that sigaction can query SIGKILL/SIGSTOP

Verify that querying is allowed, but making changes isn't.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210601145600.3131040-3-iii@linux.ibm.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 8a589aeb271bb470884f960e76cd6a7c89c022c9
      
https://github.com/qemu/qemu/commit/8a589aeb271bb470884f960e76cd6a7c89c022c9
  Author: Khem Raj <raj.khem@gmail.com>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M linux-user/elfload.c

  Log Message:
  -----------
  linux-user: Check for ieee128 fpbits in PPC64 HWCAP2 feature list

glibc 2.34 is now checking for this in hwcaps at
runtime [1] and failing to run the binary if machine
does not support 128bit IEEE fp

Fixes
Fatal glibc error: CPU lacks float128 support (POWER 9 or later required)

[1] 
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d337345ce145e23c5f3a956f349d924fdf54ce2d;hp=eb24865637a271ab7dad13190330105eab0d478d

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210614191729.2981488-1-raj.khem@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: febf6fade63801ebca765797fa2ad9de8d9f2700
      
https://github.com/qemu/qemu/commit/febf6fade63801ebca765797fa2ad9de8d9f2700
  Author: Michael Forney <mforney@mforney.org>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Fix incorrect use of feature-test-macros

The _POSIX_C_SOURCE and _XOPEN_SOURCE macros are used by the
application to indicate to libc which declarations it should expose.
Since qemu does not define them anywhere, it does not make sense
to check their value.

Instead, since the intent is to determine whether the host struct
stat supports the st_*tim fields, use the configure test result
which does exactly that.

Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210526035531.7871-1-mforney@mforney.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 96ff758c6e9cd5a01443ee15afbd0df4f00c37a8
      
https://github.com/qemu/qemu/commit/96ff758c6e9cd5a01443ee15afbd0df4f00c37a8
  Author: Michael Forney <mforney@mforney.org>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M configure
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Use public sigev_notify_thread_id member if available

_sigev_un._tid is an internal glibc field and is not available on
musl libc. The sigevent(7) man page and Linux UAPI headers both use
sigev_notify_thread_id as a public way to access this field.

musl libc supports this field since 1.2.2[0], and glibc plans to
add support as well[1][2].

If sigev_notify_thread_id is not available, fall back to _sigev_un._tid
as before.

[0] 
http://git.musl-libc.org/cgit/musl/commit/?id=7c71792e87691451f2a6b76348e83ad1889f1dcb
[1] https://www.openwall.com/lists/musl/2019/08/01/5
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=27417

Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210526035556.7931-1-mforney@mforney.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: b22726abdfa54592d6ad88f65b0297c0e8b363e2
      
https://github.com/qemu/qemu/commit/b22726abdfa54592d6ad88f65b0297c0e8b363e2
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-06-22 (Tue, 22 Jun 2021)

  Changed paths:
    M configure
    M linux-user/elfload.c
    M linux-user/mmap.c
    M linux-user/signal.c
    M linux-user/syscall.c
    M linux-user/trace-events
    M tests/tcg/multiarch/linux-test.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/vivier2/tags/linux-user-for-6.1-pull-request' into staging

Linux-user pull request 20210621

# gpg: Signature made Mon 21 Jun 2021 12:03:53 BST
# gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
# gpg:                issuer "laurent@vivier.eu"
# gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
# gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
# gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" 
[full]
# Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C

* remotes/vivier2/tags/linux-user-for-6.1-pull-request:
  linux-user: Use public sigev_notify_thread_id member if available
  linux-user: Fix incorrect use of feature-test-macros
  linux-user: Check for ieee128 fpbits in PPC64 HWCAP2 feature list
  tests/tcg/linux-test: Check that sigaction can query SIGKILL/SIGSTOP
  linux-user: Let sigaction query SIGKILL/SIGSTOP
  linux-user: Implement pivot_root
  linux-user/trace-events: fix minor typo in format string
  linux-user: Disable static assert involving __SIGRTMAX if it is missing
  linux-user: Set CF_PARALLEL when mapping shared memory

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/bf7942e406cb...b22726abdfa5



reply via email to

[Prev in Thread] Current Thread [Next in Thread]