From patchwork Wed Mar 22 15:07:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 665901 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp203776wrt; Wed, 22 Mar 2023 08:09:18 -0700 (PDT) X-Google-Smtp-Source: AK7set/wjeDiCr8FmZtQYkXKxu2/pNww9oV/TqyPw6VoTo/6VIKnWZql8zwD9X2otoFYCOLSU2wU X-Received: by 2002:ac8:5b87:0:b0:3e3:85fd:9de6 with SMTP id a7-20020ac85b87000000b003e385fd9de6mr6372737qta.59.1679497758155; Wed, 22 Mar 2023 08:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679497758; cv=none; d=google.com; s=arc-20160816; b=DcpljAQ+Bt/UhQeLVxla1KDAWYy9kuPLx/xQj2fMZEcooANmIQlRNYsmdOr0ve4wr0 3B9mOxYogg/9o42v6VUC+9kGugyuo5pSRCaRzA64rLFqlq5J64l9CiPO9UdcIpvzQMS1 K1NzzFEcC5TBfSRMbQC9b500XJzebKgi0oPc40OKWiRBgEf+W8WjuuUSw0rmc7odLPPZ Hp8UrkS5/oXAclapgtsURwRQldibri/9N2G/zXiM3fo3sT0+hB3YETtdBD/fTpzDovFU zQOUCZ4pO4pQ5QjsawFe9SDmx+7kzo2h8laOqWCma4Jc1bl7X86/88cRb8sw4CyR74nz Pcig== 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=jebCWAPwTs4r/XAQO7vnr7xoyu1msDqQuoXwNf4SW9k=; b=yY+e/qkFDWlunmMkaWs5/QwbRVXyjK16rI4yP3UNXuuTFua0mECVhi7Z4R/fkVxVJk e+wwBnBGpYTFxwF3aOZ9TuupQ92aVLIJLkzlfUFwEghuVgYia0t5e9fBlv+AXQvQZggC 4WqVgbJrwSAhPRnhhJi8MEt6TgUuxgb2Us4QmXH/7uCs0nhEJoXDseygHxCS5M5eND3S BOADOJMvPYEEXXXVURimB1nAOPfvGL+vuhmJHDJYLEwwNIyzsl/VWuYr4pbR8b8+CpDC lfoHx7EfoMR5JNOs/b+iS0u9A4eYlUXpExHu7cnCFUnKMUX6tzc2RsfL63Cq71yzRHF6 I+dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pKNgl2Wb; 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 q4-20020a37f704000000b007469b5c90efsi3674683qkj.479.2023.03.22.08.09.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Mar 2023 08:09:18 -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=pass header.i=@linaro.org header.s=google header.b=pKNgl2Wb; 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 1pf047-0002gE-DP; Wed, 22 Mar 2023 11:07:51 -0400 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 1pf045-0002fx-VG for qemu-devel@nongnu.org; Wed, 22 Mar 2023 11:07:49 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pf044-0007Ek-84 for qemu-devel@nongnu.org; Wed, 22 Mar 2023 11:07:49 -0400 Received: by mail-pl1-x630.google.com with SMTP id o11so19570367ple.1 for ; Wed, 22 Mar 2023 08:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679497666; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jebCWAPwTs4r/XAQO7vnr7xoyu1msDqQuoXwNf4SW9k=; b=pKNgl2WbP73Enx6Y16CUDVrQl98kmEamLbmsSmmbeTuCgMhBgzyow/pwjFo166MFCg +/7MlXUx6Fr8kvG3rCvJ+DTh0K637TbOtxjTBA25iEzwi7IWgceVx1JYDWkExaYqlRCn Ayu/tecb8wUtxacomHD15tkMOOOr94KkF9SS/gqEumdSSRGSIPn6Cyh+z4YvPVr45q2G 9s05SvVx+73PNYAH+YC+bLwNxiEAaLzFR2zwlrW5m6nRIQon89xCEGm7zG0PJpJLSoR6 VTyCMYJ7QOaASMeMuA3Si3kvuzvW9u7xXt+2Cv/K5ILmjBxDKRkPKVNNCAcVFk39ncwX 4xaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679497666; 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=jebCWAPwTs4r/XAQO7vnr7xoyu1msDqQuoXwNf4SW9k=; b=4RduQ3cU/Wg7mvfZFLs5Da5iIu9psLUa3fOSy4SZAPF6vASipcJy7gVjoCWCWDPFTQ 02CRst+BdtQp1qJCIKLT9yC3p6iAWarjPw73FytdrBRc5lOPcVn0Wo8HlhjyJGO2qK6W xDbYLDvqsiMtm1SbmVxrSIMyqy91M1oaPsm619tZUWpPA+0LafH6iYRYEBWpUy6+StQ0 jFQxmYDIGztrXqMCWgydkIpkBEaTnfg+7SZg0FEM2FeRTPVisDu1g7X47EOoK5Gp/cBj 5S0bkfIKqSy++FgJTXmfmyTUkueOqE2ZfBFwR5aEm/qf7zkvAklGBNznmW3ioZ7p6UiR OVag== X-Gm-Message-State: AO0yUKW6E1ggqtnVk3oT8dBEuWFMCpq78Ut2MeeLDp9x6oHkx4VIXpCS M3yvCtzpfTrqbasXS31FIRJRoSEkTXtzdUkYPrE= X-Received: by 2002:a17:90b:1bc2:b0:234:1621:3792 with SMTP id oa2-20020a17090b1bc200b0023416213792mr4185968pjb.4.1679497666281; Wed, 22 Mar 2023 08:07:46 -0700 (PDT) Received: from stoup.. (24-113-166-229.wavecable.com. [24.113.166.229]) by smtp.gmail.com with ESMTPSA id 17-20020a170902ee5100b0019339f3368asm10757555plo.3.2023.03.22.08.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 08:07:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: cota@braap.org, peter.maydell@linaro.org Subject: [PATCH for-8.0 00/11] tcg patch queue Date: Wed, 22 Mar 2023 08:07:33 -0700 Message-Id: <20230322150744.175010-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::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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 Posting pre-PR because I had to adjust Emilio's QTree patch [1], and added a new patch to avoid an assert that can be generated with incorrect -R reserved_va values vs the ARM commpage. r~ [1] https://gitlab.com/rth7680/qemu/-/jobs/3975817279#L92 Emilio Cota (2): util: import GTree as QTree tcg: use QTree instead of GTree Richard Henderson (9): linux-user: Diagnose misaligned -R size include/exec: Change reserved_va semantics to last byte accel/tcg: Pass last not end to page_set_flags accel/tcg: Pass last not end to page_reset_target_data accel/tcg: Pass last not end to PAGE_FOR_EACH_TB accel/tcg: Pass last not end to page_collection_lock accel/tcg: Pass last not end to tb_invalidate_phys_page_range__locked accel/tcg: Pass last not end to tb_invalidate_phys_range linux-user/arm: Take more care allocating commpage configure | 15 + meson.build | 4 + include/exec/cpu-all.h | 15 +- include/exec/exec-all.h | 2 +- include/qemu/qtree.h | 201 +++++ linux-user/arm/target_cpu.h | 2 +- accel/tcg/tb-maint.c | 112 +-- accel/tcg/translate-all.c | 2 +- accel/tcg/user-exec.c | 25 +- bsd-user/main.c | 10 +- bsd-user/mmap.c | 10 +- linux-user/elfload.c | 67 +- linux-user/main.c | 31 +- linux-user/mmap.c | 22 +- linux-user/syscall.c | 4 +- softmmu/physmem.c | 2 +- tcg/region.c | 19 +- tests/bench/qtree-bench.c | 286 +++++++ tests/unit/test-qtree.c | 333 +++++++++ util/qtree.c | 1390 +++++++++++++++++++++++++++++++++++ tests/bench/meson.build | 4 + tests/unit/meson.build | 1 + util/meson.build | 1 + 23 files changed, 2412 insertions(+), 146 deletions(-) create mode 100644 include/qemu/qtree.h create mode 100644 tests/bench/qtree-bench.c create mode 100644 tests/unit/test-qtree.c create mode 100644 util/qtree.c