From patchwork Tue Apr 14 20:06:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 1270696 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ugmg9ZRH; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 491xNT03Rsz9sSd for ; Wed, 15 Apr 2020 06:07:19 +1000 (AEST) Received: from localhost ([::1]:38278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jORq0-0005u0-TX for incoming@patchwork.ozlabs.org; Tue, 14 Apr 2020 16:07:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44423) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jORpN-0005t8-GG for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:06:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jORpM-0005tH-65 for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:06:37 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:33907) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jORpL-0005ss-Vx for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:06:36 -0400 Received: by mail-wr1-x42a.google.com with SMTP id d27so6805361wra.1 for ; Tue, 14 Apr 2020 13:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y0IWu5OXnoNPgqTCkYNBaKix2IxxULyLtRLl5UjfPys=; b=ugmg9ZRH0ezU+iA2J8fo5RTdnBIb1JYr/yzUYUPYfa8GXFW6cLdkeczpSa06TvqY5g QbeO/rNqJGJbiPGshzAEQO6xYgSdonhqg6j7l8Jqsp858MBzcq/3mwkl3oVM3qoTft1W y6CP/DPkJzJiwm0lM7VG2vEWQFYkwjw4SV2hUSWScc4H2VWPBEhrPkCNrSqrlrpO2y0R SthRDWSHuzCFEwrDffD7n0nJLO3GvSY6iANyZPL/2Wi5Tj1nMvTvIGxbQ9nBjbPx/vZ1 NKC+n3VkPMBrNgr+n9qwNTPEFMWX309g2vmOdnl+d6A3KTKYMpZL4r3NO+ytp+3f9Rbb Tznw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y0IWu5OXnoNPgqTCkYNBaKix2IxxULyLtRLl5UjfPys=; b=o6z1syXleU9t5oVkS2N9iX8F3eIiQf6OkwRSS7arkoDOykTcVJWfKXH95cmro9Ll4N cQBhGxTpcMZBd07v+ZVMplZXpnPZFHX/ZwNfSqWOYUq9Q4DEAfF04jyd3gLMHCjVI2Ri t4hqAGNQTWGl9T6UzaP6USwplX3JwYKQKMobsMgP1sSPDLPESXy+DKLT8WhEIFfmFHJH /UQJPeIODFNnXw1OgYbWhA/BounHU3e3WAf1hjaPtmTIsGZ1YnqE8Rao+lJ4sMP+X332 iEyshbEgRZQNTPXCptp+G6ZOxYZ+LpV+T7w+AaIH24In8JDx4AO3nhnWO9Wdwq1u9u3+ RETA== X-Gm-Message-State: AGi0PuaL66xuVc8odnkJoWqWkG8UvtHka3A7yQ01vxesJrSTHNrbUj5b OUP4wLySiKf6t4MNLzffPpOZew== X-Google-Smtp-Source: APiQypKjUlL+BO3JkXzX57eme78QNp4bSAE94ThkRBFvVtaWlERpLVQRqx/ZUjfQTu0Gbb5YS+72kQ== X-Received: by 2002:adf:db41:: with SMTP id f1mr5330739wrj.13.1586894793575; Tue, 14 Apr 2020 13:06:33 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id b85sm20541056wmb.21.2020.04.14.13.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 13:06:32 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 563671FF7E; Tue, 14 Apr 2020 21:06:31 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 for 5.0-rc3 00/17] more randome fixes (user, pie, docker and gdbstub) Date: Tue, 14 Apr 2020 21:06:14 +0100 Message-Id: <20200414200631.12799-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Hi, This is version 2 of my random fixes for rc3 series. In no particular order we have: - A trivial fix to /proc/self/stat output - An attempt to fix broken PIE builds for Windows (please test!) - Some fixes to get "make docker-all-tests" running again - A tweak to .gitignore - A couple of bugs found in the gdbstub GByteArray conversion - A new test case for linux-user gdbstub support - Which found a few more gdbstub bugs :-/ The m68k FPU patch is definitely a hack but it seemed easier than disabling completely. The chatter on #gdb seems to be there is some combination of qemu and gdb tress that does work but I suspect this needs some maintainer action. I've dropped the MacOSX travis patch as Travis has hopefully sorted itself out. I've also included the guest base re-factoring patches as it makes it easier for me to soak test the tree with the sanitiser although those actual fixes won't go into 5.0 at this late stage. The following patches need review: - tests/tcg: add a multiarch linux-user gdb test - tests/tcg: drop inferior.was_attached() test - target/m68k: hack around the FPU register support (HACK!) - linux-user: completely re-write init_guest_space Alex Bennée (9): linux-user: completely re-write init_guest_space .gitignore: include common build sub-directories tests/docker: add docs FEATURE flag and use for test-misc configure: redirect sphinx-build check to config.log configure: disable PIE for Windows builds linux-user: fix /proc/self/stat handling target/m68k: hack around the FPU register support (HACK!) tests/tcg: drop inferior.was_attached() test tests/tcg: add a multiarch linux-user gdb test Peter Xu (1): gdbstub: i386: Fix gdb_get_reg16() parameter to unbreak gdb Philippe Mathieu-Daudé (4): target/m68k/helper: Fix m68k_fpu_gdb_get_reg() use of GByteArray gdbstub: Do not use memset() on GByteArray gdbstub: Introduce gdb_get_float32() to get 32-bit float registers gdbstub: Introduce gdb_get_float64() to get 64-bit float registers Richard Henderson (3): exec/cpu-all: Use bool for have_guest_base accel/tcg: Relax va restrictions on 64-bit guests linux-user/ppc: Fix padding in mcontext_t for ppc64 configure | 5 +- include/exec/cpu-all.h | 25 +- include/exec/gdbstub.h | 29 ++ linux-user/qemu.h | 31 +- target/alpha/cpu-param.h | 15 +- accel/tcg/translate-all.c | 15 +- bsd-user/main.c | 4 +- linux-user/elfload.c | 503 ++++++++++---------- linux-user/flatload.c | 6 + linux-user/main.c | 27 +- linux-user/ppc/signal.c | 69 ++- linux-user/syscall.c | 43 +- target/arm/gdbstub.c | 3 +- target/i386/gdbstub.c | 2 +- target/m68k/helper.c | 14 +- target/ppc/gdbstub.c | 4 +- target/ppc/translate_init.inc.c | 2 +- target/sh4/gdbstub.c | 6 +- target/xtensa/gdbstub.c | 6 +- .gitignore | 1 + gdb-xml/m68k-fp.xml | 16 +- tests/docker/dockerfiles/debian10.docker | 2 + tests/docker/dockerfiles/debian9.docker | 2 - tests/docker/dockerfiles/fedora.docker | 2 +- tests/docker/dockerfiles/travis.docker | 2 +- tests/docker/dockerfiles/ubuntu.docker | 2 +- tests/docker/dockerfiles/ubuntu1804.docker | 2 +- tests/docker/test-misc | 2 + tests/tcg/aarch64/gdbstub/test-sve-ioctl.py | 3 - tests/tcg/aarch64/gdbstub/test-sve.py | 3 - tests/tcg/multiarch/Makefile.target | 15 + tests/tcg/multiarch/gdbstub/sha1.py | 81 ++++ 32 files changed, 522 insertions(+), 420 deletions(-) create mode 100644 tests/tcg/multiarch/gdbstub/sha1.py