Message ID | 20210913220552.604064-1-richard.henderson@linaro.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp955982jao; Mon, 13 Sep 2021 15:09:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzls5tljs2As8ANjKth1vT+q4VP6MHivAI8UlDMqIR2Y1Q0DsXeffx9Ll7LarD5ZAMVSZs8 X-Received: by 2002:a67:f8d2:: with SMTP id c18mr7297394vsp.17.1631570984413; Mon, 13 Sep 2021 15:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631570984; cv=none; d=google.com; s=arc-20160816; b=Y7MOIACNZjn2IJefat0iL2KEOPB/hFvn5Smkih/JoD3sd/fonOB+5jdQpOuetOr5u/ DeEW1+l2u1EQVCu4zj+tMdoihHb4xOIEFne/SpCpn7BN51VpIksKp7a9C9rAasZfptup 3Nej4/7OLtplJ4T3OwH3L8SezX4Ls5fwsjCnybaWgvqoefAnMFXufC/hx5qzE0nnZp/y QfoiMLrCsIpdlpbGF4QZk39tLrpbjo4VVfRTl4YlIEgca39+dDjNXNgLGvgCmXCaCT19 +9ULZlle8F/uhtD2fEfxp9ztWSKWm27cXPYkHRuq6letHrwywuvgBlBWxwKUrbN9NT0S ESeg== 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=cXqswQXiT92NbddBCeyWIbWveAakpbNjptnTmhnToVY=; b=mkwKvezydlfZzbjiGg5XxVXhDCqkx7BEr3Cx+54IXDbxOOfBqNnX3HDrXBIhbpVWCB vlbe/k22yEy5gp265yt0uUbvLbrmCwPhWMba2cUwd5nvXzQIbqHatIUJyX0l3yl+vIch XIna+kRxxGLevU+GeALgjb3s5Df+O9CKMr/vQv24/HnhRN46XJeoJ6kxh+jwIuS47ESf HDe6D77XWTo/w8lbjJ63dJ3hVoPjJU5klXQpaH9QLPWXqKEasA2LPFGvtM7cEgT89O+Y HYO8LZ+G09p3uZcVAIzV/n+P1LvwPQLGG3dGo857Vdz/YJfFj+thIUtryFbJzr7X+Vbh 5XDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="S3JN/J3O"; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k15si2504674vsh.178.2021.09.13.15.09.44 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Sep 2021 15:09:44 -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="S3JN/J3O"; 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]:54552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1mPu91-0005jh-P5 for patch@linaro.org; Mon, 13 Sep 2021 18:09:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1mPu5O-0001o5-Ga for qemu-devel@nongnu.org; Mon, 13 Sep 2021 18:06:00 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:42596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1mPu5M-0007LD-I2 for qemu-devel@nongnu.org; Mon, 13 Sep 2021 18:05:58 -0400 Received: by mail-pf1-x435.google.com with SMTP id 18so10165463pfh.9 for <qemu-devel@nongnu.org>; Mon, 13 Sep 2021 15:05:55 -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=cXqswQXiT92NbddBCeyWIbWveAakpbNjptnTmhnToVY=; b=S3JN/J3Ov24PXkWPoO4Moomfucrt4ryW8CjH6HszaeDckP6uXpg709UMOVlzvV5hOA fWjAdkF8v7933V2SBI6rsLLBmY39RHoQMMDA86rNm40pWjbUNmQ+ysfe7WVVzC/b8Gp0 oQPyT7qCT2cq2GJVxhDMBc9geO+c2q0oWwcyRvDNS74FhhfmicglWnDvPE/TaNGiS+BP cpb5Mn+DtXRl91y2SN0YUPQUOmayN15B62dDo/mH7fSH9+8LSCRa8+/wTiLRZhpqpSEH nx3COI3RBM0SQfHWhFYPgCZB1e7F7LbyDh7GoouT8v7YmpmwLOI1Elfmie1VGWgHKhRd 4zkQ== 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=cXqswQXiT92NbddBCeyWIbWveAakpbNjptnTmhnToVY=; b=aKzJo1Fa+BBS4NqnJ5h4BRMDDRv34DDZxgBCj4Dd0DxEMIYc4pEt76ilzb8wLtaL+w ZuSyYXXnLvEMDgP7iVCkf7LS7CDpFYHA3+S/3pQbS+YdREUHEn8TWamOeCul81j8ClbU AL7wQ+o9UdACs+M7ZNBoEeK3lYuKZ4EXlxyzNsOVAHA8qX1guFUw3d7DjjAi/9whCNtH XoLoAevMpKOL0A+xNkiZ0AnYxKB7rarT/UDgREabXnruT4H1WV7z8Uyjjq2eUVRw+ASs 3oEkz/43CP2n2Ww8304McZIpnhXVlrWCTEcpUGGc7WLCsTACoH+Q6I7o5eYRJagg/59k PMJg== X-Gm-Message-State: AOAM531dwpw4z4xoMlacVj3endvwssBJx+7LtNhcZ2fhYioF00CFEf5x Eq1uL7rPzOgso+h6hBxp5J6hbzpnABw36A== X-Received: by 2002:a62:7b0e:0:b0:43d:dbad:a09 with SMTP id w14-20020a627b0e000000b0043ddbad0a09mr1479968pfc.51.1631570754547; Mon, 13 Sep 2021 15:05:54 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id 17sm7721404pfx.167.2021.09.13.15.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 15:05:54 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [RFC PATCH 0/7] linux-user: Streamline handling of SIGSEGV/SIGBUS Date: Mon, 13 Sep 2021 15:05:45 -0700 Message-Id: <20210913220552.604064-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, laurent@vivier.eu, imp@bsdimp.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
linux-user: Streamline handling of SIGSEGV/SIGBUS
|
expand
|
On 9/13/21 3:05 PM, Richard Henderson wrote: > All of the really tcg-specific portions are still in user-exec.c, > and all of the really host-specific portions are now ditributed > across linux-user/host/<arch>/. Importantly, SEGV_MAPERR and > SEGV_ACCERR are now passed through from the host kernel -- or at > least there's a single place from which to manage it [1]. Hum. And then there's the special case of s390x, where the hw does not provide the exact address on faults, but only the page. We have code for that in cpu_loop, but I have to invent some new hook in this new scheme. r~