From patchwork Fri Apr 6 02:12:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 895580 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=braap.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=braap.org header.i=@braap.org header.b="0rct8nfS"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="eU+XcjO5"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40HNYB2g1kz9s24 for ; Fri, 6 Apr 2018 12:14:04 +1000 (AEST) Received: from localhost ([::1]:43989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4Gt8-0002If-5e for incoming@patchwork.ozlabs.org; Thu, 05 Apr 2018 22:14:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4GsL-0002GF-7X for qemu-devel@nongnu.org; Thu, 05 Apr 2018 22:13:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4GsH-0003Sm-To for qemu-devel@nongnu.org; Thu, 05 Apr 2018 22:13:13 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60895) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f4GsH-0003Rc-Mr for qemu-devel@nongnu.org; Thu, 05 Apr 2018 22:13:09 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D71A8209B0; Thu, 5 Apr 2018 22:13:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 05 Apr 2018 22:13:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=mesmtp; bh=5C1RqbnPBZ/rT7q1cRBsWsljFh2qZ99LLjp3Gd fnM+k=; b=0rct8nfSNZON6oqtlcZAKb/olOX/B6osbGpDXSSJlSNCKxNANWaqHT yCto5AJeFKTLT96oRfHIyZiv6gzx5ielfhF2c9aSWWjsvkAF/FaWH1RYCegVA+zT zOHQAI1ZYQaclRK7e+CnmSITzGmRPN3qUyv7g/gWk7OHlyxNpyhK0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5C1RqbnPBZ/rT7q1c RBsWsljFh2qZ99LLjp3GdfnM+k=; b=eU+XcjO5pSyMcgEGpVMGwYhtT27vm2AdG MpSpFbluZpjFeQfumCsRQV3/8QQ6RYs7+kiaO1PlthLT+DdUVz8Rqjv1Am5GmYnI vJPpSJLlbHcs8VbesOTvblRioDz4t0H1jufuKDDM7knGaOr9Lp6cU/QMJGu4R+ES b8mVHvqznCOde5GtXKJkexVzbvR+foNZ4SYPrIfWwEwNzqdjvmupYv8KslEj+zP7 xi4pLBqC8KG4oJ9Ag/74xnneb6ljpHCa33frhyP8hWBPc2caDypumAoneZkl173Q axqjMds6cJs5nnu8ae5BcVah0i+lBwihzXwqDf7FYoa0SpC34EtKA== X-ME-Sender: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id AD5E7E4F68; Thu, 5 Apr 2018 22:13:08 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Thu, 5 Apr 2018 22:12:51 -0400 Message-Id: <1522980788-1252-1-git-send-email-cota@braap.org> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.29 Subject: [Qemu-devel] [PATCH v2 00/17] tcg: tb_lock_removal redux v2 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: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , Paolo Bonzini Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" v1: http://lists.gnu.org/archive/html/qemu-devel/2018-02/msg06499.html Changes since v1: - Add R-b's - Rebase onto master - qht_lookup_custom: move @func to be the last argument, which simplifies the new qht_lookup function. (I've kept R-b's tags here because this is a very simple change.) - qht_insert: add an **existing argument and keep the bool return value, as suggested by Alex. - Fix indentation of TB_FOR_EACH_TAGGED macro - Add page_locked assertions, as suggested by Alex. - Expand comment in tb_link_page and in docs/mttcg about parallel code insertion. - Fix stale comment about tb_lock next to CF_INVALID - Fix stale comment in cpu_restore_state, as suggested by Alex. There is only one checkpatch error for the entire series -- it is a false positive. You can fetch the tree from: https://github.com/cota/qemu/tree/tb-lock-removal-redux-v2 Thanks, Emilio --- accel/tcg/cpu-exec.c | 96 ++- accel/tcg/cputlb.c | 8 - accel/tcg/translate-all.c | 1053 ++++++++++++++++++++++---------- accel/tcg/translate-all.h | 6 +- docs/devel/multi-thread-tcg.txt | 24 +- exec.c | 25 +- include/exec/cpu-common.h | 2 +- include/exec/exec-all.h | 51 +- include/exec/memory-internal.h | 6 +- include/exec/tb-context.h | 4 - include/qemu/qht.h | 32 +- linux-user/main.c | 3 - tcg/tcg.c | 205 +++++++ tcg/tcg.h | 13 +- tests/qht-bench.c | 18 +- tests/test-qht.c | 23 +- util/qht.c | 41 +- 17 files changed, 1133 insertions(+), 477 deletions(-)