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: 632244 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp738569pvb; Fri, 9 Dec 2022 01:37:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/SkaVxcX/b2ACMNUKM+gF3gJZPJXVKzdfjFkH53GZUvbJsVBztFqIaORfz+7MlEfxxzxM X-Received: by 2002:a05:6214:4508:b0:4c7:7393:b2a5 with SMTP id oo8-20020a056214450800b004c77393b2a5mr8797186qvb.12.1670578671213; Fri, 09 Dec 2022 01:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670578671; cv=none; d=google.com; s=arc-20160816; b=WoR/AVfTnLMxie8ws51VJ/ebMn68mQR8DzL+y1PH+e1pskZc/yeiKRt3b4IxRBkDjf XinBC6s2w+UDJKzPSFaXq02l97kK7aismO2LKvrJruVs/ianFb9lCjgyYFwD/B6mjBag KfhrgyXx/cM49e0h59BkUtlQulH7CpUV74aEU8Y2eSn+5Q2y0PHEYt/YYBzA5UMXeQ3+ Ai2LoGzQX/vLb5nU1/Ov7bS9rhP6Vv4abJUPGuCNruRQXf4K0oSK2bVPDVXze3h/jj90 Ob5rkvY9hfRmcvhT9bNr3dKH1fEDZoGS9jsRCW3wXITRG3NIQUqn9znq3TXNy8Ot/0PO UkqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=5XG/qyJ3qYTJh4r6ftpZVsjimgFpri3BNqgCExr7520=; b=xsqZRo1eyiGuC1Xu3wT6qev2IDXjT6PUEMxM2ghLRUIZQwELj40bW6QJNGmkctS0zB IE27w+5Tv7Sh6jT+hLLrN7d3e80PeLMC+fHvRq6diVghZJWb6LtsxY8XZFIC6ivL4rqO IyOae2O8QSs0lBR86H1PzoU/Mx5H9wjLN5RdoPrKqbRCzwypDx48QF/PtOrkvdEluPMt WRNRIBLETGk79jY7ekfW7ncAnhwC4XmG4462JYbze9jV9gE4qvUdMGBfU0dwBmKsGlho Z2chK8vOrAZ2bSYPB4YztpoWg33ESGiMaPg92WDP4t115PsaDBYt6VZR2E+pxZpHQeL3 n9/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=isFNCC17; 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=pass (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 lt16-20020a056214571000b004c7369b76f4si474118qvb.50.2022.12.09.01.37.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Dec 2022 01:37:51 -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=pass header.i=@linaro.org header.s=google header.b=isFNCC17; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.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(-)