Message ID | 20230126112250.2584701-36-alex.bennee@linaro.org |
---|---|
State | Accepted |
Commit | f45549233f67e5fd3038d2c886ef7de876c8ff01 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp188993pvb; Thu, 26 Jan 2023 03:32:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXsp/42FuFN1n9vPjaNsHqTNUVYLL9ToULzrjuAd+JuUuhxBYdJYzEbV6oFFFaFV14t2/Izf X-Received: by 2002:ac8:4801:0:b0:3b5:2a7:b4f5 with SMTP id g1-20020ac84801000000b003b502a7b4f5mr41033320qtq.10.1674732761541; Thu, 26 Jan 2023 03:32:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674732761; cv=none; d=google.com; s=arc-20160816; b=mVVe5Bj3wPce2V1dFp5dX9v2m869zIJt9EU8yrNL7SHaLP8JFgUhLWg/5FTDtpEloF qtGvMsCWVC8yqyLXfYCSlGU8yjGNuxYrinYFXNMfSWkn0L3sADSt8Nf6hYNCkQShy8uP 9QQXHJ+yXjWiDoLzPdqpvrqpUwpzfDDlV5xeMNzeQcPMO0wqMzQR/tGAwhOLN7lZ0Tys d0iCSAQDzu+43+fglkNKfzlysbZYD+YrmnsIjKGKO6XQZkZfoNtNwR0xjwHvftPSeBTj hhLu1oHAH2iPf3DlVorIHHt+pphnjnrV3SnCyZp6iAvy41PJD9uZ9SOaagHbQoYVDOUB 7btg== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KAedoRL+04dN+eFrsiPk6/tHLkIJLlCMSJ8k6o72Dag=; b=Obhp9YvqvvxOutuxwNsjnTT9gBsSCIz9UVBe2rX4yjSBM4ACaYG0HLcxj6NQ1XWVXi EZoOSSbut0B7+onJ0AP6TlGiKNf/MUcSZ8SNNwjLD/S9S5BMl20C+aOtFOS+z4SL80GL PshF9w8Lityi8Pw17K/ab3XjPBFS0UBlRKXtCZreAw0F7ytzgqwmP4PQIQvZDeaNUkTo BiIfVB7cW22/bV2orpzFAJeGnLxX0pgcQD9Pexp2qfTJF0nKmg1WaH5WTWw8WD6rKYCR HrBTY6cDKg5vD5ozMDToLh+HvnflPzweKJ0ZHOuSu/C+xCoS/kokJJFKEoVsPY6NmqEt qmyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EXLjZW9+; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d12-20020ac85d8c000000b003a816490ad8si570260qtx.240.2023.01.26.03.32.41 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Jan 2023 03:32:41 -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=EXLjZW9+; 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 <qemu-devel-bounces@nongnu.org>) id 1pL0UE-000570-1d; Thu, 26 Jan 2023 06:32:10 -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 <alex.bennee@linaro.org>) id 1pL0U6-0004XF-CM for qemu-devel@nongnu.org; Thu, 26 Jan 2023 06:32:04 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1pL0U3-0007nk-LD for qemu-devel@nongnu.org; Thu, 26 Jan 2023 06:32:01 -0500 Received: by mail-wr1-x42f.google.com with SMTP id z5so1450225wrt.6 for <qemu-devel@nongnu.org>; Thu, 26 Jan 2023 03:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KAedoRL+04dN+eFrsiPk6/tHLkIJLlCMSJ8k6o72Dag=; b=EXLjZW9+gkxubutLdQDK10aAO4mCkE4phdzQ2QQXzoucZtrF5O5LJaTSdjJSZWO4m+ gcKSZ+5YwJag+sD4wFWGPrl2qNN3OuMPOsH427K6l8PxnaJLMgg3J6UVGqhDZUI0jcPC LeUO8cd63DspAf+EH01UCPCH0MRC30lBWZS2iR3/Be32wUlv0ZfH70uWojI6EN+xTSnh gNa1BoKDBE4wfvfhtPHAO/ImnivKd6V6PfdDyFdfE8jHe/bj0L7hXUAK30vSSkuVKkY1 QOzEsZz63iPd0oEYyK7PrLvMWizT8kIBz9mdqv7vVgM8XzS6NFH36bUUblA+rnyto89N gcCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KAedoRL+04dN+eFrsiPk6/tHLkIJLlCMSJ8k6o72Dag=; b=ZGdKC2ftJa5odyHpzIks5uUjLSNBohoosnUZdOYs1WmcTmAEnLSaayHMbug1ZtGbKO O/5839/0AjchE5pJgecOKQuOqhdXSUHVvOS+elNFO/7EVXp2T18sK3+dKtg1vdmpcFaH gMasMxPTSre1t0O1/VzrbZTDNLZ330h9mzuBHX9u4WOrutsEhQgMOO/FBbLo7eHxa0uj fZvaObdwJO3YNRwwBzzlZagTx8AAWNCWvTydK4FwAI3iMv3R6BWVVGzO7CSzJmrwP1bR BDFEFlCa/ct7p1fMy9tbR6NCCj0J8gUBc6v4a7N8j8M2vfJmzqffxqPjpa7ZZ1axBq0f T64A== X-Gm-Message-State: AFqh2kpYB9zkTEWN3F1uk4uXZHulRPyR5y49kYJ8zz8OKQPgq7IbKB4q Zbphj6AOfVC0UIeaG82sZGhNIQ== X-Received: by 2002:a5d:5a85:0:b0:2bd:f5df:2689 with SMTP id bp5-20020a5d5a85000000b002bdf5df2689mr33546123wrb.47.1674732718211; Thu, 26 Jan 2023 03:31:58 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id t4-20020a05600001c400b002bdcce37d31sm1207327wrx.99.2023.01.26.03.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 03:31:56 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 5D3B11FFD0; Thu, 26 Jan 2023 11:23:00 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= <philmd@linaro.org>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com> Subject: [PULL 35/35] plugins: Iterate on cb_lists in qemu_plugin_user_exit Date: Thu, 26 Jan 2023 11:22:50 +0000 Message-Id: <20230126112250.2584701-36-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230126112250.2584701-1-alex.bennee@linaro.org> References: <20230126112250.2584701-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42f.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/35] scripts/ci: update gitlab-runner playbook to use latest runner
|
expand
|
diff --git a/plugins/core.c b/plugins/core.c index 728bacef95..e04ffa1ba4 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -514,9 +514,10 @@ void qemu_plugin_user_exit(void) /* un-register all callbacks except the final AT_EXIT one */ for (ev = 0; ev < QEMU_PLUGIN_EV_MAX; ev++) { if (ev != QEMU_PLUGIN_EV_ATEXIT) { - struct qemu_plugin_ctx *ctx; - QTAILQ_FOREACH(ctx, &plugin.ctxs, entry) { - plugin_unregister_cb__locked(ctx, ev); + struct qemu_plugin_cb *cb, *next; + + QLIST_FOREACH_SAFE_RCU(cb, &plugin.cb_lists[ev], entry, next) { + plugin_unregister_cb__locked(cb->ctx, ev); } } }