From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390534; cv=none; d=zohomail.com; s=zohoarc; b=INDeJFFLDypRNmZ+Qoo7qowOBazw0CoYyBYI2gnwC/Zl7Jfo5Dau9sDBW8yGQMb5FWrlBw8AALuOFudwCMaWbAVmP1yRvSw5u2Ee+kMKZTZpzOeIhheUQ0J5eVVqqm1vA+6QlTJQlNLnqvY2rCjYveTp+b7ZLKFhYKUXDYL+JuE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390534; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2JfIRF2rFr3TmpkMzwSurtenlCN5AxfALqStaf+SSlM=; b=gkCXBmmkkPuK4Lu5L2nfDTN7yZ+F8cXp8nRxSmX5Gd+s/RVV/qnDNDkCvrZoE5faFrV64njfggOcJJIjC2sZOzbRJxHXElP3MHs5kAhOuX4aZXc9nLZ10a8NpsMPgOS2cdZY1XWfsR3P568Dwo1ScqB7q1SoH0iwWxGj4r9oXWc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390534349815.4747851675321; Fri, 2 Jan 2026 13:48:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0U-0006lK-Sw; Fri, 02 Jan 2026 16:48:28 -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 1vbmzg-0006fr-Cw for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzc-0000J3-IT for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:36 -0500 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-7b8e49d8b35so15181895b3a.3 for ; Fri, 02 Jan 2026 13:47:31 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390450; x=1767995250; darn=nongnu.org; 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=2JfIRF2rFr3TmpkMzwSurtenlCN5AxfALqStaf+SSlM=; b=BdeEnM7HsHxCHtULg4A0Gr2EG60BsZQ9KSDMlgf9ecIeQBJdvG68HVfKF4fD6KzsKj 6nzyUSZ1V+NdkwEvNpiESG25C9xWdyj0gVTI4OfQWK25sktGS+gw6cNm3n7PdTnNcERq 3tLARKpf0Gm2sUga3HutrMtOW9JNc8ou64egzIzP2WPC0xYoa5A8d7SvYss9YpU6X+Xb 0H3FqJWcKtGSUwuUwIFPPLsQKuBnDlJFu7rwhKwUSIoMJfkwx4W7BzsJO2pBAxiOV6NI ts64ia1kYO2fWFSKE8svADw3POubrc+t6ds6tkF+BSqAppU398JNzWatMB1QjCpLnlyK h6uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390450; x=1767995250; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2JfIRF2rFr3TmpkMzwSurtenlCN5AxfALqStaf+SSlM=; b=oP4PJKbWcF6eL/JPqjNmcRvNd4sQUwU807biY+U4zDSv8BwG9annnEePJimxJAxpVd DIqqrhKlZ3a+SwqKeczEHVoGwvWL/4NYiEl4uStwWKRDTWPJwUsojj5fKgc0cOkSi7GT VXckHdC7AIMjdd8iy3Kpawk2NyYcLAQru6YXBcLnp1uYiK4fGVy4s2ueyhiOlapPP4nG MefX041EEtnXbRU81Hed9RAzdyqz0aWVZE68qBAAkrotUvCQNzAnJwgslu75HVYIONq2 tWX63APwpTbTirRLltzejfIuFqh3VUp4yc4x2oN3YuKnMomkEJBWz5gF/DXgAuROZ3En f9Rg== X-Gm-Message-State: AOJu0YzJkaNLDXyQKbGibGxKg7dTiEGy5BjsSLM4iZiTWtvSVzGEQckB 4fEH9OQymyiNQrdfv/QMfrhtyqUrp2sjS1sHe8d5deY6F0hpHj8bi2/3/Z+Ya89eDHMzyC8Ggm4 Zpo/i X-Gm-Gg: AY/fxX721UMYZshzK+BSGOXPwi3zR2eizwFaugnHrVDNbUkicDHk+TF6I6snz5J6MdA xr3rDboYSiK77k85zbbwvbJPV5cuimJNKe+wwOtt0Ka4bjshi3iTfT460gBROmAfYImqRGZh9B/ zZ6Sf++L7L7OEHr3SLLZIpiEZhl3anQgXhD7pOw0Y6d0dJ8Som8BXrFFq5ZEACN0bymLm6ZoELJ 8rQjOzJGkw3e3fcIz5t5+NGB0s6UwogM33A6Ez2XzlZ66y7v9Tt/VHaLMBDFjxDm0fahp5OVA9b VrDV7B0t8bGgtL8uFNTkOP26sI0DhFZSoKFjHPAVXFO3bwZTerF3vv2+CCXz6EQtqT9tYgNCLON CETos3L59INLKsHnZfBzphh5S/5wDxGePhQM9RxRfb4qN1gjQiZops1dlrUopNT/1y7Ri83g9RS 9khbIv+sN6QOpSseV3ok7gsi6PPkvpNbH8TrSalL5u+9Bt9VMSC0QmolU7OUVJ91Bmo2lP2xar+ 9I= X-Google-Smtp-Source: AGHT+IExRCcBYwKbvL0R7qsPYqt6f5uYYRu/Y8uVPCotLsCOUspEVTGDNVsV+1sA0sRDFRvccGG+RA== X-Received: by 2002:a05:6a20:e290:b0:364:13c3:3dd0 with SMTP id adf61e73a8af0-376a8eb6c35mr44162513637.36.1767390450277; Fri, 02 Jan 2026 13:47:30 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 01/11] plugins: move win32_linker.c file to plugins directory Date: Fri, 2 Jan 2026 13:47:14 -0800 Message-ID: <20260102214724.4128196-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x430.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390537220158501 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson --- {contrib/plugins =3D> plugins}/win32_linker.c | 0 contrib/plugins/meson.build | 2 +- tests/tcg/plugins/meson.build | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {contrib/plugins =3D> plugins}/win32_linker.c (100%) diff --git a/contrib/plugins/win32_linker.c b/plugins/win32_linker.c similarity index 100% rename from contrib/plugins/win32_linker.c rename to plugins/win32_linker.c diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build index eb944b5159a..6f72b2ce0c9 100644 --- a/contrib/plugins/meson.build +++ b/contrib/plugins/meson.build @@ -10,7 +10,7 @@ t =3D [] if get_option('plugins') foreach i : contrib_plugins if host_os =3D=3D 'windows' - t +=3D shared_module(i, files(i + '.c') + 'win32_linker.c', + t +=3D shared_module(i, files(i + '.c') + '../../plugins/win32_linke= r.c', include_directories: '../../include/qemu', link_depends: [win32_qemu_plugin_api_lib], link_args: win32_qemu_plugin_api_link_flags, diff --git a/tests/tcg/plugins/meson.build b/tests/tcg/plugins/meson.build index 561584159eb..a6e78438510 100644 --- a/tests/tcg/plugins/meson.build +++ b/tests/tcg/plugins/meson.build @@ -2,7 +2,7 @@ t =3D [] if get_option('plugins') foreach i : ['bb', 'discons', 'empty', 'inline', 'insn', 'mem', 'reset',= 'syscall', 'patch'] if host_os =3D=3D 'windows' - t +=3D shared_module(i, files(i + '.c') + '../../../contrib/plugins/= win32_linker.c', + t +=3D shared_module(i, files(i + '.c') + '../../../plugins/win32_li= nker.c', include_directories: '../../../include/qemu', link_depends: [win32_qemu_plugin_api_lib], link_args: win32_qemu_plugin_api_link_flags, --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390644; cv=none; d=zohomail.com; s=zohoarc; b=No2TuNsBI7pvx9zoa4niZ3860FTl721/SmD4vuZRFDFYJn4BFaRc1iXVLN2iEKXTftgcsrYixZRlc9Bmo9Vc/QD1P9EbaWsrn8CAn5SzP/l81pco6GI9s4m0tZYOkU5moiSsJkbuF4pHWoEWbSdVcB21P5QgMtIhAidV14mnprA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390644; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=FAxt9eRCBAnOw0tS+03oIZgAiM6wZWJgVfag7QKOmwk=; b=CQjjvir1pfGFk8SurWbrpUPVPF6gI1ze1qAnb2iU2N6m/YZVbt54psmM8HJiD95vUMtPl3iJbLCZIWdDXNnQbq4paIVlonKqVEQV3YEPXtxwTsemx+HTjsdofN+zNrsak7pE3hi/T99via9QRy/HicfqzzLWvpb5HAMHU8bln2E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390644871877.4076987160208; Fri, 2 Jan 2026 13:50:44 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0m-0006ps-5Q; Fri, 02 Jan 2026 16:48:44 -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 1vbmzg-0006fs-Lq for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmze-0000JG-1U for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:36 -0500 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-34c718c5481so11847628a91.3 for ; Fri, 02 Jan 2026 13:47:33 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390452; x=1767995252; darn=nongnu.org; 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=FAxt9eRCBAnOw0tS+03oIZgAiM6wZWJgVfag7QKOmwk=; b=dxjUAZsBCfrzZoNiy855Lg5LOLPvUU3XiRMSHl2TUFBFJVHnb7JJQ+YUQZJpV7rpeP spvR2SFb0xg25yQQ6eSART/doqpyHqjZ9vHZg4xFsRD6Nh0e5RLzIkAd5Dy6ACcC40i8 ewitxjix6+mQoN7BcHoPcDGIop+tvIukR+vPXdWRWs+jV75daUNBmGMhRKWhz4fHD2mc WuoKwgGtqqFbPtOwQ25mvP1OQEJ6kga0mV17upLDKKXy2ikUlAQOV3ooRCgOmFpwK5zl xUusyXXMVmqeR+zYJ0aEIeu6rdkW3R6esQGK0f5i291VBtzTT7KN9oyzai2OszvBsX0o 3Ypw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390452; x=1767995252; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=FAxt9eRCBAnOw0tS+03oIZgAiM6wZWJgVfag7QKOmwk=; b=SeOKDI2GD9ZjT8mKs/DlmkXJ5aoO2z2thCDYm0ZQUqsz86lhygun6GilRIVRkID0Ot 0IlH5jXTISWMe47/j0ZlKkUCZyNqyXFFNm4OdTM+hVNnqdyOMmhdeAz8eTnoPggBA1e7 cns5z+kFl/sU05Pjw5Fdxqtjl0S5lGz6oHwCDT/bueiX4l+O//cUqy5L6hwO+9Kdq8B/ KymcWf/jdoj31bOc4pedH9uFli1/BsTGxTyBYu4a6vv24vvtgH80eX/jTSs21hJl3aPS 99lO/oIjR7Jfsey1aTuQYvZJe7EWoaCGMFM8BhvzXP4s8fgJ0B9Z7TeMyGzZx32a0+UB RsQQ== X-Gm-Message-State: AOJu0YxwQEw4UdhbKvoegav8bxvIA/h4sysifNUrQ9IXhXfyYcW+tY5R vsC/mvddoInqXXwDywjNBfS/yGHa2jj2RLqbvc4JGffU38z6wW8Q6w5C7mwBN0mX3Dser/DL0A1 O0PI0 X-Gm-Gg: AY/fxX55M9WmbSkdCbUaLUO/GB/U+9e1oNzxbkzaXd61cZdeXYx5dkB2kNWC4O1QmGA AvTBccDw4PtWkZl7gLZLWGFVqR79LMWuzIr6qD/SAcCVZsCFNj3lvAzKr63dk397x8gN5AaFTf6 vIKxnnnA1AZGR1p2Xcoey9aaNsapiI6x/gD/PEWFk8J9cngN+kuv3mAZ642mL9L34VsV5naL5KD 66DwNSq5w0UyzyeVGRFzI5W4GMa2OZDI7tkK7h/Fsi+h1Ccj/K+xszBPOOZFPyIMLeVElwtgj4q 8mlJiyJkYhpkiEAdRaplstsdhPmF1yH5H0h/zbapdHwxyOBmYRAUruI2zpemVJcXoFGRkJqPO3g caJj5ynthJxsx0lxhU0b6D46GenRA31HzH65leDxQvzCZIDTathUdy/NrEaSW2svJKPy0zP4uYG o1/r0NwyDHA1pMqxuKVGiShnNvOuvA7x4FHIXTAKl5c6OO068WjAmk/kDzDPax54oE X-Google-Smtp-Source: AGHT+IFb5x5I/sKOn8Gj/HzF2WrqAvEqu7u8OyILPKEpVhhAGcQso0NGdUGvBcGCj05e9JGeaiuLxg== X-Received: by 2002:a17:90b:46:b0:349:3fe8:e7de with SMTP id 98e67ed59e1d1-34e921e64efmr35137613a91.28.1767390451938; Fri, 02 Jan 2026 13:47:31 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 02/11] plugins: factorize plugin dependencies and library details Date: Fri, 2 Jan 2026 13:47:15 -0800 Message-ID: <20260102214724.4128196-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1030.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390646866158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier --- meson.build | 2 +- contrib/plugins/meson.build | 13 ++----------- plugins/meson.build | 15 ++++++++++++++- tests/tcg/plugins/meson.build | 13 ++----------- 4 files changed, 19 insertions(+), 24 deletions(-) diff --git a/meson.build b/meson.build index db87358d62d..3d6c6c702d0 100644 --- a/meson.build +++ b/meson.build @@ -4499,7 +4499,7 @@ if get_option('plugins') if host_os =3D=3D 'windows' # On windows, we want to deliver the qemu_plugin_api.lib file in the q= emu installer, # so that plugin authors can compile against it. - install_data(win32_qemu_plugin_api_lib, install_dir: 'lib') + install_data(win32_qemu_plugin_api, install_dir: 'lib') endif endif =20 diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build index 6f72b2ce0c9..8f9f0257ee5 100644 --- a/contrib/plugins/meson.build +++ b/contrib/plugins/meson.build @@ -9,17 +9,8 @@ endif t =3D [] if get_option('plugins') foreach i : contrib_plugins - if host_os =3D=3D 'windows' - t +=3D shared_module(i, files(i + '.c') + '../../plugins/win32_linke= r.c', - include_directories: '../../include/qemu', - link_depends: [win32_qemu_plugin_api_lib], - link_args: win32_qemu_plugin_api_link_flags, - dependencies: glib) - else - t +=3D shared_module(i, files(i + '.c'), - include_directories: '../../include/qemu', - dependencies: glib) - endif + t +=3D shared_module(i, files(i + '.c'), + dependencies: plugins_deps) endforeach endif if t.length() > 0 diff --git a/plugins/meson.build b/plugins/meson.build index 62c991d87fc..4318e3a1671 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -51,11 +51,24 @@ if host_os =3D=3D 'windows' dlltool_cmd =3D [dlltool, '--input-def', '@INPUT@', '--output-delaylib', '@OUTPUT@', '--dllname', 'qemu.exe= '] endif - win32_qemu_plugin_api_lib =3D configure_file( + win32_qemu_plugin_api =3D configure_file( input: win32_plugin_def, output: 'libqemu_plugin_api.a', command: dlltool_cmd ) + win32_qemu_plugin_api_lib =3D static_library('win32_qemu_plugin_api', + link_depends: win32_qemu_plug= in_api) +endif + +if host_os =3D=3D 'windows' + plugins_deps =3D declare_dependency(sources: [files('win32_linker.c')], + include_directories: '../include/qemu', + link_with: win32_qemu_plugin_api_lib, + link_args: win32_qemu_plugin_api_link_= flags, + dependencies: glib) +else + plugins_deps =3D declare_dependency(include_directories: '../include/qem= u', + dependencies: glib) endif =20 user_ss.add(files('user.c', 'api-user.c')) diff --git a/tests/tcg/plugins/meson.build b/tests/tcg/plugins/meson.build index a6e78438510..c58f2e382ae 100644 --- a/tests/tcg/plugins/meson.build +++ b/tests/tcg/plugins/meson.build @@ -1,17 +1,8 @@ t =3D [] if get_option('plugins') foreach i : ['bb', 'discons', 'empty', 'inline', 'insn', 'mem', 'reset',= 'syscall', 'patch'] - if host_os =3D=3D 'windows' - t +=3D shared_module(i, files(i + '.c') + '../../../plugins/win32_li= nker.c', - include_directories: '../../../include/qemu', - link_depends: [win32_qemu_plugin_api_lib], - link_args: win32_qemu_plugin_api_link_flags, - dependencies: glib) - else - t +=3D shared_module(i, files(i + '.c'), - include_directories: '../../../include/qemu', - dependencies: glib) - endif + t +=3D shared_module(i, files(i + '.c'), + dependencies: plugins_deps) endforeach endif if t.length() > 0 --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390557; cv=none; d=zohomail.com; s=zohoarc; b=Oy7yIwXrTs+H256zmHENkS1i6QChbrs8nXexZTft/M3ROlxw+8T1XOPlWD+Szq7fXbXdd3smR8jxzub0SydOnn75nYSWu5ZxkVpvjfje+vZjcF92Ih71kNYmxmLCdnyU+xDEp2Sq7o9W4+yWWqAk4a+7POuR07ThLEVNeBPvKaM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390557; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gnAdkGiLfpQOWDhRaG+Ezymj+za6GSlpDviqh2IMnE0=; b=dJEuqxNoBJpprHSwsEsI0KCcIampaMoTwXRrNeWDL7EiChu2lXWxGcN7qTc9/z5472fe5oyi+qSXpTJojI/LutcNmxsTNCw6tBXsdrJIJUOygcBzaJlchtvWIOzmhrqrKUA/oDq1rhc3siqhi7UTbQMy20oSTtkL+Snq3Le+gZ8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390557432119.82021678120907; Fri, 2 Jan 2026 13:49:17 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0l-0006pC-J3; Fri, 02 Jan 2026 16:48:43 -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 1vbmzh-0006fu-8s for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzf-0000JJ-4O for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:37 -0500 Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-34e90f7b49cso9816439a91.3 for ; Fri, 02 Jan 2026 13:47:33 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390453; x=1767995253; darn=nongnu.org; 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=gnAdkGiLfpQOWDhRaG+Ezymj+za6GSlpDviqh2IMnE0=; b=lUaHv3RQkestQoMtUooCobHAyQqvsgiK7JpqdBZskwDVwqXiWkIwf+iggy0ZX6l6ev JrzjtwHtOXWlGYC5QEDugEg+iB0gzvoKKBuHeXltAmKDOJRp3wgcT/TL8bfdGEcboYpm /MEd2sYhtBUwYIw2DBdMaIrtVrQ4ytUMVCFOBWhBF9yiIgkWrDp0ldFG2PN8xYrHCe66 eLWKbjpObZTv4Gw8pn0yGpI1fldgwHCpKogabgs+M6KTJ+NfQ0x1ci7ZcvW7bAqbyaYs 6uUgnsE/cB9+ReCH7tL6bxAcLjqyoJpnOR2DZ3xKf9V6wTK4SRXaSY0AYL2eAQWsESvN gU8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390453; x=1767995253; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gnAdkGiLfpQOWDhRaG+Ezymj+za6GSlpDviqh2IMnE0=; b=IdzywAyEBZIBu4LpGMsY0E4yBeCMQqEaJK/4ls3edGXtPlhrrbtfHjXslTosxRDKBM w6VfyxkTZcSy8VPVVVKBLnel0ZrajQd86GgD2BGg6n4RfhNjugrwEotP8m5A1XdCjLuH Piv2fHsJZlXMZQWMaqcyWkwwucS/FIEclWuhSdpDg7jLBdL1wMN65zABW7yG96yb4g/W muQPMWElAqvS5qZGwe5rJR/VfCMkoW82uiqFxWxALgkjQ/aC4FkK00ylyDFgw2sv2Kpq vmyMOt5NWKUUvpsb+X2n+WcesYeG4ywZuX7Fvnqrydm/Mer7C/0LXZLzEhwc0XQZhxw7 5J3g== X-Gm-Message-State: AOJu0Yw03wbPVxG+AI8SuCn+Dx5YMbsVUUjKlvoPRFnijljHj2HZyLLB GVx+pOQ0OQ3sVEhDgSwnVPBcdsRcWPc0RO9EOpXjGUj3PIxUCnGDSPFguiGe/688HkcHU3QM8mt 4qaCe X-Gm-Gg: AY/fxX7QQLCUZeMcKG4lMDINCv0GVKSJsFss1J+fOxwuZX/H9TXc6cqLU5LDBItQwj4 wRJV/x/bPY4HvCTKcp6M1de5ME/mGcQDXgrNp5m4NN1fmXZP9QE1ShjSFy/IK9aHcvgZgQsK73e bFTGQ3Q30N324I8ibZ8fbdXY8KXg4A/DTCqe3XreskKXBrNzLrjcOqNyEjMWlZ/Y70uziEjo2cA 3TzIP0WhF54Rnx52VVIeI5rlGCGnF46aTfwYkabYcniG8bKUUlwEhHbFZ6IBBg6bAio5KHS7MD9 VBAPxh3Ktqvq0JoOXWjZTCKhi+/rVxo9m6i2QYfEtAg0yzmuyVfLBp6qLq3sxeZpg0dYhpPpX2T 0b3FNlU+d0WdDHdBbSVddpnnCFj49OlWRPRZ+2U0eg892J1IlX/dSxTqMhvhsQUZlx4e151OMj5 b8ocTVw86IM4ER5TwQEKTnOQ+xoyhyL33t9+zl5URVP0d7rxej9byAWB7t8FLnrbdF X-Google-Smtp-Source: AGHT+IEN8L2XuOjcoyS7tXwkOQIatQi+evPwGqJDZkRO+ph6nGmm68q/cXCA3t9I949T2Fsr8AM0Cw== X-Received: by 2002:a17:90b:56d0:b0:34a:8c77:d37b with SMTP id 98e67ed59e1d1-34e92144e4emr36517270a91.16.1767390452656; Fri, 02 Jan 2026 13:47:32 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 03/11] plugins: use complete filename for defining plugins sources Date: Fri, 2 Jan 2026 13:47:16 -0800 Message-ID: <20260102214724.4128196-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1031.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390558728158500 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis --- contrib/plugins/meson.build | 12 ++++++------ tests/tcg/plugins/meson.build | 9 ++++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build index 8f9f0257ee5..3d2d7862e0c 100644 --- a/contrib/plugins/meson.build +++ b/contrib/plugins/meson.build @@ -1,16 +1,16 @@ -contrib_plugins =3D ['bbv', 'cache', 'cflow', 'drcov', 'execlog', 'hotbloc= ks', - 'hotpages', 'howvec', 'hwprofile', 'ips', 'stoptrigger', - 'traps', 'uftrace'] +contrib_plugins =3D ['bbv.c', 'cache.c', 'cflow.c', 'drcov.c', 'execlog.c', + 'hotblocks.c', 'hotpages.c', 'howvec.c', 'hwprofile.c', + 'ips.c', 'stoptrigger.c', 'traps.c', 'uftrace.c'] if host_os !=3D 'windows' # lockstep uses socket.h - contrib_plugins +=3D 'lockstep' + contrib_plugins +=3D 'lockstep.c' endif =20 t =3D [] if get_option('plugins') foreach i : contrib_plugins - t +=3D shared_module(i, files(i + '.c'), - dependencies: plugins_deps) + t +=3D shared_module(fs.stem(i), files(i), + dependencies: plugins_deps) endforeach endif if t.length() > 0 diff --git a/tests/tcg/plugins/meson.build b/tests/tcg/plugins/meson.build index c58f2e382ae..303f97f9679 100644 --- a/tests/tcg/plugins/meson.build +++ b/tests/tcg/plugins/meson.build @@ -1,8 +1,11 @@ +test_plugins =3D ['bb.c', 'discons.c', 'empty.c', 'inline.c', 'insn.c', 'm= em.c', + 'reset.c', 'syscall.c', 'patch.c'] + t =3D [] if get_option('plugins') - foreach i : ['bb', 'discons', 'empty', 'inline', 'insn', 'mem', 'reset',= 'syscall', 'patch'] - t +=3D shared_module(i, files(i + '.c'), - dependencies: plugins_deps) + foreach i : test_plugins + t +=3D shared_module(fs.stem(i), files(i), + dependencies: plugins_deps) endforeach endif if t.length() > 0 --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390534; cv=none; d=zohomail.com; s=zohoarc; b=lRsUihbq4FAZz9eh0pauyLUAyWN7ctBwDvbww4X/6mejIk63CHzpkrd9rkGxWUM7OCz1bZh6eiJ6fkNXrR59kAw7WZE22DvKtzkH1U6BRUvIMd6Tw7lXbnpjdMgVS7/Qv6z7HY1NKcisYvkTrKijMua/9K4j2fXaLL5kpryT2N8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390534; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=sa5EHxYx/snq7aAH+sWySlzd4bZ6Z+JvqzA3ZIoZGIo=; b=Xc4U6kx1Z5+qS8IFl3vTCyL7olQ/3FeRzFe3A4CJsHJYsItFlVDitpSC/ghiBiiGkElkxPc+jux58uBpoAGR7dHQdexlcIThXGYyvsth9XXAqURkPn57514I3nXI1MfwaD3JfCcpD87K+eIq9M+XUGrnUSNJ0csY6thuv2M5vcI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17673905343512.9199548568401497; Fri, 2 Jan 2026 13:48:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0W-0006lM-TD; Fri, 02 Jan 2026 16:48:29 -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 1vbmzi-0006fv-7Y for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzg-0000JT-Cz for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:37 -0500 Received: by mail-pf1-x443.google.com with SMTP id d2e1a72fcca58-7f216280242so76491b3a.1 for ; Fri, 02 Jan 2026 13:47:35 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390454; x=1767995254; darn=nongnu.org; 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=sa5EHxYx/snq7aAH+sWySlzd4bZ6Z+JvqzA3ZIoZGIo=; b=A3fP+HcNx6kXh0fd7UREWdV5/vq1V91V/ixNW/FLxBiSYW8l/ab4ycLlccayPOaQCY gdO5OUPtSDR3BVGMppSHrFWKT/5Zu7e/HzNxsYBr7+XKm/O+FT7Ru1LOA8xm+iiW8wrf R4/hzZNwaUWVUvqrUJVpgF7t2fIyOgWqvmAFoajxWzhX3WSfiosszlUXNOxek5D1STSk Y0eDcDdHSfLu4wzYU2tDXEVB00q/tHFgPAzCKr63Z2svhdH26sIjm6JgVbf3JsLMAPDO FpAXGMflSzKOuCRxhI6/RrEB3tOlfXx2z+set4zPU83W5/Ofc3sHPvHXpJrxB4BrZy7v ZR5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390454; x=1767995254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sa5EHxYx/snq7aAH+sWySlzd4bZ6Z+JvqzA3ZIoZGIo=; b=sjmo0ygtPpf7VojGD9N+F9V/moSc8sPd7VuPzbJsjBSvC6kv8nJbUTZbVVy3cOPryj PGmjdw2QG6gT2GxGa6efaOZNdzVP16uKEB0HvHL/suN5j9hYOnf1BJe9ZF/RsVa89Qt5 bTPTGyMuWq7p/mb4Ck8vTUeEwEh53JJHB9bmIA+cIYCrFFgaMa+HSKYtCzbW/1AY3MpU yX9iKxgpD4obVMvR9tNCbMQ0dj3h11zE9sG6JtN38eZdhj98hhadPF6065cuXE11r420 kZgGHX76XPtt4Hx88J+vnInaxGjdmXSCyNIwPxAEnBb1gFr5A/H+BVW2icGeb9unhjRD i+Jw== X-Gm-Message-State: AOJu0YwXQHBYFGUpx3kllCRO8C+MQnDD49XYHpLWeVaRT4XE8cCnbp6n UuAU9iXQblxsBgK0q6UtWfhsQfax+RdUMnlh3TEvhcfrx6uRLWLG81GQXA0/r5qZ2s6N0S5lxe5 ShGP1nnQ= X-Gm-Gg: AY/fxX56RsU5IalyvyibJjJVGTUiYXQMQ7NYWaao4HtNzUjcMdEpc8xTlgG0LA4fAIQ AVfXObXDz7fRF+1THTO3QXcl7juxd4OB8SGLnJiKzaRdDQF47HFshdrJPb/eZKh0z6cClfdFwfj fgUpLqZopPGR1oBYa0oaGxgFoIjMnP3M9f102ykvGP1OsZGZkbcagoDYtMYRCty1aHatiTH9MBq IqR0mrv4lyCxuGtFIuaataaQIyjMHAesUpNvDTUwssrIYOyvcUuRt+q7kJwF2Sffb6qvc/FSWRF tSDeLssZVq5jsosFcl16ndEMbtfejyc8pahBK2IBMo924QeoPU4VNvGGWiq7aStuzzdaTKvALtV xygHpnA/VJoVclj42vG6N/8OcHWy7fnp5IRrXmaj8uVRew3Rfa3DPcZ91jcJBk0/CqvwtGYJxMe H+yE4KAWfaAbTtUowKDu92zAo7o4PDn9pTK+OCxPOEWf7XPFna4FxY0M5caVyCgjgmalHXKxw3Y VA= X-Google-Smtp-Source: AGHT+IGWyC3T2PlBAqYpm0UMco2ajzJrYxA8O6X+AksTPDdjR6HfzNZqlYNe5MqV/AjpLJKWsd2aow== X-Received: by 2002:a05:6a20:258f:b0:2b9:6b0b:66be with SMTP id adf61e73a8af0-38959351d03mr777455637.14.1767390453989; Fri, 02 Jan 2026 13:47:33 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 04/11] plugins: define plugin API symbols as extern "C" when compiling in C++ Date: Fri, 2 Jan 2026 13:47:17 -0800 Message-ID: <20260102214724.4128196-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::443; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x443.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390537358158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- include/qemu/qemu-plugin.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 60de4fdd3fa..e44f863d839 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -16,6 +16,10 @@ #include #include =20 +#ifdef __cplusplus +extern "C" { +#endif + /* * For best performance, build the plugin with -fvisibility=3Dhidden so th= at * QEMU_PLUGIN_LOCAL is implicit. Then, just mark qemu_plugin_install with @@ -1210,4 +1214,8 @@ void qemu_plugin_u64_set(qemu_plugin_u64 entry, unsig= ned int vcpu_index, QEMU_PLUGIN_API uint64_t qemu_plugin_u64_sum(qemu_plugin_u64 entry); =20 +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* QEMU_QEMU_PLUGIN_H */ --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390607; cv=none; d=zohomail.com; s=zohoarc; b=PXgRqmwXWs28dKU3/ZQUAY+y7rSBgCOZIQIOfz1zMpe2om+jsaeBCNeWThTgglXgm6zOfK3rtQ9hkb8uqgAF6ELVbTKSuKsgx2/cBY+/DPTcuGay0fdN/AHlyN3BhKoyIu58jGIxNsY9craNdHqj2Jg8oCdXJaQur1V9uTMgtN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390607; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JDaUMXNl3FZj4WBz+kjiCzD7DUw0YTyswTIoriwfuY8=; b=jHfW3uJeuyh1cNPtwyi9s5eW6zUOSc2u/TVxGphx+4BnoFLbL5QA4SmhGBZ6V3Ho/ziMBX4CNhC+ERmsNWxAsf1K4Li5c2AkpE/Hfe9LGegU8BJmTYGqliYBHS2dVxLysIz95NZqKw3L5yA0WrGuFShc5SAvAzocBYsnj6IIkuk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390607273275.1985887466881; Fri, 2 Jan 2026 13:50:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0e-0006ml-Kg; Fri, 02 Jan 2026 16:48:36 -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 1vbmzi-0006fw-Ny for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzg-0000Jb-SH for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:38 -0500 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-34c7d0c5ddaso134155a91.0 for ; Fri, 02 Jan 2026 13:47:36 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390455; x=1767995255; darn=nongnu.org; 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=JDaUMXNl3FZj4WBz+kjiCzD7DUw0YTyswTIoriwfuY8=; b=M3eo6WKNwfJ96eWcRcHQx3TUNiLxhpg4C8PT5qT2qDllqhOBftFem8UDBLFwujaIGH Vzv84uhC9A2MurfFc2PsAw/bWENGY7mpEj3wbHCr34zpT1LtZgSLPfSh6AJirmPOZV8Y 6tFg4W3Yv33bH8KjRa+oBWghIpLNft3xcopDoVa6+8o9JiyAYoLPDOjkNYg7urHxWIta bj7ChkTY8xr/F0tXhpkUdSSNG4Y0MiWDEALo8ZUvz2W6iDkV0otlq4TBUCEkKh7g7VF5 Pgs+0gFgsQ5ZOATe6Y1PjPtixmLD0ya0EmaSpHAaGbW8fJANJrkkzTCEk97ugUqoD//d gC3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390455; x=1767995255; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=JDaUMXNl3FZj4WBz+kjiCzD7DUw0YTyswTIoriwfuY8=; b=BFtKxwuMXLlXg6dTW+cFUQ5Y+IDcUg7G2j+XRUeRThUktui79eaK9AbTZ+mftIVFBn gHqXJCLKiYzUo1x2f2REq6NBIiJwlcc4FPzGq2KhdSKDQyZrz4Qnv7W3gB5Cy4drxZDL jM9w4oCZwTWxp11tli7qJO6OV5JJUTmnNxs39Mcf5kN47R4VuDXchrCCVyMHQIrH95zZ VVyMF6sBnJlSf6HKfVcKnLGAQ/FF3HgC+JtS+uTs9MTlHbzTPLYdVxXDzgtwwkXnCA8w IWX2uZNHuKxvQeTHELyarj9shSFIt3ysYOMdodK03uq4tQxFIULqH+lEXC1y/0/iy5Q0 A5gg== X-Gm-Message-State: AOJu0YzDMO10lI2qcrS1gcBmSDgt83jgPh7STpTVvr7jsx/t+sMd5wv9 QNxNFx/3Ge0yurBWC/Lcu+CbpXuMGKLvboUeLWKMQD4X99oB4LGkVjsml2DG5DxAptFS4jhdCbO pzUsN X-Gm-Gg: AY/fxX7Hlhcc8wwnnuzQbCI54Bl2stj9j5uyts3wLAf7NEo4QB3I8oO749n/beffOQS G4jjCq6jTk2QpF7F8fWdxAvw7M4tcRx9CeekqnnptFfguz8aDYNGaKveRLJ+eaHfw6RGnM4Hx8N Kz2RNLSxoHtkjoiw38Avn2tX8nYtb2yHlTS5+xUykUZKVii30QNFg/q3GaaDpnxvqVO+oDu0wCz gb2MhZf0RJ6mfzJbfyYG39aAvKua0v9i9OKPfcdBO7PVfBAwu9Y68K2p1//IYutJbRTcW4qouS2 x5bbY9X0JE1h9L/nu6OrOtzY4OMhN3cIaFoYS0V8WXS931V0rhTyreBxOqwlxrB746ZFbt68Ept BMQ0SHTlu0kO6CbTUsqOMvBkS61SxRwFQz8lay92khp2DqvksQWJOALvh89O29a4wpwDRLhYS0t tCPKlUErpQhNFXnttu+ylphGQeDyj0ksYeNioRDg7MwvFkLAtPpK3H6HBkC83n79ZT X-Google-Smtp-Source: AGHT+IG/xSh91TxI0VCaXOESTfemCoMwAoINTDHrQBTpUzWJE3NcUqg56/BXMs0ELuXg32Poffk6rQ== X-Received: by 2002:a17:90b:5867:b0:34e:6e7d:7e73 with SMTP id 98e67ed59e1d1-34f453c9e48mr732515a91.11.1767390454765; Fri, 02 Jan 2026 13:47:34 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 05/11] tests/tcg/plugins/mem.c: remove dependency on qemu headers Date: Fri, 2 Jan 2026 13:47:18 -0800 Message-ID: <20260102214724.4128196-6-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1035.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390608800158500 Content-Type: text/plain; charset="utf-8" This plugin uses endianness conversion primitives from QEMU headers. As next commit will strongly isolate plugins code from those headers, those primitives can't be used anymore. glib.h provides such primitives: https://docs.gtk.org/glib/conversion-macros.html#byte-order-conversion Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis --- tests/tcg/plugins/mem.c | 59 ++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 36 deletions(-) diff --git a/tests/tcg/plugins/mem.c b/tests/tcg/plugins/mem.c index 9649bce99ca..7d64e7018f2 100644 --- a/tests/tcg/plugins/mem.c +++ b/tests/tcg/plugins/mem.c @@ -12,16 +12,7 @@ #include #include =20 -/* - * plugins should not include anything from QEMU aside from the - * API header. However as this is a test plugin to exercise the - * internals of QEMU and we want to avoid needless code duplication we - * do so here. bswap.h is pretty self-contained although it needs a - * few things provided by compiler.h. - */ -#include #include -#include #include =20 QEMU_PLUGIN_EXPORT int qemu_plugin_version =3D QEMU_PLUGIN_VERSION; @@ -152,56 +143,52 @@ static void update_region_info(uint64_t region, uint6= 4_t offset, ri->reads++; } =20 + void *ri_data =3D &ri->data[offset]; switch (value.type) { case QEMU_PLUGIN_MEM_VALUE_U8: + { + uint8_t val =3D value.data.u8; + uint8_t *p =3D ri_data; if (is_store) { - ri->data[offset] =3D value.data.u8; - } else if (ri->data[offset] !=3D value.data.u8) { - unseen_data =3D true; + *p =3D val; + } else { + unseen_data =3D *p !=3D val; } break; + } case QEMU_PLUGIN_MEM_VALUE_U16: { - uint16_t *p =3D (uint16_t *) &ri->data[offset]; + uint16_t val =3D be ? GUINT16_FROM_BE(value.data.u16) : + GUINT16_FROM_LE(value.data.u16); + uint16_t *p =3D ri_data; if (is_store) { - if (be) { - stw_be_p(p, value.data.u16); - } else { - stw_le_p(p, value.data.u16); - } + *p =3D val; } else { - uint16_t val =3D be ? lduw_be_p(p) : lduw_le_p(p); - unseen_data =3D val !=3D value.data.u16; + unseen_data =3D *p !=3D val; } break; } case QEMU_PLUGIN_MEM_VALUE_U32: { - uint32_t *p =3D (uint32_t *) &ri->data[offset]; + uint32_t val =3D be ? GUINT32_FROM_BE(value.data.u32) : + GUINT32_FROM_LE(value.data.u32); + uint32_t *p =3D ri_data; if (is_store) { - if (be) { - stl_be_p(p, value.data.u32); - } else { - stl_le_p(p, value.data.u32); - } + *p =3D val; } else { - uint32_t val =3D be ? ldl_be_p(p) : ldl_le_p(p); - unseen_data =3D val !=3D value.data.u32; + unseen_data =3D *p !=3D val; } break; } case QEMU_PLUGIN_MEM_VALUE_U64: { - uint64_t *p =3D (uint64_t *) &ri->data[offset]; + uint64_t val =3D be ? GUINT64_FROM_BE(value.data.u64) : + GUINT64_FROM_LE(value.data.u64); + uint64_t *p =3D ri_data; if (is_store) { - if (be) { - stq_be_p(p, value.data.u64); - } else { - stq_le_p(p, value.data.u64); - } + *p =3D val; } else { - uint64_t val =3D be ? ldq_be_p(p) : ldq_le_p(p); - unseen_data =3D val !=3D value.data.u64; + unseen_data =3D *p !=3D val; } break; } --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390546; cv=none; d=zohomail.com; s=zohoarc; b=YSTU1xES90VKAyO9inANorF6//GpserYP1LjYvJrqPDOvYD777K+Uc9Ykyn4mlobJs1zqE+2NQu3Sl/QIGeK5ZMr2WIyOjBXRIjQmrBScZcMOfC9Kk0NjFvNyKpMjh4SEVCvfV3y8nBv9nNYdygrD1UddzrRiEKbHrjow3/ZyPw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390546; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=R4hbow1zviH+bWh7+b+fqV3JFTVXLR9m8ieoHmc4Fac=; b=Nn0TPc8EnhxtVDqlD0H25V5g7z5HpKl+6u1PJOssCR1d2fWn7ANEj2tL+9LBjjEUghhC6HQCF12XLPiMuyvSzrpjQxaAlvuLffwTnH3MNOYE/el0Jr+h1Ez8mf06coamw8tYBkmJMbFRP9BwzjlRSPiYWDAUGbCRAgcVjEZVv4A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390546654483.58606758690496; Fri, 2 Jan 2026 13:49:06 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0T-0006kc-Uw; Fri, 02 Jan 2026 16:48:26 -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 1vbmzi-0006fx-WF for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzh-0000Jl-73 for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:38 -0500 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-7b8eff36e3bso19488045b3a.2 for ; Fri, 02 Jan 2026 13:47:36 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390456; x=1767995256; darn=nongnu.org; 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=R4hbow1zviH+bWh7+b+fqV3JFTVXLR9m8ieoHmc4Fac=; b=SWOPPREGfOYuf+GDEfsIqIZyeHHicIPqjFAkHTbmaGdF1u3scP6RU5yFqC8NoQaeXK Z33obRO+oidCPP3M7Uajhv0BLbHmw/+55TyC3ayk8O+0il1N2m1Y39K7odKLJ8Z9ZGrb 462RzuWNlAxVrk9RhIeg+FiS0b10qH2ntKIR1miTsB3lCIxVDUSGYb6Qw2gMwYY1Aqxp OKZaS12xl7qHBUDh9I4TDPagMEfHWi3ZNWZ44VkoUZsBK8zevzKp17tm4l+eTD8BeUpm oliCjHy8zMqIZnNSpufZAzo4Pho+1Nro80cCVktOhnPFpM6hwjoM/+JvHY3XcjqSnEI8 5IJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390456; x=1767995256; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=R4hbow1zviH+bWh7+b+fqV3JFTVXLR9m8ieoHmc4Fac=; b=vFudyOaZrXgCePtfPzttvtiAh0HSrXhOy9YRh6ai0O3ciaQ18TfbZicFlwTEq+lKJT gh1XQtsfGF8ioAVPh9P82zktV6k0GZFv8g3nDRyS1BxvTqWyLafblayMJ9YH/MZJ56NB bCuZzB2Ll6Tvwcbba03MSYoPBJOuHdwKMnYfI/W+ulR5EUNcZxRnIJo4KLVKLIOA05xw 83rdAyOhMxaWfUcFFTtKkqhUxr263DvqxDrj4hNLl6Stq5v6xXvjYE97li9GiVMIoI/3 z2rU8SNdn1rxF6wUBMqTw5mair3uGpn+7sQwubP1jO5mOgHEgKbu1Wha2q1y/fQN4Vn2 KDzA== X-Gm-Message-State: AOJu0Yzyic3VmbVrgTDd3VLMsUg4uHguQTpwirOBpqzaYkTxAb0WDw68 o3y8/wgyxocbNxvAUFJUvbWkwM2rwaI2DbkfLpRUgg478tT8bEVmoxbpCdRSeZbHq8DqtLp5CVz hOENb X-Gm-Gg: AY/fxX6FezT+uJj4At4PjoZhF87IHlv2+PIwM2thvrakLm9pRSGQvEBr6V3FEsiZ/Dj TQRx47QESnmB6/+eeBkeZUBSz2+12eXd10unyLQ6dpaHoyh6m4lXMgXrV+TEaTt21i22RsBw99k NffI8OpKy34xwXYwUHYz/PK6XJHjKde+qzkagQIUva2Q/ZFF+Jn0hf64dsIo1RYweTvoUMzk1Fx yJ+zzlAWUd6ooB4abf6kYL/SVYiNvBwlFwsyaIoJ37DN4LJMXhv1ZEmGJGkvkZFpQjbCEEpxDMb I4t/RvZ6f6KZmjrrb9nZPCXWc6BjQwF4bh8cLoNQ/e8uatK3eCua+meChV9gsJ5hazHpnCvIkha V8PrOBHgr2cv2nuLPje0KLT0o35DP+myJWDGDR0zPS7w/s9agkNAJfmkvI+3o/gnUxEheVLOGWm Yo1Km2QdmjvD5TXzkSqMYUAoqZW4eM8RIJzk9x2owwb3gwJ7HTHQxgT1jga+EAXU4y X-Google-Smtp-Source: AGHT+IF6j2aZSgO3xM2T6ObR+O8IFpLYaekMMtl3lPyIKyrtc9cO3VfyhcMs0ji49NPvmqxNQkJPaA== X-Received: by 2002:a05:6a20:3d89:b0:34f:ec32:6a3c with SMTP id adf61e73a8af0-376a8cbe9d0mr43275220637.28.1767390455557; Fri, 02 Jan 2026 13:47:35 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 06/11] plugins: move qemu-plugin.h to include/plugins/ Date: Fri, 2 Jan 2026 13:47:19 -0800 Message-ID: <20260102214724.4128196-7-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390548507158500 Content-Type: text/plain; charset="utf-8" This change has two benefits: - ensure plugins can't include anything else from QEMU than plugins API - when compiling a C++ module, solves the header conflict with iostream header that includes transitively the wrong ctype.h, which already exists in include/qemu. By Hyrum's law, there was already one usage of other headers with mem plugin, which has been eliminated in previous commit. Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson --- docs/devel/tcg-plugins.rst | 4 ++-- meson.build | 2 +- include/{qemu =3D> plugins}/qemu-plugin.h | 3 --- include/qemu/plugin.h | 2 +- plugins/core.c | 2 +- plugins/meson.build | 6 +++--- scripts/clean-includes | 2 +- 7 files changed, 9 insertions(+), 12 deletions(-) rename include/{qemu =3D> plugins}/qemu-plugin.h (99%) diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst index 9463692c411..f48c32bd844 100644 --- a/docs/devel/tcg-plugins.rst +++ b/docs/devel/tcg-plugins.rst @@ -166,7 +166,7 @@ Plugin API =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 The following API is generated from the inline documentation in -``include/qemu/qemu-plugin.h``. Please ensure any updates to the API +``include/plugins/qemu-plugin.h``. Please ensure any updates to the API include the full kernel-doc annotations. =20 -.. kernel-doc:: include/qemu/qemu-plugin.h +.. kernel-doc:: include/plugins/qemu-plugin.h diff --git a/meson.build b/meson.build index 3d6c6c702d0..a8fd8e88225 100644 --- a/meson.build +++ b/meson.build @@ -4495,7 +4495,7 @@ endforeach # Other build targets =20 if get_option('plugins') - install_headers('include/qemu/qemu-plugin.h') + install_headers('include/plugins/qemu-plugin.h') if host_os =3D=3D 'windows' # On windows, we want to deliver the qemu_plugin_api.lib file in the q= emu installer, # so that plugin authors can compile against it. diff --git a/include/qemu/qemu-plugin.h b/include/plugins/qemu-plugin.h similarity index 99% rename from include/qemu/qemu-plugin.h rename to include/plugins/qemu-plugin.h index e44f863d839..78872716246 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/plugins/qemu-plugin.h @@ -2,9 +2,6 @@ * Copyright (C) 2017, Emilio G. Cota * Copyright (C) 2019, Linaro * - * License: GNU GPL, version 2 or later. - * See the COPYING file in the top-level directory. - * * SPDX-License-Identifier: GPL-2.0-or-later */ =20 diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h index cea0a68858b..cdd4f68c0c1 100644 --- a/include/qemu/plugin.h +++ b/include/qemu/plugin.h @@ -8,7 +8,7 @@ #define QEMU_PLUGIN_H =20 #include "qemu/config-file.h" -#include "qemu/qemu-plugin.h" +#include "plugins/qemu-plugin.h" #include "qemu/error-report.h" #include "qemu/queue.h" #include "qemu/option.h" diff --git a/plugins/core.c b/plugins/core.c index b4b783008f7..3f66533d749 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -15,7 +15,7 @@ #include "qemu/lockable.h" #include "qemu/option.h" #include "qemu/plugin.h" -#include "qemu/qemu-plugin.h" +#include "plugins/qemu-plugin.h" #include "qemu/queue.h" #include "qemu/rcu_queue.h" #include "qemu/rcu.h" diff --git a/plugins/meson.build b/plugins/meson.build index 4318e3a1671..34643e2cea3 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -3,7 +3,7 @@ if not get_option('plugins') endif =20 qemu_plugin_symbols =3D configure_file( - input: files('../include/qemu/qemu-plugin.h'), + input: files('../include/plugins/qemu-plugin.h'), output: 'qemu-plugin.symbols', capture: true, command: [files('../scripts/qemu-plugin-symbols.py'), '@INPUT@']) @@ -62,12 +62,12 @@ endif =20 if host_os =3D=3D 'windows' plugins_deps =3D declare_dependency(sources: [files('win32_linker.c')], - include_directories: '../include/qemu', + include_directories: '../include/plugi= ns', link_with: win32_qemu_plugin_api_lib, link_args: win32_qemu_plugin_api_link_= flags, dependencies: glib) else - plugins_deps =3D declare_dependency(include_directories: '../include/qem= u', + plugins_deps =3D declare_dependency(include_directories: '../include/plu= gins', dependencies: glib) endif =20 diff --git a/scripts/clean-includes b/scripts/clean-includes index 25dbf16c021..3fae8e00e67 100755 --- a/scripts/clean-includes +++ b/scripts/clean-includes @@ -128,7 +128,7 @@ for f in "$@"; do ;; *include/qemu/osdep.h | \ *include/qemu/compiler.h | \ - *include/qemu/qemu-plugin.h | \ + *include/plugins/qemu-plugin.h | \ *include/glib-compat.h | \ *include/system/os-posix.h | \ *include/system/os-win32.h | \ --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390640; cv=none; d=zohomail.com; s=zohoarc; b=I/DgmGtWl5HCALMSp/lrDqK2FbelxBH2DYTmDJf6SFNtccEaO0tdNvkr2kymxZWwIDl5n7HrJe4TjVnJbAR+mAX3JoMt3I3e/Bsn14NdG5widj9OKq1t+I9DudWGO2jokZ/FmHc6sS1eOwRt9iRf1hLwa2kfom2f4Q41qjkgDB0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390640; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=iqM7COsTdr9LPMsj9apOX/ZpJOoVf7y5fe5bZ4sfTUo=; b=C+GFrF533fVxFtSHeB1JKc55C1lM33A7bl+Mp1rlH1hF9RjCR6iI9r0PkKeAirHw+4RUlEO1jYUfu2Nf6VegwsPxyPUlOKF63tYMp94UVXEv4D9OUYifc6KPpn5xBMhlOQPrTdYxrLo+cM/P3q8ISvoii5NDIfxdZ0+N16u43do= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390640441738.0123710489178; Fri, 2 Jan 2026 13:50:40 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0m-0006ph-1L; Fri, 02 Jan 2026 16:48:44 -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 1vbmzj-0006fy-Lt for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzi-0000K1-3E for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:39 -0500 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-34c84ec3b6eso15883074a91.3 for ; Fri, 02 Jan 2026 13:47:37 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390457; x=1767995257; darn=nongnu.org; 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=iqM7COsTdr9LPMsj9apOX/ZpJOoVf7y5fe5bZ4sfTUo=; b=NfYvG3dgSnD8gUuhvpO4cH0JA7m+8jvFO8YWWGuLMQOkfDoftBFJmJ/T0h491lO4JY +n6f1ZfrSYWQcqXXU6Y1yLqxN7sqWviwCpKNWp5sPtrjH1Ina2aK8sK+OXdQikDSk1bb yvEe5i64I6DNNh9Wdo0QBWkxfruZznLRdK43gXLzun1Cd5BZjm8vyV2APSjGusDvuBWD ZTsLUjdqiQZRn966aS0Foi7iEutx0fXMua1Ob7q4OaWYSbIlxHCMGR5vz8we98aL7+T6 t9CA0mS6e2iJDKvBtxuo/BnNJBlw3uG9gQ+962a3EUc0XWLw6KFwnTgOcV97C7R3/bb1 cGCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390457; x=1767995257; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iqM7COsTdr9LPMsj9apOX/ZpJOoVf7y5fe5bZ4sfTUo=; b=I2r9VNrukdPTVERzzIVaR+QOnrT7tvAShXxQF8VqJa3GfKcpsBVNOzXfCyRpSIQ0OL 5q0jdVECPVSMUwg6SopEKX6A/P5CYixnep0WNbPfs7VccqfaSBMD2A8/KQ+ZROZlAyF2 Oy/5rzdy7aI+12d9y3ZKKg/FO1KcG3r/f5n43993VCKiXA0uFpq+m0QprODSw6rTmAxf pN4ldvAAvbangQfBJoR7bjdWItTqqoxZAAIxnQCtLNryM098Wp0/E93EdYi1lDRlN8bM f4iugD+95N67FqzOGxJdU0Ndld3twlAbaPQN/ohSKRCsfUETkvyNCuZnRTd9CBBhD/IX 2Tgw== X-Gm-Message-State: AOJu0YxHzBg7s+iXAUEYo8CXQ+oBAAGIsXCe7xfTD41bw/vHJO++83aI dLCcQyJztErcBXTGQMGDU7hECLXuDQ1FUqI94yaDehh0o3yXmZOnre2iOBHVIHTh+zTlW0U9UDP WGaXt X-Gm-Gg: AY/fxX5Nr+zVGjnMMcfJ8zNUZpHO7WySJ8Zhe/ruluxTEfAzXH02TriSC/H+8Xcp0lP /cer5DC5ecjQvD+79q9T/k8g3oPd1L0xukbS92AU+b5ly6yiQsNFp0fr2iqyWP/7KVec+35e9KB uX6MaqKdGz59NXaVzHhVFDKmI+N2h8pV3GdC2ODn4wxPY+a8NE9/8q+xBkXAOYhvxKFy1lYGNR7 l0rLYD3AxKIk74rF9DKUiKEE+QPAQQO3BMTIDV2qtr3lActn0oiJdtzzFRlViwujk/U0OSKs/ld fvYCYI7fWfpIk3uI0SaPTuyCKZ+GOxQ243WOf/Ru5puajyrOogIeM2Fh883L8/BQnzi5kaDgWoh O4Lbw7xPhuHxrVrZrcnwKuQu5oj9zQZRO1cDAlUXEe6iQOslbhrORaswR1D092q5m7CZa602MdS 0zuoOS+8SxNZM6HGAZihxPFZiZplGpL6PLH0B6pjTULuOUfDzBBbdf257bdo6fQY58 X-Google-Smtp-Source: AGHT+IHLh5uFiks6muIKVCBWRwRd2b5oFAZ2RzmJlDBY5t7iHCRpstuafvejCJJqcN8F5Y+wH/Yvzw== X-Received: by 2002:a17:90b:224a:b0:34c:99d6:175d with SMTP id 98e67ed59e1d1-34e92122004mr31567075a91.2.1767390456736; Fri, 02 Jan 2026 13:47:36 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 07/11] meson: fix supported compiler arguments in other languages than C Date: Fri, 2 Jan 2026 13:47:20 -0800 Message-ID: <20260102214724.4128196-8-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1035.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390640737158500 qemu_common_flags are only checked for c compiler, even though they are applied to c++ and objc. This is a problem when C compiler is gcc, and C++ compiler is clang, creating a possible mismatch. One concrete example is option -fzero-call-used-regs=3Dused-gpr with ubuntu2204 container, which is supported by gcc, but not by clang, thus leading to a failure when compiling a C++ TCG plugin. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis --- meson.build | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index a8fd8e88225..256cc0cdb21 100644 --- a/meson.build +++ b/meson.build @@ -709,10 +709,7 @@ if cc.compiles('extern struct { void (*cb)(void); } s;= void f(void) { s.cb(); }' hardening_flags +=3D '-fzero-call-used-regs=3Dused-gpr' endif =20 -qemu_common_flags +=3D cc.get_supported_arguments(hardening_flags) - -add_global_arguments(qemu_common_flags, native: false, language: all_langu= ages) -add_global_link_arguments(qemu_ldflags, native: false, language: all_langu= ages) +qemu_common_flags +=3D hardening_flags =20 # Collect warning flags we want to set, sorted alphabetically warn_flags =3D [ @@ -771,15 +768,19 @@ if 'cpp' in all_languages qemu_cxxflags =3D ['-D__STDC_LIMIT_MACROS', '-D__STDC_CONSTANT_MACROS', = '-D__STDC_FORMAT_MACROS'] + qemu_cflags endif =20 -add_project_arguments(qemu_cflags, native: false, language: 'c') -add_project_arguments(cc.get_supported_arguments(warn_flags), native: fals= e, language: 'c') +add_project_arguments(cc.get_supported_arguments(qemu_common_flags + qemu_= cflags + warn_flags), + native: false, language: 'c') +add_global_link_arguments(qemu_ldflags, native: false, language: all_langu= ages) + if 'cpp' in all_languages - add_project_arguments(qemu_cxxflags, native: false, language: 'cpp') + add_project_arguments(cxx.get_supported_arguments(qemu_common_flags + qe= mu_cxxflags), + native: false, language: 'cpp') add_project_arguments(cxx.get_supported_arguments(warn_flags), native: f= alse, language: 'cpp') endif if 'objc' in all_languages # Note sanitizer flags are not applied to Objective-C sources! - add_project_arguments(objc.get_supported_arguments(warn_flags), native: = false, language: 'objc') + add_project_arguments(objc.get_supported_arguments(qemu_common_flags + w= arn_flags), + native: false, language: 'objc') endif if host_os =3D=3D 'linux' add_project_arguments('-isystem', meson.current_source_dir() / 'linux-he= aders', --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390534; cv=none; d=zohomail.com; s=zohoarc; b=XGaPt74PQLgH8XN3LQQyVaZHf/vvnUY0O28kp+S0hysN8SkT9IF5s4NtFaMDoB5N036gmskgAEOxsklJ7QqXfwMFNCR2jnZChMKL9/FM1DYZbn50s6Clhu/rB/GXcUL1DDwki7TRtioZbv0J43cceEwtV9nq6NTBlnZHVFrSL4U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390534; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=KxgwJL3StoDNRgD9wJ0r0ZCQoraW4pGC+QLyAjYPHgw=; b=GGnka0zsMgfjUgsA0Yf8/S0YENs7Yyu7QKMvI+O3kfpAswamUSSBUQGhUP5rzO/IcAuu7PByNTs/zYQcuqwhvgcMv2A0y9DXXhxOZdEg3lz9mH7wuMMc/Uh+0i7lLJKpfk6e/KKVUsCE1Y21t2dD9k+BNNVF4ma0QARBv98gXJk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17673905345054.197635333433823; Fri, 2 Jan 2026 13:48:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0T-0006ki-Ue; Fri, 02 Jan 2026 16:48:25 -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 1vbmzk-0006g4-Rm for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:46 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzj-0000K9-3C for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:40 -0500 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-7b9387df58cso19968819b3a.3 for ; Fri, 02 Jan 2026 13:47:38 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390457; x=1767995257; darn=nongnu.org; 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=KxgwJL3StoDNRgD9wJ0r0ZCQoraW4pGC+QLyAjYPHgw=; b=ADbyMpovvJoiJpe0ooZyFmHH6y0199qzEcJk2Fc0MJzkUXXu/nlvoOU/I4faBROaNF ymFZyzU0PhcsocMbV8C1/lf+ZTYv72D6ZH1P3NMu/fzUUF2bCnzIN+iFiKKTOKap+zGL s2vL6FKTYLE/Cif4qFcjQ69Y9+KBjWbfv2adqXr8E3G+AI65rQ+9UFwFxMIdw7V0+UL4 TOngkLfANzW1yeIC5cTBo0CKTEghYRvALCkjvD2rCmw7bde7Ob8ZBWr9JiFSjQhum1sm aEM8aflZ0jgKvya2YXrxMHY2wmgtl43PGa33ZmUMbxmeF2iO0dfmfmzbfq52AnPUPxCS s3AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390457; x=1767995257; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KxgwJL3StoDNRgD9wJ0r0ZCQoraW4pGC+QLyAjYPHgw=; b=iFjm72OCrdxuFcVULFzwicva3e4tHoBa3IzFLcj58GIXZljfwWYvcSlFTyBxvtxUe4 RR59QVjAAmSnZXNIPhRVF2/e+hRWRgsUU5N7p32HAuHIROIy9jkj+ZvWaKP3JaEYcUeV B2nNgJkrJGxTv3Itj9NT3uVAD1e0cSFHZm21dIfTbLHEDuZO2RrhgUn2NQ+H07YmqlA1 7pyMINi6hTrrybHefgIaUU+0rd5hKZQuZgM3ku+NDBfv4+wMB8cKhxsFGMag4hNJg84S 4PXx7e4a4l69OU2gLgo+rbpNllC9FV1iEFu6VeU7P4JIgVVwptpeDVMtuC4KRAvZDblw 5YlA== X-Gm-Message-State: AOJu0Yx7PO7CM2AqJtj9e/IcPoNIxQpPfXHXM40Wiq2+Kh0/fyGLBZYS UDEXgH0aUh0qKh5ec/9eaZXDHsHqhvNmt9RZaH9FR/BmOzmt5HQYmKLLOWlaJfbF3hNKVRNpBVu A08qN X-Gm-Gg: AY/fxX5XOhTflGvh06g16dbJXtjiD2nJjeAGn42EIm5gmRXpo/n2kd2pp51NNSwtPxm 0CHQPvk/RgKFe9+8XMpse/zPN/liNW77IKnT+uCXPqa7eQTw4TuoNKMlff+Wr8bG2z62epO5t41 mx7MefSk6nq4zEfsVLowV1Lj/eMCOOYDdHLMq84mwGTSAqb9Z2RIBpVMqCeRuIu099L81K09bDI ePJ8gC6DPP1tJQLszx0PyjMqCmLkTHze0AevJE6r80nXHNk7S62oTObr4QvUCGui5razuEYuR1U fX9QWvdJTnzsP57ijTUOkgOzcz7ZzigrWHH34/LYcBuPhTu7db2umUMgMzW59mmGbP0J/uikEHx nBcF3Q8/o7Z7K3uOvsq90Y7z0o6FFtle2YFVG6QZM3DrwTgce/4sZ2CkgXfNfkpXkcIGeSAb6fE J6tSTGWHoyaAY/CxOva6rhA9ZpGsCDgxsoIrmwPKfQybNe+2OySO07YEtj8c8yG+GX X-Google-Smtp-Source: AGHT+IGUQ44mgkPALkP3KtQiiat2+JMZCMtQpmetkD/xMs8kHu5tVlm8t/7edF89M2VnWXD9kOY1QA== X-Received: by 2002:a05:6a20:6d08:b0:387:5daf:b302 with SMTP id adf61e73a8af0-3875dbf065dmr4847560637.65.1767390457550; Fri, 02 Jan 2026 13:47:37 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 08/11] meson: enable cpp (optionally) for plugins Date: Fri, 2 Jan 2026 13:47:21 -0800 Message-ID: <20260102214724.4128196-9-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x435.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390537289158500 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 256cc0cdb21..38767c2c68a 100644 --- a/meson.build +++ b/meson.build @@ -77,7 +77,8 @@ python =3D import('python').find_installation() =20 cc =3D meson.get_compiler('c') all_languages =3D ['c'] -if host_os =3D=3D 'windows' and add_languages('cpp', required: false, nati= ve: false) +enable_cpp =3D host_os =3D=3D 'windows' or get_option('plugins') +if enable_cpp and add_languages('cpp', required: false, native: false) all_languages +=3D ['cpp'] cxx =3D meson.get_compiler('cpp') endif --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390625; cv=none; d=zohomail.com; s=zohoarc; b=GkYO9QoLUV5QOAZUj9g0ujMeSfT3FJFaD4KgHApndduMZ+VUSpjSr36/rtqM73meDGOojOv2PV8oT/KPgcgY5aEeYodhlcBAFWT5r0Te01tTqWw/fGzcWth+DMye9ub2wbGttinRtqABDyvT5QSd87FwC6b7Skl/jFVRFw8pTxs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390625; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=4pu2TYG/+F91diJrA2qUvqaX2TgetOgZbJlelL7PNoU=; b=FfHi5pVMTlZASerIC6bHUMP5HDsz/xYy/7BVrhzUssRr++5YthIUqfLjPP8w9sp5gkaFyJlN9d4R8o8KB0dTsP8o7TEwYUMSsLXdBS8lr4eRdDPp7dHmpqaDyhh2B54D2PUuBKeSmZ50x1lL0c94lKexu9oX44Fh6wHXRTqUQWY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390625148262.06061877534887; Fri, 2 Jan 2026 13:50:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0c-0006lz-J4; Fri, 02 Jan 2026 16:48:36 -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 1vbmzm-0006gA-5U for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:46 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzk-0000KM-KA for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:41 -0500 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-7b9c17dd591so10413254b3a.3 for ; Fri, 02 Jan 2026 13:47:39 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390458; x=1767995258; darn=nongnu.org; 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=4pu2TYG/+F91diJrA2qUvqaX2TgetOgZbJlelL7PNoU=; b=U+9NoAEygNIZZ1QN3mt0X8JGaujblsfu4Vaaq6ZZfw1/ziHCWYuMKpqrHxSGkPpDJe 5G2E/vbQbBnudVazEGTy1hzekufJXntsIL5aPSt9h/X3Mmz+k5ZX8zQuimMl8/3t7FI7 ZPTeQInKgrKFB0/ZuovbUn36CiHgo1ohEfPbDSbQVLjxzgQ1XSWEvlVYD78OSwUcy6zW No2CgLwVKk+uD3+3ir/uHwwhzkRPdH2uttDmlq/kzULPBcS+iJizo+0pu977tjz9g78z TSCA6N/LxZuPARdiDTUCXgj4D27Qv2v+vhyBKRosF5ba5fDZquHE36YlVhqZto3oAK4k WLzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390458; x=1767995258; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4pu2TYG/+F91diJrA2qUvqaX2TgetOgZbJlelL7PNoU=; b=qJhT3heB/ATYha3F3G9NiusP2X9L4l2VLDuAMssLsf9U5JUCSTpYSxFA3azIwfPSDm WuNikIeOi5xYPFSzkohCpnB2xO9xlNH33KlJT5D4YEojdI59fB9iUIlElnOkp3cErzsh +rbIzk/1QzjM1X2ZsYPjdbB28sB3EpOvtVn1gwc4lf7hnhuhP2Yhyqzj2tOQUqqrHVzY bH6X4Br0dmuoH50DDJyJbG1GhAcdR/74ZUMKI99DbGZ1Q+rU+EpdNuE7vz1puT0jVBnY CPXD8mnA+6usLEZVkKRXEi2s0RdKhT6GKm1WXOk0RyBAwqQCI8Z4vrD9VzCB2LIpOo8j 10FQ== X-Gm-Message-State: AOJu0YzfljWW5AoKI/i6C8PRaQg8OvWzi5JFNs0xvwgYhIL1k6CwpIUZ /7lJngKoJUDhv1Lqzc0z96Fj5N2SgxmCaLuKTS+9nSAkfbi5jErljrYOxv2eyDVwBkYf+G62gG4 GLznp X-Gm-Gg: AY/fxX462YXKz2c5fk4y01nXvo/pgp1XUKsYL+KpW4EBspZxuBcXkyLfXU/RfXqO/ag iLZt3QUA0nbcY1hHkXbY5AuY8dOdlr99QSPInm3DEeOVig0sGYy675vRFWCWjW4Qa05yY6cLmMd XBnrGhXhBTQZhlh+9Wf83q576xTl/aV5VXSEVYicPsve0tw0lPgESeJika/1yPNFeBlXCTWcpAn udlDLTAswSa51wsUQHh9aHjGQUKq50A++INsbg9UQ+Bb21XWkFh4VlMIGS7dr1/+QSY57uwvFWP lvwYt4p+TtOP0ZXStnu2vmfNQCI+CH1FqyqtOIrvxu4Z5ncAP1yH1r0lPGHAIZUk6MgZKiE3vGI ns6mguhqdrw+FgwcyDVLz3joKWxzXkiRpo1CQ2PEZ4hiQqT0KwDWe1AZ7cv/CrSwlsDg7Ic7I5s pWcHGGj5q5JabXvqUficIgW5fxzaQQNEUC3hZaKfeRCCsAI5uIxoAM2S56HYbDpp22uWaRzf60Y UY= X-Google-Smtp-Source: AGHT+IH4kz/oDchq7ACVeeEruIeG2hMWKlg2WdEIYIDziA/4jpQZqa+tGJMlf2RZOrYkpHcFeHzTfg== X-Received: by 2002:a05:6a21:6da6:b0:366:14b2:30f with SMTP id adf61e73a8af0-376aa0ed79fmr39018810637.66.1767390458299; Fri, 02 Jan 2026 13:47:38 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 09/11] qga/vss-win32: fix clang warning with C++20 Date: Fri, 2 Jan 2026 13:47:22 -0800 Message-ID: <20260102214724.4128196-10-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42c.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390626673158500 Content-Type: text/plain; charset="utf-8" C++20 deprecated such constructs. ../qga/vss-win32/requester.cpp:380:32: error: bitwise operation between dif= ferent enumeration types ('_VSS_SNAPSHOT_CONTEXT' and '_VSS_VOLUME_SNAPSHOT= _ATTRIBUTES') is deprecated [-Werror,-Wdeprecated-enum-enum-conversion] 380 | ctx =3D VSS_CTX_APP_ROLLBACK | VSS_VOLSNAP_ATTR_TRANSPORTABLE | This is a false positive, since VSS_CTX_APP_ROLLBACK is not a value defined in _VSS_VOLUME_SNAPSHOT_ATTRIBUTES enum. Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis --- qga/vss-win32/requester.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qga/vss-win32/requester.cpp b/qga/vss-win32/requester.cpp index 5615955b6f3..74489fcd0ae 100644 --- a/qga/vss-win32/requester.cpp +++ b/qga/vss-win32/requester.cpp @@ -377,8 +377,10 @@ void requester_freeze(int *num_vols, void *mountpoints= , ErrorSet *errset) * To prevent the final commit (which requires to write to snapshots), * ATTR_NO_AUTORECOVERY and ATTR_TRANSPORTABLE are specified here. */ - ctx =3D VSS_CTX_APP_ROLLBACK | VSS_VOLSNAP_ATTR_TRANSPORTABLE | - VSS_VOLSNAP_ATTR_NO_AUTORECOVERY | VSS_VOLSNAP_ATTR_TXF_RECOVERY; + ctx =3D VSS_CTX_APP_ROLLBACK; + ctx |=3D VSS_VOLSNAP_ATTR_TRANSPORTABLE | + VSS_VOLSNAP_ATTR_NO_AUTORECOVERY | + VSS_VOLSNAP_ATTR_TXF_RECOVERY; hr =3D vss_ctx.pVssbc->SetContext(ctx); if (hr =3D=3D (HRESULT)VSS_E_UNSUPPORTED_CONTEXT) { /* Non-server version of Windows doesn't support ATTR_TRANSPORTABL= E */ --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390540; cv=none; d=zohomail.com; s=zohoarc; b=OvCh/D5iErCGQcTr+Rx+QM77RlKFXSH4DLJq+Kvhwf2KxvMJpJ0Y2HfIHMwLbAAgKgvxMXRcY4VxUFLgsgGEkiyLLOT3bYL8R5xJ9pj3buG0Kh5GcaJ5eKbCFy9vsiGW5TeF5VzRkrRcy5Jldc97v3oiKbjflL3HU8QVleDDI70= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390540; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=HOkbwVMERK6pZqO0u7uJFvMQBMZKL1x7wpoiTvhRVB4=; b=B5Kb3/kpOZjEOkCo4JAdvtfvYj3wsmvAr2/rCgy/VaYlg5JJVtj4a20Z5ygK/cz4wWtaEveNnFOq9LqO9axV0C++i03l6DRwfUTN+Grdmk9sjx2yGUWhCKwsNatPeWDp6FwihFS1wYQm/hTg43kAGkC/GjQaI6ImleCBlJ9VbfE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390540098804.1503326877928; Fri, 2 Jan 2026 13:49:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0k-0006mx-Cn; Fri, 02 Jan 2026 16:48:43 -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 1vbmzm-0006g9-2n for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:46 -0500 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzk-0000KW-Kf for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:41 -0500 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-7b8e49d8b35so15181964b3a.3 for ; Fri, 02 Jan 2026 13:47:40 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390459; x=1767995259; darn=nongnu.org; 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=HOkbwVMERK6pZqO0u7uJFvMQBMZKL1x7wpoiTvhRVB4=; b=Lus46W/+bayS02n6n71pFalGccFLAvlpI6F4d635fWZZhdQO4uAcSI/J+BsiSLPEZe 0Hs1JNEk/KsBC7ZBSoGEX2oongtDTl5tvEoQjUz6zER+WqjX7jeEpjzx5BVlzE5roiEC wnZJFe8rAusfRXHv9hNB3Dk3hQ6hqG1GWpPB5+CsTrKx5Fu5k1na+WqLdnIWrm3QC4a+ h9DUpaVGfLUIYUV7E02OfYZvKWj7HbX8INr8aEt8I4zBzSH3c9x0CpjGvLsbfx6+Axs3 o/BxCZ5Sivy+BuUYBCjIymB+fA2gELEmGqrVCjjutKYEvrzrk+zfqCNGpb/fzRX45wNc qRWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390459; x=1767995259; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HOkbwVMERK6pZqO0u7uJFvMQBMZKL1x7wpoiTvhRVB4=; b=LcUyxiwLFDbuDXl4/vMuW35Zjy3Revf4AMxdJn4hVr8VOBXq1rqqnwVLhxSp0t7dnJ xBd55acCyOC6XkXbOCjLwT3R9CWS/thvK4leCcQCzUQ4MKc36QGhfHwA3MWbLDpqx9jJ sRK5b/9uFkxYbme8BfSFtjlzk7gVuffu7fNwiaNnlHMCWGeppHyEjIPQ0JRTBIaE8jPY ipIwoXtY3DbnbpSPHeWafu56jZcXcSKxXBaW7Y2CcRGPVIPJaUuymHkK0NMVrRCFo91r JmcLCiULJmRD5X2UFBKiOFC9GGUlzuWl6j9xtqotN+pW1uGUBBsZwhhKWxiPmme7Bx1J ud8w== X-Gm-Message-State: AOJu0YwSbt2CZgK6dNstOGi0smWbM4+VeO2WqYo+QIiXAsQEd/WDK8o6 EYp4kelD77zLAHPtA0yXWwWp3AbYS7xPcj44sAB5vLGmGELb0p6Rz+khwkLVf+GSTqNk3RPNtFS NaKrK X-Gm-Gg: AY/fxX6fEeOM3hjwHpC4MXPXmLKh/aEolDjpNmW402bhb5OQR89tvOqYN5gpRp7d0Se pH7TCg3tT6cr+LIY/2HIRopCYhvDj8jeagJPWXLd2fWEIBfWGbwb8OMipwyKIOf7EscE9TvY/qP s2ogeoXM2B36P8nbMwB3Ll5HdBnnpm5GVB5roywtFnP2gyEVHxIBNsraaNEhF89OGMPwcO7b3+z QEYisMQbJ8UJUsugo3kC1FiLZVc4GNJPTYO5TKrN25sJlLcKuk1t2MsY6HxH7oq8LJSbA2qLg5T jEx0wOErtXxh78fAaBO0eIRPeCzLtH8hqL8qzFwBtSCNJL/soDNrZSOFVK3PHFeBjmfyasntMQ0 aKM4T13qP40FQoGIKwi+yV3aAhLiEA9t33GpExgaRDPxZt9DiTEmRp+1Ad7Uc91/Y0gttONDD0k D51E+0rhn1ezYWUqVayXKNH1TKoMcFMe/gtzv+v8LWPkDrA1DPVH7laKVhx+D6k0X1 X-Google-Smtp-Source: AGHT+IElzGenGc6qk9JdeU4c1PWpn/r8lAxZt7YYejcpwYoXnsxTwLQ0vFIu00xGngVf+FO6quGkpw== X-Received: by 2002:a05:6a21:339c:b0:334:9f66:5273 with SMTP id adf61e73a8af0-376aa4fc4f2mr39987706637.47.1767390459141; Fri, 02 Jan 2026 13:47:39 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 10/11] meson: update C++ standard to C++23 Date: Fri, 2 Jan 2026 13:47:23 -0800 Message-ID: <20260102214724.4128196-11-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x42e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390542387158500 Content-Type: text/plain; charset="utf-8" C++ is evolving faster than C, so it's useful to enable new standards, especially for standard library. Update to most recent standard available in our build environments. Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 38767c2c68a..564cdde9153 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('qemu', ['c'], meson_version: '>=3D1.5.0', - default_options: ['warning_level=3D1', 'c_std=3Dgnu11', 'cpp_std= =3Dgnu++11', 'b_colorout=3Dauto', + default_options: ['warning_level=3D1', 'c_std=3Dgnu11', 'cpp_std= =3Dgnu++23', 'b_colorout=3Dauto', 'b_staticpic=3Dfalse', 'stdsplit=3Dfalse', 'opti= mization=3D2', 'b_pie=3Dtrue', 'rust_std=3D2021', 'build.rust_std=3D2021'], version: files('VERSION')) --=20 2.47.3 From nobody Wed Jan 7 09:47:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390550; cv=none; d=zohomail.com; s=zohoarc; b=T09UzzfQwv9mLcM+4Kvu8nYdW/YL9OvgV+ZWIvXpa1WlQ7qxMmpfkKpRaCz88Cm4maMGULKcjnqGSMFJDQ/jbxyaqFdCKogqZVLWIFqVgMXiKw6fONhIRcclu0YVKj1Xh3Cll5FK01UWmSZVxnAnUvdPvsGVTuXJJHeAPl6cCJU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390550; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=em7lmvjlMGnS3avhi35owKtaVtV9xVpJa0BeP9UCQDw=; b=lDdfiWQQGBoddOaEriPlxA6d9hzVEpMn+3vWe4849rOKOFl6hjDeZCzRkkavAM+591MGXg8ANuLfIJpHGfXJh6TczzGLtu7Lt0pnzjRmletp92pks13g6MHlbgGXa0kNvKbjD68j8G5+9sGO2/GFWsC8XTpSot03YFx6mh2d1ow= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767390550037223.89128174025075; Fri, 2 Jan 2026 13:49:10 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0n-0006pz-0j; Fri, 02 Jan 2026 16:48:45 -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 1vbmzo-0006gK-Ss for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:48 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzl-0000Kc-HG for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:43 -0500 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-34c708702dfso13171547a91.1 for ; Fri, 02 Jan 2026 13:47:41 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390460; x=1767995260; darn=nongnu.org; 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=em7lmvjlMGnS3avhi35owKtaVtV9xVpJa0BeP9UCQDw=; b=R1KYKm59HdH/Y1KDDouOCcJ4Qp2YyXQQMljMfBM47hkyDLyIr3LB44OTm7WTiLnylV PvKqCvUwBzSjl8xx62+YU5S8G4ZZH4NRMJnac1mtSUyTZgdnD8fNzmqTRCDiJIs/X5tp 0pPuEoAnYbuEh0EI5FLNv6Lf35edBNfu6B04/gj9rEYSEuZqV3XMqxtpwQ0MmSgmKoOF jV6gcNsxOnyIKPobAUbeBwSIJeQxK5BRGL8vdSt7Ha+bUTSmxhyG+1VNAkIRh52VQV7T NLQagRWwaiPdKu7+yAaZKpjoZv2kY1QCeGsMD1snZpgCSRG+xBJd0coI/aM8dPzTXfyF RbyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390460; x=1767995260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=em7lmvjlMGnS3avhi35owKtaVtV9xVpJa0BeP9UCQDw=; b=IxMu09S7e5QmgwemflChNJUC3Qke1uR590xtmYhs6I4fgNnLBMnF1cNH2vu5ekMYtf RT3/X9gLvic9SXXVxyVpqSGFoaUyWGHvaiz/X6K7PLr7JRE9uK9xt7rWMUMAMx11qw1P go6zxoHxyVKLU0jINTP6d1okU31P/aaxt2NnFht9kFtKcVV/XJvoa+J4uB6lP4GkrHst HF7yI0ZFxFmhiMrWFf2owpl1sZiCEO+lgV12V/DFdhc+fiommu50f/bYTTa+ouDZT/7c 0tKDClcCENFHP1MMhiGcvWDWTqQzoMYOvou9qwRqsr9AEr7LsAMgtFyphV5V7gAEubXK xFMA== X-Gm-Message-State: AOJu0YzkDX2bR/BIVEYMX4tGsV0sAiqGmJghdMFYWvDQkcxPdb/u7btK 6m9PFWXeS1EiforeEzu2wde87u8GmYrgw7RnEHWROHZe5rsBA1iBXl7Y2Mbo1D/Gcovu5kKykfb Za9Wd X-Gm-Gg: AY/fxX6jFL22sJ5kTnCXGivzMkBSb0dWhvj0chukdIm+6xXus/ODtGubFr6hpGK9i2x CaO0K1Yth8mZx6zV7hCsig1mGMfazCTCZAsM/ickqy/kMoQzIqUZ02XwsKWizf8gW8Mud6slQwX ZFfvOB5vz7f6A67of0DizqxQL8KaHD0IBv9yj6JG6eNzCNbwIjGyl/oG+PUmw5Hqr/TUWWHY4DQ sc27k8CN3N29I4nxKzR1HzxKCdJ7+Q6HrbygcQ3V+Ec+Jdu0MiapkWaR/2X5KB3kpNNJsp1SPep d/tsrskD5mBGca8Pfl6UbxbL1XZFMrQxIgZdH87bPaCGTsXbOslKiFnlDknwqdcJbc+FeIlRHpx 7eNWpyx8TMGZ56GPv6AxEyOWZIrEuvlztywKqVj8kJTx5PV/lUxDwLJP/MDmqubZquo52sDgA65 3XFo5Z+PzPI5FLC/uUr++2KS5KplSGuB+v5RkuCIHGI+9EPSb/o7uLsTYUR3tYNq/o X-Google-Smtp-Source: AGHT+IGJVK3Uz35XkrNJtJ3xeiN504NaAEsJx58PcuOYaLTmUF3N+HtO9Rzg4xPTdx7iT6hq+cbKog== X-Received: by 2002:a17:90b:2e4a:b0:339:eff5:ef26 with SMTP id 98e67ed59e1d1-34e921bc3e0mr35556676a91.30.1767390459856; Fri, 02 Jan 2026 13:47:39 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 11/11] contrib/plugins: add empty cpp plugin Date: Fri, 2 Jan 2026 13:47:24 -0800 Message-ID: <20260102214724.4128196-12-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x102d.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390550454158500 This plugin makes sure we can compile in C++ while including qemu-plugin header. It includes all C++ standard headers, up to C++23 standard, minus the ones that are missing in the oldest environments we need to build for. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Pierrick Bouvier Reviewed-by: Manos Pitsidianakis --- contrib/plugins/cpp.cpp | 119 ++++++++++++++++++++++++++++++++++++ contrib/plugins/meson.build | 4 ++ 2 files changed, 123 insertions(+) create mode 100644 contrib/plugins/cpp.cpp diff --git a/contrib/plugins/cpp.cpp b/contrib/plugins/cpp.cpp new file mode 100644 index 00000000000..1ff54896d97 --- /dev/null +++ b/contrib/plugins/cpp.cpp @@ -0,0 +1,119 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This C++ plugin ensures we don't have regression when compiling C++. + */ + +#include + +/* https://en.cppreference.com/w/cpp/headers.html */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QEMU_PLUGIN_EXPORT int qemu_plugin_version =3D QEMU_PLUGIN_VERSION; + +static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) +{ +} + +QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, + const qemu_info_t *info, + int argc, char **argv) +{ + qemu_plugin_register_vcpu_tb_trans_cb(id, vcpu_tb_trans); + return 0; +} diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build index 3d2d7862e0c..53d52c97967 100644 --- a/contrib/plugins/meson.build +++ b/contrib/plugins/meson.build @@ -6,6 +6,10 @@ if host_os !=3D 'windows' contrib_plugins +=3D 'lockstep.c' endif =20 +if 'cpp' in all_languages + contrib_plugins +=3D 'cpp.cpp' +endif + t =3D [] if get_option('plugins') foreach i : contrib_plugins --=20 2.47.3