From nobody Tue Feb 10 13:34:15 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=1768849969; cv=none; d=zohomail.com; s=zohoarc; b=HfBkR/QKOL0rs9Ag/hEO7I672ZyNpn3I9BHwNI8vtdb5wDFMM3x9GwjklsxhqsPVB47hP7s317/JVHZ+kFW/xnBrZQ70SMEVDe19pJQ+CTO4EpP3Ydj2wsjE4H7byb8dIvHEJycUbsGThDbdnID/ZSGLNO1MzmXIZF/jyejQ8xw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768849969; 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=MZctqSppWns1zLh31eFRQsbIoY++9vlsorD7HNDzT7s=; b=kC12SPHBgC1o4xHDs+gwziKHV9eflzFYUi+KtGHyP3VbDhUYVubpGgEFZvaxvYTwinGPKwmd+fNvJDv3AClUavp+xYGgTal7uphr7WExwk0j/g6xnZnJPR2qZTlnTPunNxIRrXSL5FlaCw9fDA7sQH8DafwKY/aTu2KDXVMQEcU= 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 1768849969960242.26266186685916; Mon, 19 Jan 2026 11:12:49 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vhufQ-0006rL-36; Mon, 19 Jan 2026 14:12:00 -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 1vhufO-0006qT-KG for qemu-devel@nongnu.org; Mon, 19 Jan 2026 14:11:58 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vhufM-0001VA-If for qemu-devel@nongnu.org; Mon, 19 Jan 2026 14:11:58 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-29f30233d8aso30956365ad.0 for ; Mon, 19 Jan 2026 11:11:56 -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 d9443c01a7336-2a719415f0asm47011795ad.89.2026.01.19.11.11.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jan 2026 11:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1768849915; x=1769454715; 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=MZctqSppWns1zLh31eFRQsbIoY++9vlsorD7HNDzT7s=; b=TaiQd4PIkGsYhY7tc2Gkad664E21ae/YHlcWby10WLSLxhH02p6pCK/XxZD8o+gh7z YKcrnZ/QC66pLt2bbyY0ubbOmTTHdp6Ook7Ncy0EKJYDSanbQAv/We5R7MgZvDujC1hK 379vArzMMM4Ws6Qn+7BDshPFJkDF2GaT+c+yPL4uLsEbTzK5CAf2M7Rue4xVpuWqdjFw GX+ihNb4kRZ5f8ozSDWzGDjeKkmIgyKY4ZjLGs9U5zM5VeHCiJdkllHU7uFGQ6w4tffM NUeI/X1wHbCh6nKOhHu+k2cpfyCZJxUryS+gI8WkCq0JSjtRQLbPDgne8UXimhaY/o42 rZ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768849915; x=1769454715; 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=MZctqSppWns1zLh31eFRQsbIoY++9vlsorD7HNDzT7s=; b=aOr3oc/CjIOD9GOyXHbc4pbEJuu6Fj0kQbZ6Q+QLxfePCK9RsAuUO08sxfiwqRggoW fJU63cjq+gQEI9KoC2/10SUJLToqRpjfz8XWOzdj/7/ppQqxhAxStrcFz7pLqnpgm22M qZEpa09Tj2EJSKcWV+3gp3kDs1CMRpOTvHRyALgbOUuYM5bsVbv/CN7toDyd6TxVT7kz sbjnsu/ZsV56sFxZAUEUrULVd6Z8NjPPjpd0NDKz+Rwua/+lZAfcZ/bSGB+ksnAqDPyQ /7VAKwD25Dr7MOKT9u7ZWfPw2LhZ5FA+tV4y851U2bqO5DU8f9GUZTK11qJOQT60jAoQ 6d2A== X-Gm-Message-State: AOJu0YzxNTIk2Y1teSEBbnr5F25QqjRX9IlyMNnOEqHeXjx8uagnRxM5 rrlBt3QtQ9RNk8eCKCwtLy4Y83hyYi+biWc1XyV2E2aUCJaJZL3/rFsOVJa12Hdsoa+sBrpA/ff rs1F0 X-Gm-Gg: AZuq6aJyr7dCPJAxB/GtTZwfctzSCnhEc8et53CGgW4UnB5UAmXSTIZmGV1ya1JL+Y9 h3KTvcVuhErJC8DcvTq0wLUTDV3O4NO3KiWd+3wIf3vl4MFtqy6iuleKIByPTAkr4cKIDmOjy5h ATklRZ9JYo6j7CvWRLkIdE8h8fomCphwnFitGGFmu8oDoos3pru+FR+kKCoGRXaQ1f2/yRkRF09 KefOzs08BlBOGITHMPAUtBVokv5vZvCWpw138tb9awQEwQa7TYmYYexvOKnnxswMBmCajzWUlBm 4HquUFfVF0GpO/2DuZhGBOB3wd/juD6NmYpcCqmH+sNxJ9Dao2lQU0RuWinQfl186aBKe+DlnwQ AD5BGts1v8w155Xs8bSYn8MOyxnJsovfCYhy5XB+/Bjb8wv61z/MwcH37hE2zvLC4/R3r3jTNJU zePSXwhD4TqRfmcP4RmL6Yhh+r2IC+1AfEXgiBILpWGn79hhP4FmdSPvCByRyAaBm+ X-Received: by 2002:a17:903:24f:b0:2a1:388d:c084 with SMTP id d9443c01a7336-2a718949647mr95861445ad.42.1768849915079; Mon, 19 Jan 2026 11:11:55 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Paolo Bonzini , Alexandre Iooss , Kostiantyn Kostiuk , Michael Roth , Gustavo Bueno Romero , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 11/11] contrib/plugins: add empty cpp plugin Date: Mon, 19 Jan 2026 11:11:37 -0800 Message-ID: <20260119191138.811069-12-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260119191138.811069-1-pierrick.bouvier@linaro.org> References: <20260119191138.811069-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::62e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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: 1768849972911154100 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 Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- 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