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: 1220119 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=GmVhAu67; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47tVw167YTz9sRW for ; Thu, 9 Jan 2020 13:50:09 +1100 (AEDT) Received: from localhost ([::1]:53888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipNte-0002mL-IN for incoming@patchwork.ozlabs.org; Wed, 08 Jan 2020 21:50:07 -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-Google-Smtp-Source: APXvYqwyXfFdvqf6dgI5DFpo0Bh2vOJIfEdMq38NeJb6o0c15TaPrTs4lL17JJAWYxToUjY0iZ7fpw== 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+incoming=patchwork.ozlabs.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(-)