From patchwork Wed Sep 29 13:05:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 514831 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:4087:0:0:0:0 with SMTP id m7csp11104jam; Wed, 29 Sep 2021 06:11:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy07qeHux9U4Qxamd0daaqeVFRI6uWKj99AlLUjy4PATm+LuwOYFhXugAo7mOMz6KHip/m+ X-Received: by 2002:ac8:434d:: with SMTP id a13mr11845598qtn.91.1632921118335; Wed, 29 Sep 2021 06:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632921118; cv=none; d=google.com; s=arc-20160816; b=jliZ9ryPaKQLcChiGb8KwdqIzOtYp5ImCuJopWhxgXOc838DtATBT6QbSp/My4qLpC YAwU06qpJQ5tR8ErNy+zogmaDRLBBwqalk4xHSjYs8YABkWb7v78FVZvfRNIUdmOeXJR SX0Xa8Up5a5UmU9Sk78ReXCf5ZcX2iiEXb7iHtYdkQ60SJIEX4q60p0uec/geB1W92AV UgWTHbb4WPJLPzm1pXotoe+MPv27PMqwO9BnFiwi29MNpoKNhvYIfsbxKm/ykS1fHVzp PH83LPg2ie+U/lVkNJtgzU9DYPWObOAXqY64PSRgSwl2KCDgl5CB8p3FKrQbzbw1IxZ/ XzSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=85Jc7AM89rkpp45BYHfsNe5uuw5UcZrhaUJXuiCTEJo=; b=N7YHCHCSceTz3zmCjtauzbifOUc+hIkiDzBVdtjXlkTOvAToDNfQyTc53ov0KG0/Rj ppBEm/7Mm98gyDkMCOgnbLckgunkNVm7jiC95L/8TpVZWafUK1e3Xko99HM7+MfUyfCm u82fsiRL16gSxp8a2OZv2t0Pp+vd7YhJvWY9y6UxTIDgGmZZZR4OckHhH1qBG076tGY2 7Kz/lAYHSr91SE9hCM5zOMxkahNojThoYiSxBthnivgjSxQhJXZybxbgDsu4Stkkqs/n wsjaqFuAhT5wml5/sF6V9Z1ElUQ1ILFplAgNEvot2R+LdT7vF1KfA2RQvCVM16CE1sUu aQNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iaQZL4Mr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j8si889854vsn.366.2021.09.29.06.11.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Sep 2021 06:11:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iaQZL4Mr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVZNN-0005VH-MT for patch@linaro.org; Wed, 29 Sep 2021 09:11:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVZHi-00063s-FB for qemu-devel@nongnu.org; Wed, 29 Sep 2021 09:06:06 -0400 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:40959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVZHd-0005zX-HX for qemu-devel@nongnu.org; Wed, 29 Sep 2021 09:06:06 -0400 Received: by mail-oi1-x232.google.com with SMTP id t189so2788343oie.7 for ; Wed, 29 Sep 2021 06:05:59 -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=85Jc7AM89rkpp45BYHfsNe5uuw5UcZrhaUJXuiCTEJo=; b=iaQZL4MrhzHAtbS2bE89AyKBqMJC+TDzSMMW37bgdirnhwAX1G5NkxwMdsWGKRD/Jr LxrgYuHPAD7r/Jp92CsCqoZIgt+cSP+0E6rPdRBmdikZyf2jOcwXbLIb7ta+vflVo7gF hgYs9qiYPcPUrmV4SvIsRJj2yl2V3KpLnumlN6/KTGYDcvGYdktL7sBLt/UMscXFFbHh qRZubl9AQUTxCfFAgwYm3VYDDoQeVIVXcMJbCIOoyl7pkXhXUlvGULdq/bBHHgiaWwtr qO6TfghcdR+utlLCkbQjVchgkypOkIAVMhDC0PUzPBFH1rIKt0j1GfeQJ/bHOf2oqecp 1x7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=85Jc7AM89rkpp45BYHfsNe5uuw5UcZrhaUJXuiCTEJo=; b=o4yLbW6pIEgkAljvRBchBOW75S01kU7lpXTPMgBVu8pps2ACosGUP36QRkwgBwIuZW Y8q/DeD6EJ82M1aKSg5eYZQFuMAR37y1+Q+c4+sGjNqcxc5Pe2SXmHk/wY3xhZymKf4D gHNQxB4NTlJuiWeojcrG9lMqkCy28dV+lUbwg1cjsjttoz49M1ohhgjGTGf3e1vod8zp /06dlKBa5n3bRsNxeSCGwSj0FzW7JBspb1vjjJ6TDfWXTamwfIEqOx3VtL7Bx1CFo5tw f9Ekgr+pPs7LwpyAI7yabOi9/J9Vz26x000UbsgItnO4XIDTGz72EgKtt0dhJpAef/OD PXTw== X-Gm-Message-State: AOAM5310/a8vWg1oKZqLcKFQ00fvtDeZFnQsz03bhUHmQMg/d9WxhOr5 Tz30FAry+w8+JJutjRkKNM3LX26L/JI9jQ== X-Received: by 2002:aca:a852:: with SMTP id r79mr7791912oie.66.1632920758388; Wed, 29 Sep 2021 06:05:58 -0700 (PDT) Received: from localhost.localdomain ([172.58.171.248]) by smtp.gmail.com with ESMTPSA id w1sm442823ote.41.2021.09.29.06.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 06:05:57 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 00/26] linux-user: Move signal trampolines to new page Date: Wed, 29 Sep 2021 09:05:27 -0400 Message-Id: <20210929130553.121567-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x232.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes for v5: * Fix arm thumb code copy. * Re-enable signals test (except hppa & sh4). Changes for v4: * Drop nios2 changes -- I still haven't built a full toolchain. * Clean up arm changes. * Minur i386 pointer type changes. Changes for v3: * Drop vdsos, reinstate setup_sigtramp for all targets. * Incorporate nios2 kuser page emulation, which contains the sigtramp for that target. Changes for v2: * Add vdsos for aarch64, arm, i386, riscv. * Drop setup_sigtramp for any target with a vdso. * Drop arm v1 signal support. * Simplify ppc encode_trampoline. r~ Richard Henderson (26): linux-user: Add infrastructure for a signal trampoline page linux-user/aarch64: Implement setup_sigtramp linux-user/arm: Drop v1 signal frames linux-user/arm: Drop "_v2" from symbols in signal.c linux-user/arm: Implement setup_sigtramp linux-user/alpha: Implement setup_sigtramp linux-user/cris: Implement setup_sigtramp linux-user/hexagon: Implement setup_sigtramp linux-user/hppa: Document non-use of setup_sigtramp linux-user/i386: Implement setup_sigtramp linux-user/x86_64: Raise SIGSEGV if SA_RESTORER not set linux-user/m68k: Implement setup_sigtramp linux-user/microblaze: Implement setup_sigtramp linux-user/mips: Tidy install_sigtramp linux-user/mips: Implement setup_sigtramp linux-user/nios2: Document non-use of setup_sigtramp linux-user/openrisc: Implement setup_sigtramp linux-user/ppc: Simplify encode_trampoline linux-user/ppc: Implement setup_sigtramp linux-user/riscv: Implement setup_sigtramp linux-user/s390x: Implement setup_sigtramp linux-user/sh4: Implement setup_sigtramp linux-user/sparc: Implement setup_sigtramp linux-user/xtensa: Implement setup_sigtramp linux-user: Remove default for TARGET_ARCH_HAS_SIGTRAMP_PAGE tests/tcg/multiarch: Re-enable signals test for most guests linux-user/aarch64/target_signal.h | 2 + linux-user/alpha/target_signal.h | 1 + linux-user/arm/target_signal.h | 2 + linux-user/cris/target_signal.h | 2 + linux-user/hexagon/target_signal.h | 2 + linux-user/hppa/target_signal.h | 14 + linux-user/i386/target_signal.h | 2 + linux-user/m68k/target_signal.h | 2 + linux-user/microblaze/target_signal.h | 2 + linux-user/mips/target_signal.h | 1 + linux-user/mips64/target_signal.h | 2 + linux-user/nios2/target_signal.h | 3 + linux-user/openrisc/target_signal.h | 2 + linux-user/ppc/target_signal.h | 2 + linux-user/riscv/target_signal.h | 2 + linux-user/s390x/target_signal.h | 2 + linux-user/sh4/target_signal.h | 2 + linux-user/signal-common.h | 6 + linux-user/sparc/target_signal.h | 4 + linux-user/x86_64/target_signal.h | 3 + linux-user/xtensa/target_signal.h | 2 + linux-user/aarch64/signal.c | 34 +- linux-user/alpha/signal.c | 34 +- linux-user/arm/signal.c | 580 +++++++++----------------- linux-user/cris/signal.c | 29 +- linux-user/elfload.c | 14 + linux-user/hexagon/signal.c | 19 +- linux-user/i386/signal.c | 65 ++- linux-user/m68k/signal.c | 47 +-- linux-user/microblaze/signal.c | 24 +- linux-user/mips/signal.c | 39 +- linux-user/openrisc/signal.c | 22 +- linux-user/ppc/signal.c | 40 +- linux-user/riscv/signal.c | 22 +- linux-user/s390x/signal.c | 24 +- linux-user/sh4/signal.c | 40 +- linux-user/signal.c | 3 + linux-user/sparc/signal.c | 40 +- linux-user/xtensa/signal.c | 56 ++- tests/tcg/hppa/Makefile.target | 7 + tests/tcg/i386/Makefile.target | 3 - tests/tcg/multiarch/Makefile.target | 8 - tests/tcg/sh4/Makefile.target | 7 + 43 files changed, 613 insertions(+), 604 deletions(-) -- 2.25.1