From patchwork Thu Jun 6 12:40:07 2024 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: 802000 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp277697wro; Thu, 6 Jun 2024 05:41:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTbqYVJbx0GeNx+KyxEyKHgNQx0NmMydHQtIEllHAAxoWHSzoIWgTF6NtmNqZgtfK2CggcCD++OgfM3bl3mg/U X-Google-Smtp-Source: AGHT+IF4Guxb+5j9siFvATUZBlOzZsoh9TyU1PN9Fz/DXXgsrZe4KiPwkOQHfj2FZMbhjqKfSzrE X-Received: by 2002:a05:620a:957:b0:793:b91:2dbe with SMTP id af79cd13be357-79523d75a9fmr558757285a.40.1717677669222; Thu, 06 Jun 2024 05:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717677669; cv=none; d=google.com; s=arc-20160816; b=M1AGg+qflxUvpOsnLzSAw/xepyM+JHXvdWTOzWaobDW8nu+xXB0/qx1ucBUapqXNwQ 8l1mGzCrvbVE8hoiIBIM7E6Ixr0DaR83NCTX5klVtu0/fBtdGl2D5YGPlFzkNdUhVHOb HKwQMbf9di7z6/pzVEMXMkuLpW39i6usIzVd/8ixrXq9Kd/PNnZzMWI4suTujrJNM2uv zd0LSbWJ7SK+Py9eMUcZcQp2uRGT9E88vzYpthzEVjrNgkAaJo16x5/U5/GYbRlf0vHQ 2HTcbSLG7U9oDiIMHiwdVf8h+3dac5vokhCx2jJtaLHqrXwVh07VAnC1lOfwzmu1mBFK doPA== 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=Z8LGSYhX0LEADFn6su9hu7e+2gd58DQ39HHcU76gc84=; fh=M9sf6J8EEPZfAH3nsXnBMU17qdsDd/zzle6ruDzcvDU=; b=cByHW7hERHSClCM1TWkMCy759we2/9FQFbfkbNQyPGai92Zhi3nKBAq6iW41vlO+oW MPTEOyKz72OROeKcBeYke2hgV92xZfUF7vY1B596cOdycH1rK+0cdUMZx0JB8IvSFSHS ZTt8TYoffJo0bbo7R2+lP5ZUnpV8YUEueT3Ne2q29I1x1xEzPupdGEJd+rBzRbNU5H7p IM2v4XErJ39u5MCHcPX7ouo0BDoi56pN4OOe+U9bRLqz7Zq9YB0tnSNE+/ROYIjzb+Wi gywsx8qdDyUKRfQAOUTuRReQ0xfyp45uNuK+9yoX4NgDa0R+xD7eEpUa+YdtF2PkfAzE L1Og==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UMUsP/7U"; 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 d75a77b69052e-44038a6fde5si10340871cf.100.2024.06.06.05.41.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Jun 2024 05:41:09 -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="UMUsP/7U"; 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 1sFCPk-000111-SV; Thu, 06 Jun 2024 08:40:21 -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 1sFCPi-0000yK-Es for qemu-devel@nongnu.org; Thu, 06 Jun 2024 08:40:18 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFCPg-0002Ny-My for qemu-devel@nongnu.org; Thu, 06 Jun 2024 08:40:18 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4212b4eea2eso9338875e9.2 for ; Thu, 06 Jun 2024 05:40:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717677614; x=1718282414; 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=Z8LGSYhX0LEADFn6su9hu7e+2gd58DQ39HHcU76gc84=; b=UMUsP/7UeJGd5gjx49ofoHfJZaKpN0SkFy8VdY6+NlNj4jEbqC27pLjLwBDkIu4cGG MoWwfM1qw2qaELwIoIAaOav09oyqPdFIRFfKsx/Y3TfXzRr2KhYHG8c2FtOpU8lAh85R eTPxK5FQB78tHt/CWn+rukXa3Dx+2nWvKiewpjRnVLIjighS+2jBhzqjPV4zN0i+KoC8 cPND1jqjGQavKmhddL4oq97XvKI6CJlW78fwOPHdxfghKrpLIHvDFNn6cyDKXwuuipDk DR/jAUU44DIjFCj990ub7wYHwj4tSoqXb6XH/JzOuzJbI4wxOz1uHIdrY0XdfWFsOIZ7 lQAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717677614; x=1718282414; 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=Z8LGSYhX0LEADFn6su9hu7e+2gd58DQ39HHcU76gc84=; b=hBfOzp5uIoz0FtAJYoTBsZIX24vhKawG+SHuSOp03bN6TDUQ4Ex2j+8uSpzXNJrnZN YdbcYBIRrDOBE6AF5HcxQYbFcELXWLGKq8888AN0vMpmHnxIQbs8nY6AscPlXGbM3quR DVIQQw73p9uPwUwPPPda/RXk4WXs4hCbrAUxibJcC4nQU1OxLOYzLgC9KGupErSbELQI 00BxhDeufpk1qxkM+fjVF6VjU4Ykzs7hQ8CfA4jLu6zP64OJGTG/SKB/v6wxV3vLG1WN QmOY6rKOUrZpVEOtKUlCgeRUB5svo6oZ28nUN5nEqqRhXu6RDFlmg+909qCJa/7J0zbR wgfw== X-Gm-Message-State: AOJu0YxSAEiUuUpUr4vGNTep8Vxj7NlFYq+ACbFmc94tNALqxbZj/ahm VOL7WWBNvOIp5gVqTIBOae1trVANN7PE8wsIfcZgRWZgd565L0N4jqo7OwEBcSLnQZPyhfzlbSL wwDg= X-Received: by 2002:a05:600c:4fd6:b0:420:29dd:84d0 with SMTP id 5b1f17b1804b1-42156351b60mr46424205e9.29.1717677614327; Thu, 06 Jun 2024 05:40:14 -0700 (PDT) Received: from localhost.localdomain (94.red-88-29-105.staticip.rima-tde.net. [88.29.105.94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215c19d589sm20593305e9.4.2024.06.06.05.40.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 06 Jun 2024 05:40:13 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Marcel Apfelbaum , Eduardo Habkost , Pierrick Bouvier , Yanan Wang , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mahmoud Mandour Subject: [PATCH 0/3] plugins: Few debugging cleanups Date: Thu, 6 Jun 2024 14:40:07 +0200 Message-ID: <20240606124010.2460-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::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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, T_SCC_BODY_TEXT_LINE=-0.01 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 - Assert cpu_index is assigned in INIT/EXIT hooks - Free cpu->plugin_state - Restrict qemu_plugin_vcpu_init__async() to plugins/ Philippe Mathieu-Daudé (3): plugins: Ensure vCPU index is assigned in init/exit hooks plugins: Free CPUPluginState before destroying vCPU state accel/tcg: Move qemu_plugin_vcpu_init__async() to plugins/ include/qemu/plugin.h | 3 +++ hw/core/cpu-common.c | 14 ++++++-------- plugins/core.c | 10 +++++++++- 3 files changed, 18 insertions(+), 9 deletions(-)