From patchwork Sat Dec 24 15:18:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 636602 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp779076pvb; Sat, 24 Dec 2022 07:19:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXskN4JKp1X4E78zoobOlqpq6LQGY6VSazKZ5YnlDl6B4rgyBl3d7yaSgtYLHldVd+LArtHQ X-Received: by 2002:ac8:549a:0:b0:3ab:5da1:53e1 with SMTP id h26-20020ac8549a000000b003ab5da153e1mr17307368qtq.42.1671895183320; Sat, 24 Dec 2022 07:19:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671895183; cv=none; d=google.com; s=arc-20160816; b=w8AC/+kP08nJs8iAZFOl4LB9DIlmCx1Nm67Iwcauj4N97kPkY6tCPz4Iw4NiG4QkL+ rSUWjNvX99+PWpZjFULNNZ4uoRqPjX5waRodt05vdxug4gxlcs3GLKavgySqcFdcOQbC Hbst8h1+m77JrZcoI4oAakoj8ikhp3fArF4w6LQ1mn0VlNpeKkKo7d+P5HbHu8a24bU6 yLO/9HvrmbCVEOZUD4l5B91Yut3MkZzK1/PoklMxEkXqkL85Y9TllfYtWr4o3LjUGW6D 6n9SUzczp4uh4Y9Vz762Do6Eh/3UVPXNV2ncmDa75iQTTS9aVZdqvtvr9E93VgnuO+5k 2qow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=nHI/A5cYWY1Lr4nYZiX4y+EBMA5EZJP8gIheGn0bzp4=; b=B7wkXoZJgW+IFuAmjTE85LrHZ75oIleel9ww6UswjaDC6rodBJtKVlAR9d5jAHwTOx mTA0y4Yd9rAZFVXGrkFxaKEjx7987w2JW1l+JPuAEqLz5Hl/lsI58oy3xSpjx46v+Ykr K0v0DXRUAqPzNawLE2RHGGA48+0pTE7Fg2kMdHn8t5v7SI40gqj0VCLSx+vkuNAk5BfL 3hygjSx2yKBSm2p77MA1hDQ+h5yYAE+Iky4xwxXxJlQr7rM6m8o93WtF7MyyL0byo3Ph ckRXKsNDxGhUpjP+HsFgM3VgxA5dHt+kyYh9ICCnWoKCKxeNetWF3HtYdJH2cc8sOXwy uOHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jA+iwYL5; 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 u9-20020a37ab09000000b006faad885293si2134772qke.467.2022.12.24.07.19.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Dec 2022 07:19:43 -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=jA+iwYL5; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p96I7-00055u-3r; Sat, 24 Dec 2022 10:18:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p96I6-00055d-3C for qemu-devel@nongnu.org; Sat, 24 Dec 2022 10:18:26 -0500 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p96I4-00014M-Hm for qemu-devel@nongnu.org; Sat, 24 Dec 2022 10:18:25 -0500 Received: by mail-pg1-x531.google.com with SMTP id h192so110513pgc.7 for ; Sat, 24 Dec 2022 07:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nHI/A5cYWY1Lr4nYZiX4y+EBMA5EZJP8gIheGn0bzp4=; b=jA+iwYL5hFRkk/lllwKZ8hm3c42RNskt6dF6hgt376SBEdYpJZz1+IMJeKGF0NQyyD eob0Pgc9rfCzYSYrOQWDrHanvoTLpOEnpqL+EgctMhgxBYT+CELEqWz5Y3FH7pu/MDaq mGmOqHbfQPbxsjAUVjgHMz3GVyXSCYBzENNc20T4bKOR/hCUu0ZGwz+b5rkimxf8dQyk IQd7OD59WyCOujmdyDABY57DOz8KV6inpE91aOVVsB4AXPaXG1kHqj/W/DdH/vmwpGnS /oWK+Cv9hsTbZ++h08HFVSkaw7YH70BOkpBzCj0IUeSQGNFD1XoN5afS6YtAqOqAQzWn U+Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nHI/A5cYWY1Lr4nYZiX4y+EBMA5EZJP8gIheGn0bzp4=; b=sgCfuTJFNCOluMOZpMi5JN3UzeUX+fbzYbpSfumzQU/1uy7yOGmcaQVE5uXWsTnXr5 es4dsuoEvIjOgsoeju9uUoAg7Wovr462wV5zHDkOut+Wup82PI6xn5wRgQQ9aSg1LM71 UR1OJt6jwW6sKeLZxKlVq2HCiSSswS/TTOhRSx/q2mdRnle9RhmWN67PfkWsIRbglrM2 3+PC4IGzMndyuFjJyFjRMYvIEfawZHW+el/TF5CrfqLgsIMNS9U68ZlLgJ2g3PSNu+bx qaWCOCoOsxpv60LxjuYUjt/W1LaD2REoOPBwXn9Gzi+Cmtt4g/cRwe3G1iUKCyRwhjMo lO7w== X-Gm-Message-State: AFqh2kqLthFDroUGTI5ImrsBebYaCe8r4t8hMNGRHK1CZD0EjxCZS/sX 3uJHDIaiPKpgaA8WSWEsntMrRjTu9Ma+9vUv X-Received: by 2002:aa7:869a:0:b0:57f:69a8:1e04 with SMTP id d26-20020aa7869a000000b0057f69a81e04mr15400942pfo.26.1671895102782; Sat, 24 Dec 2022 07:18:22 -0800 (PST) Received: from stoup.. (76-14-210-194.or.wavecable.com. [76.14.210.194]) by smtp.gmail.com with ESMTPSA id t64-20020a625f43000000b005774f19b41csm4231124pfb.88.2022.12.24.07.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Dec 2022 07:18:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: iii@linux.ibm.com Subject: [PATCH 0/4] accel/tcg: Fixes for user-only page tracking Date: Sat, 24 Dec 2022 07:18:17 -0800 Message-Id: <20221224151821.464455-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x531.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Fix all three bugs pointed out by Ilya, and for the moment at least, adjust the testcase to set read+write for writability. r~ Ilya Leoshkevich (1): tests/tcg/multiarch: add vma-pthread.c Richard Henderson (3): accel/tcg: Fix tb_invalidate_phys_page_unwind accel/tcg: Use g_free_rcu for user-exec interval trees accel/tcg: Handle false negative lookup in page_check_range tests/tcg/multiarch/nop_func.h | 25 ++++ accel/tcg/tb-maint.c | 78 +++++----- accel/tcg/user-exec.c | 57 ++++++-- tests/tcg/multiarch/munmap-pthread.c | 16 +-- tests/tcg/multiarch/vma-pthread.c | 207 +++++++++++++++++++++++++++ tests/tcg/multiarch/Makefile.target | 3 + 6 files changed, 321 insertions(+), 65 deletions(-) create mode 100644 tests/tcg/multiarch/nop_func.h create mode 100644 tests/tcg/multiarch/vma-pthread.c