From patchwork Fri Dec 9 09:36:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1714120 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.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=isFNCC17; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NT5Xz0hSXz2406 for ; Fri, 9 Dec 2022 20:37:53 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3ZoX-0004Dy-De; Fri, 09 Dec 2022 04:37:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3ZoO-0004Aw-SH for qemu-devel@nongnu.org; Fri, 09 Dec 2022 04:36:56 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3ZoM-0003k5-Qg for qemu-devel@nongnu.org; Fri, 09 Dec 2022 04:36:56 -0500 Received: by mail-wm1-x332.google.com with SMTP id bg10so3140272wmb.1 for ; Fri, 09 Dec 2022 01:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5XG/qyJ3qYTJh4r6ftpZVsjimgFpri3BNqgCExr7520=; b=isFNCC17TOoNQuP9Quq70Je89yIOQPLDDYGL+TcjX+5Dz/9pALiEfPfY6VktqR9d+I uZdgD/aQ2VOVfvOTwVoOrX1ibpHIvz/mM3AtC6SNZR99zL7KjmNRU84CM3V9k1kwg3HC OZ14yQO/WJ+ePsr7iFP6h32Uh+3JqXHNrgBqRM2Uho7zucrNekbtKmiucdJWBiGQEb+6 hqEq91mEys+fySM5WedJPHCSXGk39k3znwFwkooU/M6wCv1NTFTnwPPtSfAtYiwezOG5 WP21YRxauQn3GSKf7VVZV2LgY/Rif6mc2CSWeeN2RjalNDwCyNSO5ooPDXRFAQYNUYd4 7oDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5XG/qyJ3qYTJh4r6ftpZVsjimgFpri3BNqgCExr7520=; b=MLSNy9EL9eDabbNkDtmCgwtg1cSnoyBIhnbquESkbTovXLCs91+Y5thppJQPHYZjq3 3E/UnIYVYAVq1iIVz4kX2FfFhGcRMicpYKbpJQ5HL1Lm4+DNJVdEmY5O5pDHfF+hv/52 J8MloYMfh5jgzoTQe1Vff52tGz7HaDPRVh0EymeZFOGfJRYLok0wltgGFJkq0tck5u3D 8gvDr+aVQ0JqoB65ULtEKc4XPBQyIJuDs0RjlhM2eKX65+EvIezf1Y18nCBB9MW9A5I6 29VJ6SKPVebNu+KBfl3Klhhwc/SVeqHpbE08z4T/fcNnViCslevAblVcOtaH5lpDwCOI dtvA== X-Gm-Message-State: ANoB5pl8bTK+1dOBc3JMrHw6CzTxisoRl4YydpqK2PpvA9YPEnniJ2z/ tVGtLC9QJVhSJDjGaQ7ZCXut7bp+X6ZJS67dkX0= X-Google-Smtp-Source: AA0mqf6ID8aJdWw1lmYvkQCiyMNQUJ247TNVdNv3J+s9vSHGVjNI284whCI5hTFvJ7QysAI3d6Lvbw== X-Received: by 2002:a05:600c:3d12:b0:3cf:7903:5646 with SMTP id bh18-20020a05600c3d1200b003cf79035646mr4539055wmb.24.1670578611703; Fri, 09 Dec 2022 01:36:51 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id az40-20020a05600c602800b003d1e1f421bfsm7947819wmb.10.2022.12.09.01.36.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Dec 2022 01:36:51 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Paolo Bonzini , Stefan Hajnoczi , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-8.0 0/5] accel/tcg: Restrict page_collection structure to system TB maintainance Date: Fri, 9 Dec 2022 10:36:44 +0100 Message-Id: <20221209093649.43738-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Few cleanups noticed while reviewing Richard's "Rewrite user-only vma tracking" v3 ([*], based on top of it). - Move accel/tcg/ trace events out of trace-root.h - Refactor tb_invalidate_phys_range_fast() to restrict page_collection to sysemu. [*] https://lore.kernel.org/qemu-devel/20221209051914.398215-1-richard.henderson@linaro.org/ Based-on: <20221209051914.398215-1-richard.henderson@linaro.org> Philippe Mathieu-Daudé (5): accel/tcg: Restrict cpu_io_recompile() to system emulation accel/tcg: Remove trace events from trace-root.h accel/tcg: Rename tb_invalidate_phys_page_[locked_]fast() accel/tcg: Factor tb_invalidate_phys_range_fast() out accel/tcg: Restrict page_collection structure to system TB maintainance accel/tcg/cputlb.c | 7 ++----- accel/tcg/internal.h | 12 ++++-------- accel/tcg/tb-maint.c | 33 +++++++++++++++++++++++---------- accel/tcg/trace-events | 4 ++++ trace-events | 4 ---- 5 files changed, 33 insertions(+), 27 deletions(-)