From patchwork Wed Jan 23 22:56:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 156432 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1265353jaa; Wed, 23 Jan 2019 14:59:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN5LW9NsxUF7BgI/9ZKQV+5PCg87oGi06JVypO9ypr6a4EZ1iwXEut4zsrEl+R3mTSFGuD5l X-Received: by 2002:a1c:864f:: with SMTP id i76mr38699wmd.83.1548284386679; Wed, 23 Jan 2019 14:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548284386; cv=none; d=google.com; s=arc-20160816; b=uVSC/vEsEeFDtmUmJ4inKh9y1P0dUIm84JzH4Y8zVVMviP6trlwK2ijKKhT1rjoeQp uvUKfwQg7OVid82p28rmjmVyAl/AxfyFci0hlYJJnhwJXxZXSAWvAB3ks2CrZ31XjyxI DD/gC/Ee7aIDZCdaBimWkdNIGUoEhiD5WaIKAEhIV205sjNXbxMva5CLri33sLTD5bi9 9+7NGI7oQ1Agf7Ukscvt5o4CkavXs1/RHspTyQnLWHqZx2FyVi3tLkMM/WBeC4uelvVW FmKHMSOqMOoQnmmAyMQZMmK6F2C4WGVUH+G206rCG7c130Li/YdyLlWfU+GUrUTydkAB zOZw== 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:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=mbs2srJxZTL89zY4n7X96TTyygcA50tk9zAFOOSuLJY=; b=AyIR5b2C8E4WHc3W5yRBz4jBM63am7wrTsfJiSS0qxncsJgaAyTJTgnMWtFN53oukr QnB+Au9tybqLWijcdEbOKip+KgvssyiaYcbxWbJVlIg7o9Zj6yQVYbkjo0ZiONtMdAAw sfwAfka7fsUV7oMe7LBf8IjOxQPngUEbIlSlAUv/fNBOiHq8/kvDPkA8Q4ntzDmcFxWA DOxeNIQQgobkGGMOf3ZbIfaB2kdijtdA2mdpLXrH3pmBJuc5TC9tJSIx04hELT6CdcAU JW7PEvqrrZjlVY5thxjfb81mR99/AUi72s5lvW63+cjxSAZUR0mhxwsfkjlEwPFc5F3h +Zeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IQFxQ58G; 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=fail (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 w18si70134268wro.157.2019.01.23.14.59.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 23 Jan 2019 14:59:46 -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=fail header.i=@linaro.org header.s=google header.b=IQFxQ58G; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:43180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmRUn-0006go-M6 for patch@linaro.org; Wed, 23 Jan 2019 17:59:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmRSI-0005lr-QC for qemu-devel@nongnu.org; Wed, 23 Jan 2019 17:57:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmRSI-00045r-2s for qemu-devel@nongnu.org; Wed, 23 Jan 2019 17:57:10 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:41361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmRSH-00044I-PV for qemu-devel@nongnu.org; Wed, 23 Jan 2019 17:57:10 -0500 Received: by mail-pl1-x62d.google.com with SMTP id u6so1902489plm.8 for ; Wed, 23 Jan 2019 14:57:09 -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=mbs2srJxZTL89zY4n7X96TTyygcA50tk9zAFOOSuLJY=; b=IQFxQ58Gt//WMElWJs29CkAp00BRcptAl1u6kUeOV7jjABSKhnIA+pSlKa8tpTGMiO BfefaGen/GLMVudGLgJuLNOMlWTgYtXadm0WsxnL9JUATClQo2dXW9BeChY9StgOd9gc olU+LroN0DYVOe6A9R15RnNcCrwCZ63LJRaH8= 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=mbs2srJxZTL89zY4n7X96TTyygcA50tk9zAFOOSuLJY=; b=qE976OF3T8mvNUMkuXmGg+yScjMEDps7bjB634oZ8iEWLNcgJ1QB96q9dbcumXnCRO Wyq7rvRuj8cuqV4nMvPB8qF1a0CgeUCs3FEj5Nc14M8W4jRU36DhIHyo6W1wJWDhVe91 n13BI6yovQw2oXt+9Cwr5keZOJUNYEL1nOtcxDrJskd5xWdegKJgXYSmoka3EZeGQubD WDAj5qq4NOiiSgRFNG2lStfaHqSPK3SElYnoNKrKZqJVwi9vHv8N5aYE++boMlmHv+C6 O7nCU49DNPPJnecup5dfXX/tgeWz5UIlKFcll2VLHEJ2xyAWc4vKqs8oMCgCcW6TsBJ7 Fxrg== X-Gm-Message-State: AJcUukcSkD3boyz/IGPmwM6ZrHYJ2SWXtboZl+fpSyIPJvYdTlyiwx0i ONhF73M0uG+pSqZiPjJGBTbuF0lBfqE= X-Received: by 2002:a17:902:2a66:: with SMTP id i93mr4091683plb.113.1548284227831; Wed, 23 Jan 2019 14:57:07 -0800 (PST) Received: from cloudburst.twiddle.net (97-126-115-157.tukw.qwest.net. [97.126.115.157]) by smtp.gmail.com with ESMTPSA id y9sm23858132pfi.74.2019.01.23.14.57.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 14:57:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 23 Jan 2019 14:56:52 -0800 Message-Id: <20190123225705.28963-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 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::62d Subject: [Qemu-devel] [PATCH 00/13] Dynamic TLB sizing, backends X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cota@braap.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is Emilio's v7 unchanged, plus all of the backends updated. Finally, remove the static tlb sizing so that we only support the one code path. I have tested all of these, though riscv, s390 and mips were done under qemu emulation itself. I'll leave some time for comment, but otherwise will include these in my next tcg pull request. r~ Emilio G. Cota (3): cputlb: do not evict empty entries to the vtlb tcg: introduce dynamic TLB sizing tcg/i386: enable dynamic TLB sizing Richard Henderson (10): tcg/aarch64: enable dynamic TLB sizing tcg/ppc: enable dynamic TLB sizing tcg/sparc: enable dynamic TLB sizing tcg/s390: enable dynamic TLB sizing tcg/riscv: enable dynamic TLB sizing tcg/arm: enable dynamic TLB sizing tcg/mips: Fix tcg_out_qemu_ld_slow_path tcg/mips: enable dynamic TLB sizing tcg/tci: enable dynamic TLB sizing cputlb: Remove static tlb sizing include/exec/cpu-defs.h | 71 +++++++------ include/exec/cpu_ldst.h | 9 +- accel/tcg/cputlb.c | 192 +++++++++++++++++++++++++++++++++-- tcg/aarch64/tcg-target.inc.c | 100 ++++++++++-------- tcg/arm/tcg-target.inc.c | 143 +++++++++++++------------- tcg/i386/tcg-target.inc.c | 28 ++--- tcg/mips/tcg-target.inc.c | 97 ++++++++++++------ tcg/ppc/tcg-target.inc.c | 91 +++++++++-------- tcg/riscv/tcg-target.inc.c | 126 ++++++++++------------- tcg/s390/tcg-target.inc.c | 45 ++++---- tcg/sparc/tcg-target.inc.c | 82 +++++++++------ 11 files changed, 617 insertions(+), 367 deletions(-) -- 2.17.2