From patchwork Tue Jan 4 02:15:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 529857 Delivered-To: patch@linaro.org Received: by 2002:ac0:9f5c:0:0:0:0:0 with SMTP id l28csp1293406imf; Mon, 3 Jan 2022 18:17:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKYBojz5PInNoW/TuBj+Fr/kr7AtqAV5JHhHNeUB05Oi52Jp1L1TTCEOZMH5XC9fDTX9vl X-Received: by 2002:a05:6902:703:: with SMTP id k3mr16671568ybt.225.1641262641487; Mon, 03 Jan 2022 18:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641262641; cv=none; d=google.com; s=arc-20160816; b=BmOEpv3okFYy2RBfu6wNXohB/AHdkrN6xQ74Z0ftK+QVcrND2bRU/GxqwzjqRwtuc2 aHBwKYN4culahqnjIwFWUDjeqXtNOWLbdG7HlNqBC7xCdodL9FWWFewaTjZw3SyNyjpo fkLgvo/F8y/X77/F/yUiksk/lVNO3JdskAghUPxF86rgfhto0Pwvcfy/+Oy6fWO1DDoY HsmR3yBOzShSxJUoW1j56ydINuGP67e5KbbqrONOI936UktsxkJIIOsMfolwxjb/2yTF B3z+cH9Xh2vsn6aIijmRDxaD90ymNyuRsrW9jHmBlV/ba1wLGiyWI2gbOx/3oL+8Sx+w pBBg== 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=L6wMKf9WQuJh0uf86l3yzSvA28qzOgjbwZds66MwlPw=; b=jiO0L1wCBG7HDojCi3ylBMxDuXLRaH2cwLRFj8pRajvs/sZ6Y0wOteSahTRjdb+Gsw 8FlFvl/Uerw74a60X3YxauGJCsUkzbtA6zlNuY2WVWgxj0Vgh/nQ4r9Q92TFbhU3OMu9 gEpZPpRs96I3SIapbNl44W6cg2Q1U6/ty9j75BGdLLwgJvabKDIiJa2IfJh5BfxR5FTS 6IpfrCX1yRGOkalctV0Pcalyyr+MuvjstiNKUrmUap3lld0oiqfUltmuqCrmzn9tOiGH cTtboI1tu0kWw4SAaRqpqzji8X2x+zmtI/3rEeJU9LAWMLHtzhk8LIHg51rpNoWN88Q/ YhWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UxeD8JHm; 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=pass (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 188si20312827ybc.68.2022.01.03.18.17.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jan 2022 18:17:21 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=UxeD8JHm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4ZO5-0002iP-1c for patch@linaro.org; Mon, 03 Jan 2022 21:17:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4ZMZ-0002eV-K5 for qemu-devel@nongnu.org; Mon, 03 Jan 2022 21:15:47 -0500 Received: from [2607:f8b0:4864:20::1033] (port=47035 helo=mail-pj1-x1033.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4ZMX-00089h-TX for qemu-devel@nongnu.org; Mon, 03 Jan 2022 21:15:47 -0500 Received: by mail-pj1-x1033.google.com with SMTP id rj2-20020a17090b3e8200b001b1944bad25so1534798pjb.5 for ; Mon, 03 Jan 2022 18:15:45 -0800 (PST) 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=L6wMKf9WQuJh0uf86l3yzSvA28qzOgjbwZds66MwlPw=; b=UxeD8JHmai/WAerESFfwJOEVN6WSZGiwu9RjZlo/9Frjena1QEFP3GF/BFKqbtXpL/ 1XHPRsZ5X8swg/CdmasZMD65rrV3fy+aScA8LxAnHvbPs0wgN7wHHRQAyl+PfaeZCaBz 4EMM0+pzOuBZKQNv6Q6gBrcUbFXBG2eoHnFcMblc0T4huU0OT5i2pCc5ss7irvNedUv1 AXid/4wRmLfBj0nV3/L5goB9OJ1Up1go4BqP1RI20fePzW/q2J4NwUqSSdJjV/9Keoy7 ws1tPzJLTTb3/R17Q6uixm0eflFZPzkVCxky4yjieb+E/bLVRq5oum1hGXrS6JCCTNl/ 0mAA== 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=L6wMKf9WQuJh0uf86l3yzSvA28qzOgjbwZds66MwlPw=; b=O6eU+skIKBE0S/hSsmHnfy8iMv82xd8wkz/aOp6YIkgZIhafUyUlfVJUqLbj0Br/Qe m/HiyvyXZzFusknlG9iruVXbBNc609OJwBT671csbuse/EjfAu80sUS+C0o/KOm6eZhy ZTZxLLKOpfdwQIIhTBUnJUczN0rNbNC+wprjtUzrjyF1gjVMocN+MDSPtLQNyaaZFsXL nQKctsAlGiGkTO3/bzyK2NN74i625t7wk2FHCTYbOKTk2K+zuzkQSSz6GOx4i5xHyj/c DOIcROKG5fu1y9SLh95Qe743O3NtdXViHvlwmge8FXNleSO5f5Sc2dc2ntSC+Uuhfs56 psyA== X-Gm-Message-State: AOAM532oeV3A9/Opelreno2/S6UnRanwkUdr/cKNi2olWZzQb8AN4ai2 NtHioVPapan/nrk78VO9B6QHbXbl81CpqA== X-Received: by 2002:a17:902:7146:b0:149:537e:e35e with SMTP id u6-20020a170902714600b00149537ee35emr46711991plm.55.1641262544272; Mon, 03 Jan 2022 18:15:44 -0800 (PST) Received: from localhost.localdomain (174-21-75-75.tukw.qwest.net. [174.21.75.75]) by smtp.gmail.com with ESMTPSA id b4sm37395501pjm.17.2022.01.03.18.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 18:15:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 0/7] Unaligned access for user only Date: Mon, 3 Jan 2022 18:15:36 -0800 Message-Id: <20220104021543.396571-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1033 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: git@xen0n.name, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Version 3 was way back in August: https://lore.kernel.org/qemu-devel/20210818191920.390759-1-richard.henderson@linaro.org/ Quite a few of the patches in there have been merged, but not all. Based-on: <20211227150127.2659293-1-richard.henderson@linaro.org> There are follow-on patch sets for arm, mips, and sparc, which I will be refreshing soon. Xuerui, I believe that tcg/loongarch should be as simple as one of these five. r~ Richard Henderson (7): tcg/i386: Support raising sigbus for user-only tcg/aarch64: Support raising sigbus for user-only tcg/ppc: Support raising sigbus for user-only tcg/riscv: Support raising sigbus for user-only tcg/s390x: Support raising sigbus for user-only tcg/tci: Support raising sigbus for user-only tests/tcg/multiarch: Add sigbus.c tcg/aarch64/tcg-target.h | 2 - tcg/i386/tcg-target.h | 2 - tcg/ppc/tcg-target.h | 2 - tcg/riscv/tcg-target.h | 2 - tcg/s390x/tcg-target.h | 2 - tcg/tci.c | 20 +++++-- tests/tcg/multiarch/sigbus.c | 68 +++++++++++++++++++++++ tcg/aarch64/tcg-target.c.inc | 91 +++++++++++++++++++++++++------ tcg/i386/tcg-target.c.inc | 103 +++++++++++++++++++++++++++++++++-- tcg/ppc/tcg-target.c.inc | 98 ++++++++++++++++++++++++++++++--- tcg/riscv/tcg-target.c.inc | 63 ++++++++++++++++++++- tcg/s390x/tcg-target.c.inc | 59 +++++++++++++++++++- 12 files changed, 462 insertions(+), 50 deletions(-) create mode 100644 tests/tcg/multiarch/sigbus.c