From patchwork Fri Apr 4 03:20:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 878194 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp3585167wrs; Thu, 3 Apr 2025 20:21:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVIy1ZEI6Lm3rYgoTpR9TfBfrE5Q5ZH0owU83EAnBrfpAmObWGyrge1qDgF2v/cqHIkfRx+2Q==@linaro.org X-Google-Smtp-Source: AGHT+IGL1av+Wl5DCUOnZhlmEE8EbJEfbzAG9rJXULOtq0VboQKGVytekvqYSXVmEhOOoYbo6yhy X-Received: by 2002:a05:620a:280d:b0:7c5:5e9f:eb2d with SMTP id af79cd13be357-7c775ad8646mr164530185a.44.1743736899296; Thu, 03 Apr 2025 20:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743736899; cv=none; d=google.com; s=arc-20240605; b=Lv3ej1RVZnwI1U2FA6E4DKOf1s9eOTJYR2L6NzJbbIe97veV6CO54dcnAbEuNIpHKk Nu5yfq4ty9MRX+4ZmaGswTyM67F2LuZdVF9OMDuT16CcLC+TCJ96NUb1aFklxt1tyII7 XFev3ICV0gCBIkTUu9Z1y8rjOgPqCByijhM9uaJ/MDDr46eskrsJ7G1hcYHl4GlDw+bf 4+fQi8XJMToW2qjY8lmzsAwPZFqNW9e9zSBT21rk0wpODbqQLvy2FeDPDpVATlParkXu Lci6kpP+8CiOWU4sRPV0825B157fQunMA8JyCc4ESI23I+rPdluKRNbg3l9MYUsNxaCr 3l7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=yzLkzx/c5x8giPX3f5sJFHV+lc5v+GH1cpH1SFX12t0=; fh=pzwAHymLQayTWUezbuGOjbi0uMe4R8h0t75h7FfmkAg=; b=lYnOj2mbD5pa6r4StN1TfoO1a5PbfPaCBGBns6Ktx5I/2noEoYDS1ase4CJd6b9CNR 4XEqqdpznPbRU6s0urjoIWqqzUtJZ/G9/v1vXDYztrkHwHCMVvMwh9BwnYLMxLDxF2ie xnH3FrZAo2xLnDFGy9mRCdxoiV2qoGTFM8c9g5i1zIRhgppA68bWj1okRsZFiZF2TwlE mCKkDvxQHqIeYR9LFxESAVnlhf/zC2imfd1gPcgrzujuZ+rdP9Hr6UQ7CYP23gLfgv5t JptHkh1V7avalr3qUF2gIavhZgC6KsqUsEGWiFgUfWOLsHE3qx1N37/Xga4bs+n/Zmnx CqiQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YlfYVXqs; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c76ea9000esi229167085a.388.2025.04.03.20.21.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Apr 2025 20:21:39 -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=YlfYVXqs; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0Xbr-0004Uj-Ek; Thu, 03 Apr 2025 23:20:47 -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 1u0Xbp-0004UC-G7 for qemu-devel@nongnu.org; Thu, 03 Apr 2025 23:20:45 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0Xbm-0002Ji-ND for qemu-devel@nongnu.org; Thu, 03 Apr 2025 23:20:45 -0400 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-af51596da56so1448180a12.0 for ; Thu, 03 Apr 2025 20:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743736840; x=1744341640; 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=yzLkzx/c5x8giPX3f5sJFHV+lc5v+GH1cpH1SFX12t0=; b=YlfYVXqs+8ro+CJyb3oKJdoNnuxflFLBVe4yEQN/CCaHasCWXmCOp+FGRAa9izRoqA fRHHFthA/78ipRjK5dIU3UfggjomrZ7+v46ysbgGtQlHnLNv1VBitJK8FbYJhX+Gv6bm y38+dKLbl47WbxR4UiGR6AogMEfrdpmVQ82BdAeeBO62Yn6cfY5FnHzuPPWH1LWyR1br 9vm1+Qf5/XIIwdPB8ieoc0eNL40bbkO/rdYd7HzcPn6ijBmD6Yad5WUyiU+TDucAe+Va I+BeWv8alPD1mayKiZ4lPFXEe+Wat2Mdtk/pmCjzVBUcwv99HHknH3vf7lJN8AKXnL31 0XpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743736840; x=1744341640; 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=yzLkzx/c5x8giPX3f5sJFHV+lc5v+GH1cpH1SFX12t0=; b=jODt2HX6/VI//WSUAno2CodRwjPbSmsMNhLWHs9EkKFtqXmtl14egSLAXsnhK/XRoo 5GW5wHdRBl/+rL6BjU14FoGMnhtLm5QFrdaU8xsw1dEOsZX1rORtuHT4O63fCAl5E+Cq YgZ4vuUGPkNPeQrC0s9AViVP+5Qdr0h1++TIMuGXG3L0/3dqHCTDYw1/+9ZXDKb/T70Z 0UGBScYXPGmpGV2uxHw2qbiGzTGOFpR2hMZPdK4DRSpTwkReKCaVULtZ46NAdelVs5Jh QZ75NA4wHdjKih/rJvu7NpgFT6tB8zk7kCi2cbuAiXkgWGdaNw8sy4KVnWn5CnA6vCfn 9xbQ== X-Gm-Message-State: AOJu0YwxZkXyMXEZoaV4F3Tt/2rfQ3zY7TFnHjK73NL/0A2j3kBPlTda CaBpD81dZ3xpqDkAhXARHWHQUkKqfdcO/43/75+efVVyF3ahVEwLHuajC5JAE0S7zCPV6tK2C29 G X-Gm-Gg: ASbGnctkiGNutBMzrQOUpeli7wB9uoEyA0aZNSGAPtHSLKLa8xzRL3IQn5JB/IPLMM+ lEJZe2dPJHxATPcemp2uP7KE8uzlTxogFT7pdo74HqpPZoNwMmlICeXM8QiJaTCHBdamGFWkDqq bveVLB+QllYCxoovusTHgOKJo/qdf1u8KKZw43YIWXWBhzg4v9jd8NVTtdE0imkQ/HdTiEcKcH/ bzMkx0Vn/kE+XWObY9SyrMuDFaxxodhor4WQlltwVacmtoTDIFbRA8AmtHrIrHoXznJaUdMRJsa Glj5PKER3KLyOfln4nNKvP8hVqLuHCK/D8R6rMcCkqYn X-Received: by 2002:a17:902:ec92:b0:220:f140:f7be with SMTP id d9443c01a7336-22a8a8ceda8mr20401535ad.41.1743736839992; Thu, 03 Apr 2025 20:20:39 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-229785ad943sm22325945ad.23.2025.04.03.20.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Apr 2025 20:20:39 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Mahmoud Mandour , philmd@linaro.org, Pierrick Bouvier , Alexandre Iooss Subject: [PATCH 0/2] fix deadlock with plugins reset/uninstall Date: Thu, 3 Apr 2025 20:20:25 -0700 Message-Id: <20250404032027.430575-1-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52a.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 We first fix the issue reported in [1]. We then add a test plugin making sure we don't regress in the future. [1] https://gitlab.com/qemu-project/qemu/-/issues/2901 Pierrick Bouvier (2): plugins/loader: fix deadlock when resetting/uninstalling a plugin tests/tcg/plugins: add plugin to test reset and uninstall plugins/loader.c | 2 +- tests/tcg/plugins/reset.c | 73 +++++++++++++++++++++++++++++++++++ tests/tcg/plugins/meson.build | 2 +- 3 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 tests/tcg/plugins/reset.c