From patchwork Fri Sep 15 19:00:03 2023 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: 723153 Delivered-To: patch@linaro.org Received: by 2002:adf:f0d1:0:b0:31d:da82:a3b4 with SMTP id x17csp550155wro; Fri, 15 Sep 2023 12:00:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7RoLtHl1g8dhD7+4SV3XpZex8i65FQxUWTHpbV7eUV19aUlFtiycKxUOeGE3p6dPBR1St X-Received: by 2002:a1f:eac3:0:b0:48f:8891:296b with SMTP id i186-20020a1feac3000000b0048f8891296bmr2891266vkh.0.1694804438921; Fri, 15 Sep 2023 12:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694804438; cv=none; d=google.com; s=arc-20160816; b=0krVfuFSYXTNuXNYIpBjJwY+nNxUPhh6fCLpslOZD5Kto288kfqEMXM5FxIVDxgaDe MsVafBF0dKE4S7FVc5KIBvgVFHh+9NwHlEpDn/A+f0NEhPXp/BL/EttfT/z+H5pVi4CT 6vW8kpPgLiClv5A5xwX7/evkp2gDW8/8pwucMdflvhr9JR7vzGnEAyrSWKk2t02xG507 awhqHhrwlcUjaCk7KpyXx+JMCK4+TmtWmgiDKbGG9VgP2Fy1RhjjxjgidfW0Mz/PUr2J YjVSDpS89pOgMdrhpRGzD6UU+gXoC6AqwzJxQGYgO7HCwZfGe7hqrN+8w9sLFLL7WHx6 EiHg== 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=Debqhd1KkXYkBU83fGVykCcugVwbCT/5D+O9otxBzPI=; fh=waCo463KK/RPn5XMJMOOqmdDlsjWfqQaOVVDQpLbHvU=; b=AnuHIQK6TPdjM02suBAL4VlBYacYR+glOKQMKYwtVuFurkgKQ/m1x98bT9BoQ7XK84 svSpc4Yd/tQQrE+bzAybq7QVE1XQtjzVDA+EVj6rsm6oXw3AJ51YMYArg0Wu4/KIoibw Ehn7W6DNK5lp1m5r7WrGOwEOo7r+DTzWBW9RXHKtok8rBYZT9gyUnFH3ln+DjVWBE+kJ TWfquE3ZUIfUHpH46yOwp+b1F+mAZ7mg+GceFsJVZzKnsPrOkKxyKw5v5G2UUqQ6DoT8 LWj7N5ZgB6Zeoi5TSHYpve32dXsoi6jlXDnzWJsSmk+mF1Z7CG4a9hpU6ceRWDYkOXbP etNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o+IvfVkz; 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 k10-20020a05612202ca00b004962b536737si387332vki.66.2023.09.15.12.00.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Sep 2023 12:00:38 -0700 (PDT) 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=o+IvfVkz; 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 1qhE39-0005l0-QR; Fri, 15 Sep 2023 15:00:19 -0400 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 1qhE36-0005kW-Kv for qemu-devel@nongnu.org; Fri, 15 Sep 2023 15:00:16 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhE34-0007TT-QW for qemu-devel@nongnu.org; Fri, 15 Sep 2023 15:00:16 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-52c9be5e6f0so2828572a12.1 for ; Fri, 15 Sep 2023 12:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694804412; x=1695409212; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Debqhd1KkXYkBU83fGVykCcugVwbCT/5D+O9otxBzPI=; b=o+IvfVkz92mStd2BWYBBWV3ME+WuYkjRybnrCgFzjsaGxbtk2yTG7YAXCcOJ6ks3ul Idg08zHtOKEdVtL8bXrIFkRD3opQnHUnRd27nl7aToi+HnuSm3SngukW5O7ag3NYUaXH jcgQE7tqeNvgse+85hWHpJOzoAIL4YV1MoNab+tD4Z4Fzm1NRadiboBrz7OIkAc6rh1j 8cgJ4eb30doj5y9m+7sWV1Lt8iWoIKg2dXfdGeI+CLo0OV2+0xANTGKExkECIF+hPnOz cMervRhbeqlO8Ggax6dsB8fEI0lNQJkTbI+IQ9psewVhX+Tr5lBznC0fmE6NveauVP6/ zLlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694804412; x=1695409212; 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=Debqhd1KkXYkBU83fGVykCcugVwbCT/5D+O9otxBzPI=; b=w2NWFOx0d19z7ye4qyAqj1NQy+ZL7EsJ5C+56lK4sOXYXadcKkuld6/C1M3HmjvPO8 te23Bl+cTWefU2XCVuPNt9AsgiiMjLpORxbEWa1T3ZgdlFjywsZumVfysyLxv8bVEYcQ hzUvjA00FpHbF7nLAM9MGnNynaCtEfuZP8wmtre3DdlaM0Cjv9Crt3fkljSyKpf/V7Lw Lmea1JsiYvaBSvcU6kCqjqAh+09FGEgB+dwOKW6qZ27/TBNuW5ePhakpmtedct2DESDo 00bPoKsT+kzjp7UYQcla4/zGydfv5e7PUf0cFfmHOYZieFNmQnHEy8pgyRWunQbvzYOH yuvQ== X-Gm-Message-State: AOJu0Ywbvy5dbZclXnGmOG3J2CdBax+oyQ49sA7jAryWYDEDMBpcIQbt qdfqUpPODE5MqVYK91eQDVHFr7FHhBxEOomngu0= X-Received: by 2002:a17:906:51cc:b0:99e:1358:ffdf with SMTP id v12-20020a17090651cc00b0099e1358ffdfmr1851110ejk.72.1694804412476; Fri, 15 Sep 2023 12:00:12 -0700 (PDT) Received: from m1x-phil.lan (6lp61-h01-176-171-209-234.dsl.sta.abo.bbox.fr. [176.171.209.234]) by smtp.gmail.com with ESMTPSA id rp9-20020a170906d96900b0099e05fb8f95sm2760571ejb.137.2023.09.15.12.00.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 15 Sep 2023 12:00:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Fabiano Rosas , Marcelo Tosatti , Claudio Fontana , Eduardo Habkost , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , kvm@vger.kernel.org, Yanan Wang , Paolo Bonzini , Marcel Apfelbaum Subject: [PATCH 0/5] accel: Restrict tcg_exec_[un]realizefn() to TCG Date: Fri, 15 Sep 2023 21:00:03 +0200 Message-ID: <20230915190009.68404-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=philmd@linaro.org; helo=mail-ed1-x534.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 - Add missing accel_cpu_unrealize() - Add AccelClass::[un]realize_cpu handlers - Use tcg_exec_[un]realizefn as AccelClass handlers Philippe Mathieu-Daudé (5): accel: Rename accel_cpu_realizefn() -> accel_cpu_realize() accel: Introduce accel_cpu_unrealize() stub accel: Declare AccelClass::[un]realize_cpu() handlers accel/tcg: Have tcg_exec_realizefn() return a boolean accel/tcg: Restrict tcg_exec_[un]realizefn() to TCG accel/tcg/internal.h | 3 +++ include/exec/cpu-all.h | 2 -- include/qemu/accel.h | 12 ++++++++++-- accel/accel-common.c | 27 ++++++++++++++++++++++++--- accel/tcg/cpu-exec.c | 4 +++- accel/tcg/tcg-all.c | 2 ++ cpu.c | 13 +++---------- target/i386/kvm/kvm-cpu.c | 2 +- 8 files changed, 46 insertions(+), 19 deletions(-)