From patchwork Wed Sep 29 13:05:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 514837 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:4087:0:0:0:0 with SMTP id m7csp15518jam; Wed, 29 Sep 2021 06:17:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2hKXEoB+sM89lDckYcdUCAHzxDxpLDlJniw2OIziMypnJCLaLNxf4M0EpKLHSuwYc0imo X-Received: by 2002:aa7:cdd1:: with SMTP id h17mr15194350edw.346.1632921421849; Wed, 29 Sep 2021 06:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632921421; cv=none; d=google.com; s=arc-20160816; b=h1f6jR8JMku+xprarkNWRTKiRGJ71FCGPIsSqrhH2eBrv2nEb6xm5Jz06mK8qYjlqH RYmStE9tu5+B94eRa/mAvYRKjjiUfe63I9jJXkUdNfk3Svs4hnszeU4qBj2X6akbnPFa cTL9lxweXmPdYM3F93UtBAId0zyTbsdv099Plsh/Q+ic7XKCtTXDmm78j8b90hmFpQt6 Zb8sm5zDwqBYVvMrDJPE2CyhmTYbchkMKWhPO0iYJ0Mo2ifg9UwrVoGApOWdO5da+Fp3 qkg2EYdC3vr0ZH9QTk/w3CDtXL+WKwyQxOrbIvUtTvApwPCOUvClfUUYN26Hm1HNxBwO K6fg== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=9uDmWChPs4lp5UI8b6weWaZXX8zbdz4czXb1drnckGg=; b=c2onLrzZIRChW5Q0NeM6m0otfPyjOSkijg7pE1K7yvfUGichp8MwgR6ycNkiwFEt/7 vH3X4YXZ/FvFboQljetrXctwHijPUw/ZJUGKMRyNdMclBFoXTMc12H8H6t4hOQQ6rRjs HJJ3AldeML2Xj0Y7nash9mI0u2I4mzhcpfVuF/vDgpM6huq7c+IqQdN3KI9+JoRTxNQ1 10rMan1ry/FkfRfdFkfzaweOcXt2T5wwN5zxBJdnX/ZbS9O7tl2HmB1NFBsfne/uUyhy ZlSqGMHHI2KaRbrgeOY9cQMQAS9jxwf8EqyBWICA7+0CGjVWQvphY1j9o9E7o6/havA6 h0bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gOYu1niv; 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 v3si2389399eji.473.2021.09.29.06.17.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Sep 2021 06:17:01 -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=gOYu1niv; 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]:52392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVZSG-0003tT-Ro for patch@linaro.org; Wed, 29 Sep 2021 09:17:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVZHy-0006k6-7Q for qemu-devel@nongnu.org; Wed, 29 Sep 2021 09:06:22 -0400 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]:35572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVZHw-0006AS-HS for qemu-devel@nongnu.org; Wed, 29 Sep 2021 09:06:21 -0400 Received: by mail-ot1-x32e.google.com with SMTP id 77-20020a9d0ed3000000b00546e10e6699so2769199otj.2 for ; Wed, 29 Sep 2021 06:06:19 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=9uDmWChPs4lp5UI8b6weWaZXX8zbdz4czXb1drnckGg=; b=gOYu1nivdD0Jq4FXVEuBcoKZM4WPNoB268Jd8qxrxVRBpSc71Whk0vtrgpBDCLjfQt VQAFk2gzu4Fn7Aj2ted9JbLNzJVoef53CmUEcNIhmsz5U1PEf+X0flHJ3AZZjpt4sTzl Rm/Rk+1zRXSxKiYPwhpKo3EtYuAPR9aOYn+XCbln2swuA/FWaaq1HvCqjYbCwAaecMN5 lPCGAwAoGRQgI9KnH2oBGHrazF67rR2GAjq3g0fS/VX+DXe/F7DLNKub1C3VSqqhH5pr M52Z8WGfrxrdjaAKB2oZ3e57i8B/6SyG/aQtER4OglBpAox546NVfA86cB1c1wpFooyY PLEA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=9uDmWChPs4lp5UI8b6weWaZXX8zbdz4czXb1drnckGg=; b=BmrthV+vXi6AzphKiifXmB/MRVfcr+2w531Yi81Suwjsooc1goMSgttFz9Yr4/MyJ2 Y0es14Jt7AiCLzP4OscriTzVJCvUrnPb5VE8hSCJBfmN7y4048KTpHIme5uZ/Dtqx8kv na5uWOaNE5AlZpNS8krDmlp03val3wYp+D8Fh8nQNUR5qQnyqiHURLl9qR01ruh2R53b iPiUIuD8UdhMyXYD5SDcPs/iyB9rDVlS3s5zhfq29mJxd46SJKgKJw/phBRmZpEUa8WP 0QSoIH37PzlGQW/6z4kbZIpnpzZXrjenrltqZ0vUwkUF6Is2x1a8aDHEUTwn707YuuVr G7ww== X-Gm-Message-State: AOAM530nv0hNQD9yPojd6u5taUT7aMYKja6a/qLwTQoLhI8ycKMa2tiY uhwyCqT4kvM4kLXM2l89PK1f/zmzuSFVtg== X-Received: by 2002:a05:6830:101:: with SMTP id i1mr3608581otp.107.1632920778787; Wed, 29 Sep 2021 06:06:18 -0700 (PDT) Received: from localhost.localdomain ([172.58.171.248]) by smtp.gmail.com with ESMTPSA id w1sm442823ote.41.2021.09.29.06.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 06:06:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 09/26] linux-user/hppa: Document non-use of setup_sigtramp Date: Wed, 29 Sep 2021 09:05:36 -0400 Message-Id: <20210929130553.121567-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210929130553.121567-1-richard.henderson@linaro.org> References: <20210929130553.121567-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32e.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, =?utf-8?q?Philippe_Mathieu-?= =?utf-8?b?RGF1ZMOp?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We cannot use a raw sigtramp page for hppa, but must wait for full vdso support. Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- linux-user/hppa/target_signal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.25.1 diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signal.h index 7f525362e9..d558119ee7 100644 --- a/linux-user/hppa/target_signal.h +++ b/linux-user/hppa/target_signal.h @@ -71,4 +71,18 @@ typedef struct target_sigaltstack { /* mask for all SS_xxx flags */ #define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM +/* + * We cannot use a bare sigtramp page for hppa-linux. + * + * Unlike other guests where we use the instructions at PC to validate + * an offset from SP, the hppa libgcc signal frame fallback unwinding uses + * the PC address itself to find the frame. This is due to the fact that + * the hppa grows the stack upward, and the frame is of unknown size. + * + * TODO: We should be able to use a VDSO to address this, by providing + * proper unwind info for the sigtramp code, at which point the fallback + * unwinder will not be used. + */ +#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 0 + #endif /* HPPA_TARGET_SIGNAL_H */