From patchwork Fri Sep 24 16:58:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 514581 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1673598jao; Fri, 24 Sep 2021 10:01:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8iSB8NCOfT21yuHTYX455URnf3iMS4hJUXloUkQQ6tkAArnrV5VoDvjiUZl2Jy8Xp4yZy X-Received: by 2002:a05:620a:e12:: with SMTP id y18mr11576236qkm.464.1632502884843; Fri, 24 Sep 2021 10:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632502884; cv=none; d=google.com; s=arc-20160816; b=kn/LwGen1+oH8rg/o71a6gCTGkgTogVTIW8+7J5YkerbQd6GiKz5xhTIWJNZHq9oze bI5lVTV54spVAKaygK5SeOWtN2OdQP1M3zEWpoXXzdgjhSQRcNPsn+CZvTZI5ks7m2M9 TPWrDVp6jiyneBtSlX/V2FJhI2v7YGG69Mipy4xmaW2gBXrs5Ls6+qBTdbut9HBmu4MS soN3dXQzElUJRpxzoPTUSFWKckQ5SMSX9ax1p0V2/5AKfHJrP5FMSRj046XYLwGsppO/ ub8muGM8EmQRTua+zaxZexQuZpnFYueMxCHpOk8SSODlKTFfKmM0GO8C+ANogaTnohvD 36Pw== 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=cWn+D8WLEAHhYELSPFQ7ITM4yRpVArK0m6kKNDdRQLc=; b=eRidGI3KUQCWerEgWg4ZdFk9F+3SBjFixs/Qvh5j9IZqtqh7yZj4d2uZfocVbsu9+h euwIDKRJleaB158UFv4jnGlHu98dbiych0J+Z6dPk1CA0A0zwI4UocxphzA/63xVaqxL 5pTTRSTTMCHIUijUKZRTNkvStfRCFe0v2BiitIt6VUjLBMyQdNB9WASw5bXLB25MS27K WyBXT8bZ7Wq3tVGbrG48RvjjXH3DWlwhnlNXSLe3KagIIStcnSuz2nDDz2Wcu+hQRprx ukO0FPVWvtt1A40Wh2iI97OD/WZ3Omvsfb8eLoy4rIgcGjX08jJAnjY3j5MVZbwjvWRM PE8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NHjWPdfg; 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 p10si5620441qtx.232.2021.09.24.10.01.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Sep 2021 10:01:24 -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=NHjWPdfg; 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]:55024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mToZg-0002e0-3x for patch@linaro.org; Fri, 24 Sep 2021 13:01:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mToXs-0002d3-Lx for qemu-devel@nongnu.org; Fri, 24 Sep 2021 12:59:33 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:35577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mToXp-0006rM-VL for qemu-devel@nongnu.org; Fri, 24 Sep 2021 12:59:31 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id f2so6679745qvx.2 for ; Fri, 24 Sep 2021 09:59:29 -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=cWn+D8WLEAHhYELSPFQ7ITM4yRpVArK0m6kKNDdRQLc=; b=NHjWPdfgDggkYDvNPlPFkjhKeu5zYvaX37gvhJBHnpPvU+mfzCyg/rvq3s2Ijl7k1a OytoywhhrR9Lh2l7WctrEBCG4TI78qqaaLp8k10tuPjozvcI6sz2W9HkN3zluts0pmJI Odkel9q+ZFmkQ0tCPNtsI4feaKl4H5xheONbskSJer1ed9tVbtl26VlPWiMyWPNT/OrG MXDofGAuJ6viioorhTni+wNbyCSILN9r1vCNB5CvKtK6Ci7H5jNBkBFZ2II9PmSe+Ghe BaZVZXH5mBGUMycq6glK94kQDeHSk5fgvafuY9SK++r7fNWAtczK/zu+131chTDHjSBg J1HQ== 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=cWn+D8WLEAHhYELSPFQ7ITM4yRpVArK0m6kKNDdRQLc=; b=eZDzwPgPn6pWupWWGZIH24UR5Du2hpjDMnXLyaUgl190uOVS7JJNqHtXohZa9uGztH Km+3auboe0V4V1L9XJm8ib6PMJU7VMGzn+3UL6UijAxBCRIat6FkU/xYW8aZ4itTjgX8 Qqb0lCTY+8pjQZ2THTla6ZbgYwjcjV+B49IhYBoKfS3Yk3ygV0uFkVd2Ky9zf/dr05z/ IvYEzTmcsqjUvF/dx3yfqEe0HezOzC9cDQo3buoruSUj4H9k8myvaUed0cHOKHyDpYnx bSIbjxpIrHjLN/wvBvkjhrKx3GXhURZaTasJkwLgW92IwXUKsFcqcAeE0/DxpEvq/3WX Lj6A== X-Gm-Message-State: AOAM532AIEAeR+aHQ93/20ga/KVItvTPemrx1oluMVia1tNTEpYvQsUl ThBYtu87bCFMr6kGpDP/pXFLb/4Cm5SagA== X-Received: by 2002:a0c:906c:: with SMTP id o99mr11264531qvo.43.1632502768344; Fri, 24 Sep 2021 09:59:28 -0700 (PDT) Received: from localhost.localdomain (cpe-24-74-129-96.carolina.res.rr.com. [24.74.129.96]) by smtp.gmail.com with ESMTPSA id r13sm7141104qkk.73.2021.09.24.09.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 09:59:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 00/27] linux-user: Move signal trampolines to new page Date: Fri, 24 Sep 2021 12:58:59 -0400 Message-Id: <20210924165926.752809-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::f2d; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf2d.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: peter.maydell@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Supercedes: 20210706234932.356913-1-richard.henderson@linaro.org ("[PATCH v2 00/36] linux-user: Signal trampolines and vdsos") 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 (27): 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: Properly emulate EXCP_TRAP linux-user/nios2: Map a real kuser page linux-user/nios2: Fixes for signal frame setup 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 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 + target/nios2/cpu.h | 5 +- linux-user/aarch64/signal.c | 34 +- linux-user/alpha/signal.c | 34 +- linux-user/arm/signal.c | 590 ++++++++++---------------- linux-user/cris/signal.c | 29 +- linux-user/elfload.c | 49 +++ 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/nios2/cpu_loop.c | 84 ++-- linux-user/nios2/signal.c | 51 +-- 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 ++- target/nios2/translate.c | 26 +- 43 files changed, 744 insertions(+), 659 deletions(-) -- 2.25.1