From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDD1i-000230-9n for qemu-devel@nongnu.org; Thu, 18 Oct 2018 14:28:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDD1e-0008U8-UY for qemu-devel@nongnu.org; Thu, 18 Oct 2018 14:28:06 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:35775) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDD1e-0008QO-EJ for qemu-devel@nongnu.org; Thu, 18 Oct 2018 14:28:02 -0400 Received: by mail-pf1-x442.google.com with SMTP id l17-v6so15270236pff.2 for ; Thu, 18 Oct 2018 11:28:02 -0700 (PDT) From: Richard Henderson Date: Thu, 18 Oct 2018 11:27:55 -0700 Message-Id: <20181018182758.18646-1-richard.henderson@linaro.org> Subject: [Qemu-devel] [PATCH 0/3] target/arm: Reduce tlb_flush overhead List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org While installing AArch64 Ubuntu into a new vm, I happened to notice that tlb_flush+memset was consuming 25% of the total runtime. This patch set reduces that overhead to 10%. Full tlb flushes are down to 11k from 1.8M, when pausing the installation at the first menu. r~ Richard Henderson (3): target/arm: Remove writefn from TTBR0_EL3 target/arm: Only flush tlb if ASID changes target/arm: Flush only the TLBs affected by TTBR*_EL1 target/arm/helper.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) -- 2.17.2