From patchwork Thu Jan 9 02:48:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 182784 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp3195331ile; Sun, 12 Jan 2020 09:33:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxa8H15czX67iA+L3TRVUDtpG0qrPwfPhrwDj3Rba0C2ggLWETf/w19ZHE6qAR6JB3e797l X-Received: by 2002:a0c:e84d:: with SMTP id l13mr7942918qvo.53.1578845254552; Sun, 12 Jan 2020 08:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578845254; cv=none; d=google.com; s=arc-20160816; b=Vp6alKA47xmpe+ZC0wrNkXBMo5vMwCn7n1HGQWL47JKMTU1RdulCr7KFOGd5WANhTv jJ8VwDaqvVsrk1MFs+GjW7nnlLLU35Wt0YrJRX4vg4unHeEjBbuGSwwRqhOqCM3ZBmXS pE/Hy8WKAI+8seqVcsUc3WcsZjjj2LyVp1XjBfeaBcIpd/cyHaCyIqGlOriYMvSJcoud gnJKxf5lv9Z/JoanRC6mYwlQlGFPHuf0W6nXH1wFeNp9ohitGY8btaA8XQGTXHVQAqTb YOG/zvTKJ54DHWPeSlQneJJlfppbbv9DBr1e5azggxgllEzzFpDowWEB6m2LxI2WdNnf deLA== 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=z/0Cg0FCKhSbnvXHVUSJNPEc7zMFmpnggi/jIrklhkg=; b=aIKo+nnVGAVmvxbuPWyiVryyxPkhYWH0t/kX2x3Xo/fhtC2rWcckQWG/d7E7k2N0nx /r2rxLcz7voO+KGi7xyhqnxtv3uX9Gbn+atIlPSviWZeCrO+MjZFv/uWYzecVoA7s+74 I8M1dg9bLQivEMQ1pHNOemjwsVamQGXWmpvioevj66xFpU4FccaeDV93T01Tg0KeXDOG xv6i9yFjFShvtXtvC5ySOqhz6DNDUkxZGa4QuttzCk83+wH2VyUAjuYpcOR3itpg9e9q IUQt9BjgbZTHlsLiRavhXxhTReLHg7kQf0jypjgn0jByJpRIAkF4pKtG4iNwZHwwyPKr qoGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GmVhAu67; 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 eb12si4642269qvb.109.2020.01.12.08.07.34 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jan 2020 08:07:34 -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=GmVhAu67; 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]:53980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipNvY-00063W-A1 for patch@linaro.org; Wed, 08 Jan 2020 21:52:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51138) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipNsq-0002m4-Ur for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:49:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipNso-0005qY-TX for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:49:16 -0500 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:37482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipNso-0005mP-It for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:49:14 -0500 Received: by mail-pj1-x1036.google.com with SMTP id m13so471366pjb.2 for ; Wed, 08 Jan 2020 18:49:14 -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=z/0Cg0FCKhSbnvXHVUSJNPEc7zMFmpnggi/jIrklhkg=; b=GmVhAu67BauoajXfSlQewwat5SENMY+6hKde+/hWhPBajQw01QigWwRDXwYwQOLi1I zs5ZpzYtd+pOlKrkYklxdGR/vAOEWDT/bAdW8/j9zEi5XY8kKidocyXXKigtHccH4yT2 UVBLbBXKzKnzempv5fvQKIFyZnBElMyE2ZzCgioYbvQVzMnrbpc9mRzFsrDyeZngHE2a LBMiOH4Zi/sdH5XkHdt1i1lYLZeuWC5jPY6SqKJ3aq28QMe43VyobQu7xfccrIpCmuyM klUbf744bkDMPNmPp6BSEizt5uA4MKFgKKN/dc/Cx3V0/ZBDvCocC3xx8R6k7XGPCSEZ Mrhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z/0Cg0FCKhSbnvXHVUSJNPEc7zMFmpnggi/jIrklhkg=; b=f4PqDLqCPUXJxYsMqx6YrnQ6BuWdA1jIYpwev+CBDa652/XR6Aw9FMBY3v20kHvhAB VQPLDXzrSqHC6C97/wP3xbkvBNM1ao94UY0MzkLtYZ2a/nRj5/jLYCVjRqzw9iNGysl3 WpgJ2Nic2oVpszapktgul3dI7rjAItl5d1TmULzdBPZYywq+JDY0xSEMcubHVD99VJ6G BdDZou9pd5UWwOZtTcoWTjzuovO/wD7UurCwiZx6H3jWdYKMLbuDlh5bnMyFbpdebV89 S4ULIzmESqiPbONe7OFah1MCOmcIbsC0CiuCrEquVYs+wCD50paAgMjNxIMFvetBfOOg ohlw== X-Gm-Message-State: APjAAAUuZ4z0r6R37AMVsAB3nB9/W4fPi+T9HLWHztqnxPUoFs9OCu6c RCNfuDS53rWCqghiSys1U0BD4GcB0XhkOQ== X-Received: by 2002:a17:90a:8912:: with SMTP id u18mr2402149pjn.21.1578538152679; Wed, 08 Jan 2020 18:49:12 -0800 (PST) Received: from localhost.localdomain (alanje.lnk.telstra.net. [120.151.179.201]) by smtp.gmail.com with ESMTPSA id b4sm5337844pfd.18.2020.01.08.18.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 18:49:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/9] cputlb: Various cleanups Date: Thu, 9 Jan 2020 13:48:58 +1100 Message-Id: <20200109024907.2730-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1036 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: alistair.francis@wdc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" I had a conversation with Alistair Francis at KVM forum about being able to represent ASIDs "properly". This lead to the idea that target-specific code might be able to cache TLBs outside of the "main" NB_MMU_MODES -- possibly thousands of them. This goes nowhere near that far. But it does begin edging toward the possibility of having a struct CPUTLBSaved { CPUTLBDesc d; CPUTLBDescFast f; }; by moving some of the most basic routines to use CPUTLBDesc and CPUTLBDescFast directly instead of always using an mmu_idx. I'm not sure how much time I'll have to go further along these lines, but what I have so far still looks like a cleanup. r~ Richard Henderson (9): cputlb: Merge tlb_table_flush_by_mmuidx into tlb_flush_one_mmuidx_locked cputlb: Make tlb_n_entries private to cputlb.c cputlb: Pass CPUTLBDescFast to tlb_n_entries and sizeof_tlb cputlb: Hoist tlb portions in tlb_mmu_resize_locked cputlb: Hoist tlb portions in tlb_flush_one_mmuidx_locked cputlb: Split out tlb_mmu_flush_locked cputlb: Partially merge tlb_dyn_init into tlb_init cputlb: Initialize tlbs as flushed cputlb: Hoist timestamp outside of loops over tlbs include/exec/cpu_ldst.h | 5 -- accel/tcg/cputlb.c | 120 +++++++++++++++++++++------------------- 2 files changed, 64 insertions(+), 61 deletions(-) -- 2.20.1