From nobody Sun Jan 25 10:18:39 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=1769279515; cv=none; d=zohomail.com; s=zohoarc; b=SKSF94mQtaq2NZONIfRV6hbShvG+7xJrD/UJcIl18GQbj/Dyv8OVdLXB2qPXbVBbRAVDUbhOcN+E9Ii3BP8mw6cUd6LX9jTdcE8pfJvjLq/mG7dAa5BdyXUY9Qa278W9/gMmFtjtJF48DOLI0ZLv2O1t5tzdLxtF9+GrlMuIN1k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279515; 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=rrBMb4pzsR09kFtei/WUANIUl/9qDP19I1CZ/cFKqvE=; b=g/TtPpy/8MyRr0j0DkmUBTUMOXW5p+7RK4Xskhv+Wm0pSkXdd2iq5QvfuFzgYR8LYKoKFCBQsp66yUlSrhyW3s5yz+LIs6uc3P7bV28/6xwhBPKn5m7Q6uK3nby0ObONWe4GrJJkYW0SY9LrGxP83vj6hx2Gcdwk7s5XifQKzrU= 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 1769279515960436.13712869695496; Sat, 24 Jan 2026 10:31:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiO7-0004LH-IH; Sat, 24 Jan 2026 13:29:35 -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 1vjiO6-0004KY-2W for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:34 -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 1vjiO4-0003d8-2f for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:33 -0500 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-82311f4070cso1284576b3a.0 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279370; x=1769884170; 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=rrBMb4pzsR09kFtei/WUANIUl/9qDP19I1CZ/cFKqvE=; b=Tp84lJ2r4PA96xQ93z3GAOY11PXe+axPN+EVsHm5DaniLbUvHpcvPI8WXhfaM9WqNT KmJds7F+DlzFV7Ubm3C9RZGuEVYooDDvgBU2GLO/yE0oiLU10Rm9fOXcTipWafFHdbVO ZbetSRl59hMu4LRTng7izoXhrSEoX3jSWJD/xQnIo7x+tCZNtIVQXsBm4l43bbFIeHtD rezja4lTvUv2rm3OaSvNd99J2XzM0oAdgIZ58t8Jv0J2AIvcEUO3aqAFg9VFzlFtOou/ EbLTAS/sdCbjdf6Nd2AL+xCL0xe5ZKp+ictqh4iW2y3Gh+Ye2wc0tLW7IzXhUzQC6qbo lvFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279370; x=1769884170; 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=rrBMb4pzsR09kFtei/WUANIUl/9qDP19I1CZ/cFKqvE=; b=haf77L6qXveGkA07QQ+ItfmIdmVnwAJzYxMXUBE3qc6Vulo1Bs+WvWPpIiVkrf+zwK FfAyMjvE2bHdCnNu5LBWiIHSiJJyvUvc4fAtzLuKAhvCzKyVbQdQbKa6rx/uS2VvkQ+/ JdxXP9NTyPMj0TsIoYRsEjXhcA1nVFw9XnU+F/KVJNV7SIdeIG7KD70e+VfIvP8XnpNE Z1qRaokEabyIevYMDipmETHl0U4uJvdTAS5Jr4suHCHJYFgS2aL13x4GsQr4j3vNa0U4 tWURR1ZFX8SjQJXE+WAYl2Dh3VG8HA6zg3rlf77o7h4S63aFn+NIWeeEEF39yhuoiGMb xBuA== X-Gm-Message-State: AOJu0Yxg27ieAwg/B9I1aQKaBhNQVfqme9fUS2SWKduA4U6hsfurzBVZ sCmkJZCOuusec1O6wGHEIr4L8xx2NbWK1xRKAa9KkTb/povQgh1wn/UZcVJh/f69z1cg1hK87WE dqCB9EUw= X-Gm-Gg: AZuq6aKSUurBMiBoOVIt05cO5bupSAVa0GigNPIZdsfbj5sm1Y1K7mdh6cpWvADxlKX I6G/e3X80uQJoUNhUthzHGXLez50XqCxO6LbykPz8BDhupunKCLs+SQ9aiognrLwlrDfed5DCLb 6CBBTOki8yDy9cx5XdpF99ZxFH4tQzkkdsBakJAtKmf6sHL3xGn92omy8L3ZfvmZ2LOisFBj1qA oVWSnssc91Tl7XiUGb4ZSTZ2BFsplAJeUrjJQVFmPK1baXGfxw+IkONpNmYq9+kKmaJv8vUBkfN tPnhw/A4i23GoIiob1BzRvDEpSVKX38TBhvF/bVoEMhsB+CzhdUqFYB0S/hhSnn6bOTxcBA2jNB hyWcRD77THN+/KYrBdLm2uE18zq6N/K44ewvdIgdCMza/87HifVVWT0ed7cPGgRlHfqccj62nX9 D+MAvm9sYTtz6ZKm/5ayNVeR9bgLNgUgzzmIGuinZc7pTBv9EJZSs3HuAg1qekBpr2 X-Received: by 2002:a05:6a00:4f8b:b0:7b8:acdd:23c3 with SMTP id d2e1a72fcca58-82197914069mr8911814b3a.11.1769279370334; Sat, 24 Jan 2026 10:29:30 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 01/11] plugins: move win32_linker.c file to plugins directory Date: Sat, 24 Jan 2026 10:29:11 -0800 Message-ID: <20260124182921.531562-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 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: 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: 1769279518150154100 Content-Type: text/plain; charset="utf-8" Reviewed-by: Richard Henderson Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- {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 Sun Jan 25 10:18:39 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=1769279406; cv=none; d=zohomail.com; s=zohoarc; b=HpBsiiF3PuXsn9Ij/Cu21XJKN8+kSzM64jJId2IyJuFVmlUv1K3QAUqBbSjGZGN9gMCuOCxhSM6uAwfV4mlbHCn0biCGUzVCw7hXB2OAg+qAFFoTLzJjNEWTXhIRQLdZlyetN/rSo08S2pbVhvzz7LGBNHE2rAB5/Imxjag0Fpw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279406; 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=oLdDxoIHP5wtLXgh0saDARWvUU6NDRvHE/78rry/zWk=; b=MO6VwFzs9n10dJMevg4TjDWd064W1Hvd/q5z+gRFnQSc1nAUX+ERYuSO5evwF/3GBgSQ3jDRpS9bkiRgKBmSw6YuSGUSQwf/rYTcTNmreEi1Ykl8wYApxDNEYUoofXB1J6/I8+1rHSF2oLn68CkgvsTae+NyRgroRbvRsWXi2g8= 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 1769279406017777.5492164646361; Sat, 24 Jan 2026 10:30:06 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiO9-0004M6-3D; Sat, 24 Jan 2026 13:29:37 -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 1vjiO7-0004L6-0B for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:35 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiO5-0003gf-9S for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:34 -0500 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-81db1530173so1688458b3a.1 for ; Sat, 24 Jan 2026 10:29:32 -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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279372; x=1769884172; 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=oLdDxoIHP5wtLXgh0saDARWvUU6NDRvHE/78rry/zWk=; b=hh9TBFbNLHP6tcsTeDodZstzqDUtaWnrsVrDrPo8uGtoLVErbw8uuPoSk38xPPFJhw IIt2sZAVxR+TowH2WyEQnWiXyMzWMGxEM0vuIjxLmH+Me5kgM2mB7TlmUlith5crAiw8 xKbvVXHjY516F2AoSqW6GfMOTs4770R4pSoQ1ElFzWhuoFC0AIrO+QQJyMXfz9rSIZlI HgNvMc1Y4f19IS2xdOZHrC4N0AOCMDMZ2sJzWjaBs0nrUmMcSSZh1EqsGCQ9RG4qu59x s+ehZnlDNNuMq8SvoDeTRqAtOn4wxfJ0dJhexyqNQu0m3VCZ3n7WLe8PTt2oUqv1gTUP C6UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279372; x=1769884172; 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=oLdDxoIHP5wtLXgh0saDARWvUU6NDRvHE/78rry/zWk=; b=lFlkhDPYHSkrQsjWvzWNTxNwkRuFh5DLJjyORbwKAtxd7EOW30/f+3rl9xI5xBSn/0 HlShtY5tDHQi86JFbmHjFZBmET7YFobqqc8RRbAYU31koFYGf1TF2vIG6IeQKUCA2mKf 1kFZUhs06okGCq1XdBG8RXqC+h/czK7pShMzv7jucaw0oQy/kSj+wHhROvLTrQlF0Fom GFhtpk6M+9o5Ir4kBEZ9GtAasB/e2Hh+uwKqtEdQfRazx8Danh/eoWrDFwXhYitAf4F+ wuev7WTV7x43t/UHAAGZWa57vjS7qXomJPy3dJfBu5jrgYyDLxBadoGHb+8LdXXUojfs fAWA== X-Gm-Message-State: AOJu0Yw4FUVm+oesyuHpxSoj+hbDgx3EsrLD0wgNBgMbBzCtaYxSHPzI KJ+DdETM3unFXdOYA//eJ5VijFOMQ6m8tTTUq3QEYDlVuecqQpqyvFioFf4qvxZSwH+dfg3R/HP ZFUjMbAU= X-Gm-Gg: AZuq6aKBM/p6x8KRfnqHRVwsT0TamgSV+5edECVRIK4wYfDPrCv943GOdrOH3HIxxGd C1HpAhgto0euL21jq/DqkAQLiLl73ZrQUm0mxo+KM7BSmJ6yVjZhUGem5MOeLSkxi9k6YQArp21 Bsnc7plCEGy7NzGydaI8dYXQi3pMeq8/gJlXVAQ9KU4lTEn+DeZ6+DjeS87G708OIqJmosTkq47 coyiP9ctWqHvoKucbyFYR6zyo3juURWxh9YarMS9AmJot7+59CDU9D3VUGKKzwpX2cRxUumZ1sJ K8W9yvpopOfSJl2RcnrzSzocgYxLfi3PdX7y1D+58763NqJNujrN5gBWICtLpFtTc1l0YKFmVQa vsRQHXH987Gz/25+FH0jpnspQ1oVSHEAWSMcQaie2ME+jH7GQWfWlO7Qz5rYgpkOx9fM0SPo7Oz UqXNStw8BFKu9px1AzTYTzhlzyLq1rfxNFwNSWsIwGUyT8dN1OhEycWd94SZ18sKVr X-Received: by 2002:a05:6a00:2381:b0:823:73d:1370 with SMTP id d2e1a72fcca58-82317d9d9e6mr5268026b3a.13.1769279371671; Sat, 24 Jan 2026 10:29:31 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 02/11] plugins: factorize plugin dependencies and library details Date: Sat, 24 Jan 2026 10:29:12 -0800 Message-ID: <20260124182921.531562-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::432; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x432.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: 1769279409082154100 Reviewed-by: Daniel P. Berrang=C3=A9 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 a84f14258b0..e54fe9863eb 100644 --- a/meson.build +++ b/meson.build @@ -4450,7 +4450,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..6915ffa5fbc 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..d7823704616 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 Sun Jan 25 10:18:39 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=1769279402; cv=none; d=zohomail.com; s=zohoarc; b=JA2wJqfWMQGGg1vNujfpZQY8FCBt5OLT2/6sNPTE5dW5P1nKeqbKej06LDNWOiXTeKmeZEopPEeqm7T1Rvs7YMNngLxPGXhXTpx+LtdKYKkEt3lFx4MszAhnf3JMSBfkq+HBnOfCMcbpbIEEznrS8uJjAqJcT0WoNCW3pq8M+qg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279402; 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=ZEmhWV50Bdw75mIkmSTg87b5KWsClkrsHwxNSDCjPXY=; b=byW2fnpDKMgGn8XBEMXvbJTittTjwlnP5QodKLiNB9BNbzbbJTFZB/EGoVUkYm/sLEKy89A8r/+bvZHg9gHmyLsm4ok6lf+Rcbk0kY6cLs6gkGWOQwnKv0uY2VwYWCZWfsCCnH+H2zJfG31yGsJ5+ONXAFo0tGech0zJWFZqjzI= 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 1769279402491505.8024612485085; Sat, 24 Jan 2026 10:30:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiO8-0004M4-Me; Sat, 24 Jan 2026 13:29: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 1vjiO7-0004LM-JG for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:35 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiO5-0003hE-V3 for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:35 -0500 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-81f4dfa82edso1420400b3a.0 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279373; x=1769884173; 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=ZEmhWV50Bdw75mIkmSTg87b5KWsClkrsHwxNSDCjPXY=; b=t6H+05dblIOSRNav/AvECZGd75m8f1MWd20mcPhSQJ75SNCObl69pxSfUxYDOR2N85 KpsCQAw6n+GAzG/2croyawNquxX8PLlsQd8SKTollYZe0hFQENk844MqiAJrLUqmvIWF 4cO9k5As7gbh5rHUdCK8uCpSNcIQekkSjXdzVxJgaeHqkc0SSreHFrvCxmA4r7PpGc/j U8KjuVCv9wBRNeDhvxv+7/xNsoNi2Nk95zjgvIdb9tr1w3R7igzRMCxTdQLl6tMlolwv 5P1MUY2cSE08Pr+f0qM0+XQ+ndkF3XnsQjyxonjvWJvtuF6ZnbmR5BBAOx6HOmAfv9zT oGdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279373; x=1769884173; 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=ZEmhWV50Bdw75mIkmSTg87b5KWsClkrsHwxNSDCjPXY=; b=hoewS6zaailqcL9A03Ny8vw18ZP4F2y67R5Ri2IYtcLIZtYuIieOoS5qNUA1bXPVnD 3wjSxybWtsb6fjjd6zV+VTpsroU7WXVDVwjke4j+zL7MGVli+qWW7uAsJkqdKKHC3AME YRrVIGBPUmppjzyN70wdNdGbWj4TxyRuU4lRvQ/S4KKh7G0J5mXHpVJ5Ut8+Seo8LE4J X7ggG01U4RluCQahTh+3xxTJhwStadkRIWnpb4CcgtboDlHLtD7ngogeeSgxRx4Ur3qZ T0wB53jkonKtV9mVQZgijYUNyhzDoQS94OtLLqeCFoSgLVD0nKLcRVK8wfV+5tX/wikE evDg== X-Gm-Message-State: AOJu0YzVGfBxEdxYbSlIW+PrGBPjyA5g79pDPSyGSRCYCXtprDDA9t7z jrZyLUMALHxNVxh8OyrM6w0ZK+PJd1ja0BxtNyQEnoDtwaSabVXRMpta1Xrooir0WygSj2anLCK nDAXtv7A= X-Gm-Gg: AZuq6aKC7yaNSsfucNcA6S5iP1MQk9DPdx1jXK4IBuOWuKajEcZ5PEFu8GBEdZNxVpp IPzdrUPgSBEGr0Gr9oUOp0DEIs4k4e0SV1O2QM8taDwI8OnC++Nc0bH1hCzrA2CIf2VPHsZivtl Edl4OBs94hFOb/kVguw4PP8CFf8f6y8myY7/0Ps3buWLtsqhdYX1hQRHCNAzVBN0Ei42ox4L05g HPahEsEly2qh1udQEJ4RP8olDKDVXJVpCKt0mohQKiM3jjhdkZwXK5j/GG9LA3OafZqszLVLv/E coOj3gHAHQuVXK/EId9KBbEp/WMTG9Fy3DmkLylCRK/M78Dl91IPzXnoe7JpAB8BkH5EuxveB29 FigyyAcJRtZcW7np/wYSdUy1Z/YeCFrkkLzWTT4uFrZUN5Sf7YexSQam1AzDi9WmH7vGm9URCvD Sj4qchW+8qH3ypaE0temBWfiQGYXdS802hXRTMXmHPsuZ5OKhN2Dwv4yDJ1z+btgYu X-Received: by 2002:a05:6a00:1819:b0:81d:a1b1:731b with SMTP id d2e1a72fcca58-82317da6160mr5850319b3a.19.1769279372594; Sat, 24 Jan 2026 10:29:32 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 03/11] plugins: use complete filename for defining plugins sources Date: Sat, 24 Jan 2026 10:29:13 -0800 Message-ID: <20260124182921.531562-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::429; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x429.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: 1769279405299158500 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- contrib/plugins/meson.build | 10 +++++----- tests/tcg/plugins/meson.build | 7 +++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build index 6915ffa5fbc..3d2d7862e0c 100644 --- a/contrib/plugins/meson.build +++ b/contrib/plugins/meson.build @@ -1,15 +1,15 @@ -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'), + t +=3D shared_module(fs.stem(i), files(i), dependencies: plugins_deps) endforeach endif diff --git a/tests/tcg/plugins/meson.build b/tests/tcg/plugins/meson.build index d7823704616..303f97f9679 100644 --- a/tests/tcg/plugins/meson.build +++ b/tests/tcg/plugins/meson.build @@ -1,7 +1,10 @@ +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'), + foreach i : test_plugins + t +=3D shared_module(fs.stem(i), files(i), dependencies: plugins_deps) endforeach endif --=20 2.47.3 From nobody Sun Jan 25 10:18: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=1769279429; cv=none; d=zohomail.com; s=zohoarc; b=bPExjtsaP3bDCyi5s91zkgYgklCQAa7f6Ta5byHGbsWLJcNzEoKSa5DHQV98oOlJlmP5j0PztAtcYuPZlS9GznV/VLjGxwb6DCOGxpDsccJCruWUEWpXfndwu4aNQfMLzy0Ae1xf3EP6hK8qPxlNe15FGBd4TaFl3iIQcQSdQjc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279429; 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=UvR1Snlpk2uTlHbA8GXZk1IgzFIJTiP7/Ri0kDL87U4=; b=UD/+rPrW6KczpDMnXhlIxxW3VdKh8MhMmg6IdZHN1PMYA24EH2eWvxsy0O5xb55lVbcxC+nQB2EV+s8pXSArl3nxKU+Qwkr23zv1HtsYvGNYbIlDjmIAf+X0J2uv8Qgb1mPEUhgYNT13VMlTt3dzw1OtKE8iyvAsM7hyKA34X2E= 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 176927942966928.755408207528717; Sat, 24 Jan 2026 10:30:29 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiO9-0004Ma-NL; Sat, 24 Jan 2026 13:29:37 -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 1vjiO8-0004Ls-CE for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:36 -0500 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiO6-0003hV-Vp for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:36 -0500 Received: by mail-pf1-x442.google.com with SMTP id d2e1a72fcca58-8217f2ad01eso2940728b3a.2 for ; Sat, 24 Jan 2026 10:29:34 -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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279373; x=1769884173; 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=UvR1Snlpk2uTlHbA8GXZk1IgzFIJTiP7/Ri0kDL87U4=; b=hTwqKdgE+sg7yNjIj2ghvoComDFbl7zuY6MW88cNHlPblEUgS/2BLalxfzU5lOIHj4 ne7PEIAvZRD0/aW+0GEna18XuPbj13E53lmg1LaWcCzoYsIrl/qRc6KRylagYs7RqJQZ qJrOgpuKkUHcXhO9N3m2xzTY926NOj4g3HJfmDm3sV/uYNjMA9Rbr7CAhx37fNzMiAEV 5bHZNTh3OdMrPYtGjSUFOevCeHtwnHjTMLfNryUrKSFZLvhIkD81Kp3KUequtqyBSqaU EZZZp+pQ1GBZt3tqxtri0C169tDCtwLNH4tarZ8W5MI3uPQuVulZCeS/+N11CUuL/YRE fy9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279373; x=1769884173; 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=UvR1Snlpk2uTlHbA8GXZk1IgzFIJTiP7/Ri0kDL87U4=; b=kVbmO16jodk2YQdrlVAk9lUCxvFXSRrWKuDegoZD6knXO5gzy6pp6JP+vOxaDzkqYA 0T/pGFkPQ3vIeLMva0jOfzB2KjLCjd5Ij8z/4HKW7oo3MHUASCj3GY4Nob9ZF0nMfZqn t8ognwDB+yBK+pbB4C34ypRK8gzluBk0WKmkqcBRect4tMwxiDEYKg45Ljbu7N95eK18 Qe1u5Qsh+9Y4yQRf+rl24/C0uUS7lAq7njfw8ffByQru7AwvCODsoBeMfIkLPJDhrNu9 Qvhdlc2lOCUfafYcgUQ0EpA5blHiTi+gfE4H2HvvcWY2ExoEiPYBVshQvXgmFxqT5eCo uwKQ== X-Gm-Message-State: AOJu0Yzrk34G9K34wO/xOqyAloTj7g93ec3rEzVd7AdIJ/WK7mSyONRU 643Gv34r6Xc3yGwRGF8Pn4MVR3PsWyvVmdaodlsYPkoTJAeU5lJLnL83Z1jB4Sx6pEglRiPqaES 2Okkn9B0Zqg== X-Gm-Gg: AZuq6aJCgZfDyRA9mRsqXSUS+vUTucS/cURmx82ob2JljSDz5ydTY83rjbj4X0tTup7 eMXrtTcVWTnuUFnF8Fp3bGH8YjmbicvnFjNn4zwku6Pu/SJMkZIR617n2Bsiz7VTXeuItXmeQ2F vkAyHsROiMWPpZwJa0ytIEcfYtJzpM0baNdYgOPveRDEcAKJe+56hwFgWOiONApClHH7y6F6Gfc 5pPFTo/2BEITjFGeTy0iwZ/B9wJBhWgBvwQCuZQZcAPVTlvHgZs7g4PlT/m/n8AUdkofBmjis9B w8jQU8yzq0g1hsKRV3HB+fy6V/637GwZpniIQ0YTK9Uv9ZxmJ/H0/bcq3eASBeV9hDrNb3lv5Lb kqBjB5EdT6DiL+udvGM7rIO44Z2/xsqnENIgJUTail+Bed+KDiGiz9sPOk9MWUp+xt9UsGv2jx7 HKu5ogwZ76BQz1TnjJAHJdcUYif9LOJhUt/S6SdZqjLoG9JweSwpDJTlTcKhcx3/BhuAONzZyAH 14= X-Received: by 2002:a05:6a00:4b0c:b0:81f:3f88:89f3 with SMTP id d2e1a72fcca58-82317d9e2c3mr6655965b3a.3.1769279373492; Sat, 24 Jan 2026 10:29:33 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 04/11] plugins: define plugin API symbols as extern "C" when compiling in C++ Date: Sat, 24 Jan 2026 10:29:14 -0800 Message-ID: <20260124182921.531562-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::442; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x442.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: 1769279431017154100 Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Pierrick Bouvier --- 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 Sun Jan 25 10:18: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=1769279402; cv=none; d=zohomail.com; s=zohoarc; b=bCSvTrBIS1bew6RFZjb09E4lz7kQKPjVTfED0db7pN3GIbJOrH/pOBLnbRtzO2lt1mY7nMT5OUB1+ePs/kqY4iwZze758TlZJ+61kehSC+huOmXXQJX09YgyqTsUOT2P79BDXJh2ZAq1QeTiHLS+Fjf4U7lMAs7H3LFKYThe+UY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279402; 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=yGgLGlFAGuY8onq4gi0buc3E93WA2jrqRIHzedx5bAc=; b=d3y7bKB9H8z3D+6+cviHhDnqDa3ig7tN2lfx5zBlKnSGoe4TJkuTHGy0tcoiWO6UIcT9anBusElPi3QTid7QiJquzoIPaxOcJRbAscPgZzYnIavpxbRjjSRDytd87H044123ZzqawjTV8qAIvQkmStOt1kDQk925ClL8F0ja1dE= 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 1769279402494212.98130320061523; Sat, 24 Jan 2026 10:30:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiOB-0004NX-4w; Sat, 24 Jan 2026 13:29:39 -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 1vjiO9-0004Mg-SZ for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:37 -0500 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiO8-0003hj-2T for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:37 -0500 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-81ecbdfdcebso1730873b3a.1 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279374; x=1769884174; 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=yGgLGlFAGuY8onq4gi0buc3E93WA2jrqRIHzedx5bAc=; b=ZNlPE13o2/hyZzWaAMSIx3Q/ezwlmhOwZj21QyG2yXpkfeS/c/MDqacvgnxnANf2Gq nP8uHq1pkGoEde7k4MhzfwhW1D0yuhJeNCBYYWcQW0xXZjvnkErtQrrpMxLlYAXq+NTl zlDvnIJ/CTZuogDRuWvnMY4E3y3+A1gfHrkIc4FhAk5VwPa4yvSTBYoqLvK6u9USg5CX AdGCzIW7AhZRYP0vOVz70e/mCnCmCsTTMKuHpfBj6VNU3Ma4CWcgDuMu9Y7g8PAzRIHH fLf5Wib8URLWuQoP6lTrNUZisb2vkkWPa6KDDq5K8sFAXUs1alCAW2TNBe4ksf/zguO2 SwXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279374; x=1769884174; 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=yGgLGlFAGuY8onq4gi0buc3E93WA2jrqRIHzedx5bAc=; b=XlWBE+iTGGAym9wWPo8EkMeC2S6f1JVsw0IZUwGAmjsi8IizC0QND7mMWGM5qw/6sB 4B2XguaRN+T1vLRAgxZiqkRIPri2p3S8ASpZVzUNPz+cSI8gPSPhMZiJodFtxjWUGapJ p+Vuys8XqupFEiJWwwEAuHHAOaUm7r9A0C+7pOfbEctXrfhmMM4Jd/zrzxe5ijTiX5hm 01OF7g5WdIA6u9BUfW2ILTz8wYyo4LSBMp8EuQM6NFsQ4NYrf0RVSMpmTCYgPiFHBopu NFeVi2UYz3ixUa4zS5cqzWRmNYsODkuBmlV5jhi6bEBVuFcS3zyuqFr/9HpC9MVgsp5y Qafg== X-Gm-Message-State: AOJu0YzieehsCpsCJYE4gMwWsU90623MfiR90DuIYtE/DIIBQyF3FMor EvMFI4fYF9uje/jr7GoQJJbVlGN2KMtb3d0h0WAu90O81VGUFJHbU3DxSUneqdGzeyO/iVXnBJB lVjbmqgc= X-Gm-Gg: AZuq6aKPI+dUPF10nZPxch1aI+Num6stxAzLWyEDun02NJIdYlX/8q8/oVJvXh73g1z w0IgsHnj4mPQf2Iw5szt8KHNdmDi9Mekhk7Vh6tDf8o4lKK+NfFSuCSxxx7rf5XVX+xMFj+/rIw Y4IwyvXQDwVSCQ0iBSwFsf3cBM/Gewokn/mml34xmuVZjzglD6cLXaz7AaWa2HSbWEggmDzF+dG NovhyMVNSntjOfttSQ42wYyGM3nt/doXuD/97IIyFHSqIdXMirdZGvcrc3gABXeviBfGpizm7jR cbQCOfix7htJYG33aTakFVw3ndzuN3LMs1ZNU/GvtFtH4qxgus8qdt9Dcma0jq4NUN8g3wpC1lY XJUIDyIwJSsFaV/0/Rr0Cibs1WrAvE6ahloNB9mQcH9nW2DySsoCB1Gu9fFoJOgBCO/Ada6a8jy HdIpqjnUoPsyCK0Xa5WJUP3MYdNRO1pjSS4mAhG0naDAoAxPJ+8rBOlX1+sQ4b9MBB X-Received: by 2002:a05:6a00:14c8:b0:81f:9b97:5e4f with SMTP id d2e1a72fcca58-82317e6b4b3mr5738221b3a.47.1769279374332; Sat, 24 Jan 2026 10:29:34 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 05/11] tests/tcg/plugins/mem.c: remove dependency on qemu headers Date: Sat, 24 Jan 2026 10:29:15 -0800 Message-ID: <20260124182921.531562-6-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::431; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x431.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: 1769279404668158500 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 Reviewed-by: Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Pierrick Bouvier --- 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 Sun Jan 25 10:18: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=1769279515; cv=none; d=zohomail.com; s=zohoarc; b=fT1J950d5m895gxU08OebCr6laM1NzEBFiHQQpST5kUjt+bqydp7skewbUX4Rl6GLkE1KuztnxsMjbCanMqedMemSqwRyZs/BDPLaJ+XrelgpbVX0zbX1gqyU3OU31zCyXjODtf7s+a7Xfd2RgaGo9w6OoqFDKGjximdTT/Fpys= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279515; 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=3H6hIAF7SZwgrqiWVBpeeffVKbo02h7eCzEGhVevvNQ=; b=hYpAH56OY8wxcHZkMAwcIEj9L1qgf3sSHDWsRAcu1YXmtp/T3ddI97CouGBffQb6e8MCGUlgO7Fga8oqwewUEY3xS6z6rHFcAXmgCuumkgAudFS/vqUCztFhaa6XAw7GAmH2PGNkQgfSOoYelBHGCG2BTcoxCdlTEPYVKTnsNCs= 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 1769279515530769.5959652724722; Sat, 24 Jan 2026 10:31:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiOC-0004OQ-In; Sat, 24 Jan 2026 13:29:40 -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 1vjiOA-0004My-Du for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:38 -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 1vjiO8-0003i0-NQ for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:38 -0500 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-81f4ba336b4so3409124b3a.1 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279375; x=1769884175; 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=3H6hIAF7SZwgrqiWVBpeeffVKbo02h7eCzEGhVevvNQ=; b=w4gLSr22vpU/K5M6GJ+ie1oUdIlUs0WQdNfJnccjU/zxT8OmcJWPFIOxJ5EGyuOo5y vH8Mnj7pPU5qL0LPUS2+Dje7Igaw6b1D/XE6OhKWR2V5y2u+OZE6yeFuQ79iAFkqaEFQ BopRmV3ibg6z17vEzMiL0Wti8xDiVlA0PR9oiumqNRNeynJhaJhkL07pDa7dbbSM5sLe 0gPUFcere0dfHyu4zUXxyVDb9ACNjKTOrxZBxJMO2mRI8q6gk6qW35QDT2KaZJ4+Z0ZY UNz2sf42GjoMHVZoNm4RRJeFztJhCRfP2dn0dSfS3flxlpkn0SJdele30wJdF1IFoPxu Q7jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279375; x=1769884175; 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=3H6hIAF7SZwgrqiWVBpeeffVKbo02h7eCzEGhVevvNQ=; b=iS+8Tv1caBoeME3JzXsu800Y9l21SEfgTwoqQSiGcgrtr0sqX0B/lFK7evYJ15xsJ0 PBxVbadeptrt8LfBcIOpmDgxLqMUcCvCVamc/ZMttJa00aAiaTCTypdx20Ma/YSxstDu EWdZyhZq4uoMmo9Mka0/dumyRqjoEH+52wVogYun7ONAE+D4UPfPOXh6dTBJrHNH3PjO Yu+YMzRH6j1iexVMb0jcbrI/MwGq8OSUSzTO1Y0SHw2YhZNoqXIuW3VUGL21nFpPc0Nd j3t49lKLv/TQR7pwPesWKLz0MBZ0sXP2alBwXjAcJmyloDLTAM/p26j0MRdDMyPPYof9 9ynA== X-Gm-Message-State: AOJu0YzYCc6Lwf7wnOIQNm37bfiu/+MligUBd33vN1lLNEOIn4Tlasft CdvWxxf5JMqoFev4IaYZ42SCq4NbDkQRddXDPyyUHdXvFNn/TSGkabaP/93ZbVz405aMdI7SmMP GpQbLYdo= X-Gm-Gg: AZuq6aIA+ydjRJMPVS9qpRa4UnzWvebD4NKFuvosHNNbvra0FbNd9UqEiuuI6uufz1F txE0YGB5mlCuZREHB5jXTlWy1pZjgNhEbgWb/PRNpnUcXqt99ocnctd1R3DD7WQMq8Fg7L0CYap e5yxOw44uvELU/J4Y6OnW6fpjkWutSl2jhxuggpg7LQrEhSmzTaBEOJ7fhgNVZdSNBfvOIvrmKg WRrGffWVavxVwh7gS+lyBUkCJMYzPh66LHj3RDgSXJi1ftMMjL+GhQzNp90STE5YRgrVzEFxWvj CdS54RI9Jt0fncDSYD0F1WIzc0F4yBXC71HlApjNva3eJ0Hrx+8/t+bfp7KyxjxMs/GWv6zwPIC 9JvikwsZ2xmaAnHMo/2fN7PM7db0XmF37TImmXlKlrsutinsdOJJGQyO76eWp2m/OoiRauDZU97 QmXMH+f74tOb7iub3NdzpzS2QzoBhUU3YoOUEboPMRY4mtKzih6EjV3c/GpvlHSVB/ X-Received: by 2002:a05:6a00:1a0f:b0:81f:22ca:257 with SMTP id d2e1a72fcca58-82317dd6c5fmr4910802b3a.20.1769279375196; Sat, 24 Jan 2026 10:29:35 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 06/11] plugins: move qemu-plugin.h to include/plugins/ Date: Sat, 24 Jan 2026 10:29:16 -0800 Message-ID: <20260124182921.531562-7-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 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: 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: 1769279517795158500 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. Reviewed-by: Richard Henderson Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- 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 +++--- 6 files changed, 8 insertions(+), 11 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 e54fe9863eb..514d48eee72 100644 --- a/meson.build +++ b/meson.build @@ -4446,7 +4446,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 --=20 2.47.3 From nobody Sun Jan 25 10:18: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=1769279515; cv=none; d=zohomail.com; s=zohoarc; b=GXTO7KplHtLFXeanD16pdJPNWMWumJDf8Vamnlc35V9Nt/AP9mm+aLq57NagYqu+oHKzeiRvFG7il3xy+GdHxycn1KwythLJhZjJ+qiN/+qWUmckY1EuTE9OVp7vkvupcgCVNmuBhlJgpTOFC6rhjYGEO9teptxKLC4M3BXhSx8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279515; 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=aNCaHCsdw3z4/LRHE0WKFQG90phZxLcR78DnNdx9Xiw=; b=nvOD87phd6V6bGud/560ELc3yAqBbmxH9rHYwzXMlQwGpWgDQ0i9W/9kvtLT66xXv8kIdX5LWIn0eT3U5HljPpcXbKfqmnDTrGzYvE2Abyf5882W6HDOwemKuGa4Z5Id/TI2I9lqUzFOdeAp2WJ30j6tM8cqY8RlAODfi1/Agwo= 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 1769279515863887.0900389189753; Sat, 24 Jan 2026 10:31:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiOE-0004PY-Ox; Sat, 24 Jan 2026 13:29:42 -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 1vjiOB-0004Ng-9d for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:39 -0500 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiO9-0003iE-FN for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:39 -0500 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-82307c6902eso1413414b3a.3 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279376; x=1769884176; 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=aNCaHCsdw3z4/LRHE0WKFQG90phZxLcR78DnNdx9Xiw=; b=i1mqdXt3VpdNCYDBjwrpi3q4cVCoD86TK07YLgoDGeaBJ66n0Asxz9EgVFdyIk/Da3 u6M/65EoAbUtBG6Af+h6degxYQanmPyA1BME/I755ozfczk1wh++Sqgxg1/6d49VrocE XeBFOBt3/q9wdB7BZQG+j17XmibXbsocbtYRDD/whp0R8efVjaNietRiDMUBfDUbt0n2 Hq6BPEr1+rrGmSFKWpcMjYqSILtCk0qNMTr5gHIvbhAgNQKa/6cidXJ6r7LIp7zEIzZj +0tTxTz920IQ24uNmsKyEbCIfEQM+Ut+HS2NG9fDwdYhv9GTk2CJc+dyLIqQveSymsh6 ojxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279376; x=1769884176; 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=aNCaHCsdw3z4/LRHE0WKFQG90phZxLcR78DnNdx9Xiw=; b=QXhaqu9Cun3d+GatdbaqM2tAhcDlSNxyI/puZE04R5yPv+t1tQOPsJrOgbyq9QS6OB kbE7DWbyfBmRL3fgSiBFDCzmh0VQGsX7NJypYunNeaSOoI9vbHGVjN5jYLwlgebpu4O9 WcnHqdypv2zIMqwin/IZN8TsAInozSVsXxsrl+0727GUqZbHtESrHgcE5e/8YVkyHdxf uWInrAG4fwg3bN8Ghzmofxji/ZVCPIA/e1k4VdMlF5UqB/6q1EdVxGJddA9tasvUgjKj RHMD3es4Ns1IcIZ/vn4FMGTvbAFFULwwXHh9VK93Cf+flSxD5zfdnYjIYL1fXxSUWLjJ uClg== X-Gm-Message-State: AOJu0YyGoZPglMa0ATIl2afAYhtuKiZb1SucWuYpZeCsEAqcOLLq9qLt EXiYdZDAveOgPhSRSnTy9BD0p58FOCKbwxQ1AzovKJnaQBOIl6ZQrW9HgzdPQSjowTLTBPy4T9C 1C8bhVXA= X-Gm-Gg: AZuq6aIw8wAV7Gw/ISwN+f66SCyRUAnwJCYK7i4nTsCYvd3cQXUu2jWKrd5nB4KaXJv amRxPXP4GQ31qHTHNhBIFIGUIj4gS8yFhVkPZ3CQUCPxPlOlLmtY8zdDbvstrpSsDxUbwg+OJxj m31dMJpcRjFUROuVxsOHDXH+/AsxUrgZS2zwh7hx+/U5pW/5BhnkznChH9RhwNPFcst1fsJFLxS Lut66mzyJWYYc6yXtGpmVJXXCpMp0H9QsHpnPX1fn/o1skmsiu+wpS56xxwxwXbaZG37hHzNoy5 PSo4y+Xtl+iNRKX4KQlXFbB/avMLmEYZgKvNcdYcu5J4wO+JP3pRlUfjd79o027E2auDWg4XQyV DmASWswHfJhIVXVlVrcZJ7jb+1bAwVwC4eYs91Mw246QZEYXp0RvWeiIdZBOcuzNAXgoV1HiQAE eVZOhOXASKZcgYhQDptZtZy9+C8eXlBfIShdzwRfzflFnQ5fkTdTj0jYPl5VueKiQi X-Received: by 2002:a05:6a00:806:b0:81f:8084:7ea0 with SMTP id d2e1a72fcca58-82321575ffemr4262163b3a.7.1769279376017; Sat, 24 Jan 2026 10:29:36 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 07/11] meson: fix supported compiler arguments in other languages than C Date: Sat, 24 Jan 2026 10:29:17 -0800 Message-ID: <20260124182921.531562-8-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::436; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x436.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: 1769279517797158500 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 Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- meson.build | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index 514d48eee72..c96776bb746 100644 --- a/meson.build +++ b/meson.build @@ -682,10 +682,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 [ @@ -744,15 +741,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 Sun Jan 25 10:18: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=1769279494; cv=none; d=zohomail.com; s=zohoarc; b=ES1lfjI9HgvoICUVS90CINNcdtD3YlfNxZpyhNP94U/DlW3x+BHhbB79qrlqbV+3tBbeBYwRCJJLgKGQQP9exsa+dl2bufBRFROwPBLmLNmke9Oa7k4M651U+LSM5M8Q+E03DZON2QUqSfdQa790+MLyFOVFWWhpwvLOb8BI2N0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279494; 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=pgN4lT+3Fn9OxJJ4Avwf4Qy3fV8Y6wNBbz/d+1i1a1E=; b=aST4GUMBBVdN0A/+Q31Zjfs1EorYENNeXunHSwDEAHjru8QsfC2o/qvLdD6czD9+99HNwZbkN0T1dYNMQMfM5j4zBtoX90aTTFpgDHUfrT9mEyxbI0gTjIKq3ndEj5+jvRX5cjhRpNXDtLAcfT27F35goCb3sSkX5hZly+p5qFk= 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 1769279494241627.9425784375121; Sat, 24 Jan 2026 10:31:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiOD-0004PE-Lk; Sat, 24 Jan 2026 13:29:41 -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 1vjiOC-0004OB-5u for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:40 -0500 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiOA-0003iV-Be for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:39 -0500 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-c62239decbeso1144600a12.2 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279377; x=1769884177; 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=pgN4lT+3Fn9OxJJ4Avwf4Qy3fV8Y6wNBbz/d+1i1a1E=; b=mHVeSdY7/70Gdyz7KcZyxN5WPtGGa2Y/3uMphJQY3QruT6X0cMFeCWQirRcPkauOO7 s/jihWMdCavYLoKNs3nI/KPYgzm7yKKhahjmYj7Xd3AGXl68tFqtkvFjsMOKWWrAiG+O x1p8KOzarEj1He7b+q9++ehJRYxqTYdzk9yWTC7I7lVkum+bP0+FT+Bnzz86m4o0n+9c KIe4PCp1jkLIDM8RNZ5qvZ5GbdYEgucV3GFs8TmTltCR1XfxDf+uUmB0zylPPQFZQUGX wIUsxp5QdjGHdlKEQ4bC9Cg9QQ0KdxUmX5PITJZpq6PYQEnDo1zgN2Id3RpD/Po285eQ XCYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279377; x=1769884177; 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=pgN4lT+3Fn9OxJJ4Avwf4Qy3fV8Y6wNBbz/d+1i1a1E=; b=AQD0rVBLjoJJfiCQWPwTSFplMQxn6KZRUfVFioxqr1tDKk+KL+b0/uovlQptPijcp/ 2A66VVoENdJtfeWcmxEyZbJO+jyuyAUw9ECfQ0IHqaPDa8Ag8aqvNR3jFgpUP0tQ8PmS TB44Fzk8id75mZcjYm+N1CN1uGyaPJg9i6tdQJnUPIaS/deJSyzvCcSvUt9ojIUBETsa xBTBqm8zFA+HUY9n26CGVvIg0EBucdeMGEUv20uY7OqwS1bd8Rrg0kmWR9Msiki18vjV DNkZpE+dKoaxPs3BuvRclQUnIcKn0dIjH3TNqcj4Dhlgc5AiyRDrglM3ZPbBf1gzeyUu 2EJg== X-Gm-Message-State: AOJu0Yx1RuUQLlTTffRzUeOZH9VnfI1Fu6Ej7I4hlX0cMP2eLujWB3fa oDEvZr5OtNhX/0cu01z2NzAwKx6dA2AwypuadkfGMKDSuIaFRcx8NTLhlfMe3R7UYRpf5lLe/5X 7a8znqVE= X-Gm-Gg: AZuq6aLjVvjpt/E03i+ikIENePeqqMCF0GbzsJqXDBiH/7y/hm7NVWFtHaHNRdB3oFz W7UNSHoXNzc2pP/aUaTaJJ8BPhC/oo4YO0HPGOCyt2nfigD2fgD1zL/HANni0iS4ai7SH6vVZX2 t1Q5jwgi637ZWAAu9TyR3IyH9fLKJ/6uSfPJDfyfVsQGO27mcezBZ203niy/xYmGT+jUJX4NXwf 8ApBEhRUl5RWccjYZJ+Hrv7EA3Df1c4dWTp3TobPNDbGAJzm7NOsaEcq8eIY3xheox7thWPmTU8 giPYe8fY7Jr6Tws7a/xkawPVYH56jD+kQnJlg0PGD2+pwJy41IgxLmGKWzh7mzq9It7ISJE5DJu +VrIfJKbYchTpTU07mGycMrzOcnFqCjpMBXX1tSgGA5hBNQK03Y42ah5Zc4JzLC8RSEHv4OAfxO QPk0xicETXusPd7is67x5Pokq8Z2Kh5jf71JIQv1ssSqV7KWUJXEGZqW8tBIfmjKv3 X-Received: by 2002:a17:90b:54c8:b0:353:2e1:95f2 with SMTP id 98e67ed59e1d1-35367010e20mr5785457a91.8.1769279376809; Sat, 24 Jan 2026 10:29:36 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 08/11] meson: enable cpp (optionally) for plugins Date: Sat, 24 Jan 2026 10:29:18 -0800 Message-ID: <20260124182921.531562-9-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::535; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x535.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: 1769279495858158500 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c96776bb746..d50f9b502f3 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 Sun Jan 25 10:18: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=1769279453; cv=none; d=zohomail.com; s=zohoarc; b=fTPDm6zh9jMLMNlNiNz2FmBi0yA1ACqAi4USgizOVCI1RruUvI0XMC2Bz28Yd9ZWwWxyHc60kfBe+V5TNkeoL0BGa+2KUWc9kcMuZtcYdKnI6ja+It+C1ZfQ1+IzWOL+Z8w0RT6If5vzu0HHWfgXhPdGUUplhStHeG0F6A9fmvQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279453; 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=BAwgkxcCnnqe9jCM08ttRZ7hAqumVGJ7T0ER05F6LwQ=; b=RMy+LX0/HDZ9lY9qwh8atTZVXdi4KLEX3VZqnhpFwKxg++b5UcRSud62XgpFblRRFVCtMj7LZeddp6eR77ibq4bIE2PczsLRWdl045IPj/z0WkjnSCe7m84jECUR6Ft+SKONKYcPCvwDX0NQKczrCpriIiD5+nJMGqWpRdEQUcA= 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 1769279453090874.8656266757578; Sat, 24 Jan 2026 10:30:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiOF-0004Q9-Bu; Sat, 24 Jan 2026 13:29: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 1vjiOC-0004OU-Ih for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:40 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiOB-0003it-2H for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:40 -0500 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-8230c2d3128so1252883b3a.0 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279378; x=1769884178; 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=BAwgkxcCnnqe9jCM08ttRZ7hAqumVGJ7T0ER05F6LwQ=; b=O956HxEZfSPx8GCvnPSsJwJxxHSVmLD/iYV6cRktl32P2eBBI44CVs89BAqeLF49tc sA7gaUCFXz4+/wwHZ711hJfnsFztrvh9A8PjhwtLLkx9a7fHmV5B8gBcHh8t51p+lTKu uODrRjGauh2T27X5Cn0V+qrNA3HBfXFUyi/Us2ymOPVNFYlT5s4S30qp+aCdMzC9D+Os SWBAI0d8xfXWORgQ4dSr8b4T3kf4tjtjCjptwY3oHR1bYYAObK6/lS6JgY19QSohyN88 WJHPurmA9RcFIJwyazqDNH4iAmCn2eCQU1WpZ6Y/nYNJ+Db7sx2gvVdrLgfHey477aQ/ +hVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279378; x=1769884178; 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=BAwgkxcCnnqe9jCM08ttRZ7hAqumVGJ7T0ER05F6LwQ=; b=imhLPWWodiXLW8VaWGhEQ9okPpER7OvRG2SeMbiTISuQvnXE8j4X4Fu+3FuuFwATiM C7Fcpum9eP5fJZo8XkgUn7YRUFd83+3HGg9KQVOsbWVwe1F07wRBPqTlOdUfruKmXshp IhWvrevmOIi/boCpTzRE5SJGKyJGQlGccVrJv1I/EiiAGX4MnrqkMc5V6R6XiW8Vsz5Q j24oTUmIh0N7vV9mApdT3YMNECGQxjZiwL/pubyWIrEFSmLkLuZMbM8D/ctRUFPSm9iF XGtaux9tsGnMEKuSI01nZEZb+tj545ZD+p4Ro+B9LPJ3DNg2AnuWJoedwyanmOE6BMGE pnrw== X-Gm-Message-State: AOJu0Yyy5nnfMdEgLyDTTtl4EPChmDZAD/9ZStr813Xr3decBo4ObyEk LP73WZd9uHx6BAgexh5a2kKaedTmS1AjLQ6LB/R0VymUTlov/e02/H4xwYPwNiTa6w0mR+fmgbY isnpAygc= X-Gm-Gg: AZuq6aLVzxM7eKCwYXd9OZtUG0NkNpzXIykwA8JYmAzuCywSZzRxqwhsNuj4AyCNazN uKQR7JeBc9xZP1SY+OMkZSC5Qoi7KMRpoMh/z/P5/tffHt7AvwwZmmjVh7oREWNYlDa99nf95T4 KyD/kRQn4BneLAgdhfUTYWfc/IjEHaD4LD+/FzcHcGPwTa91UcdDJRi+8gesiOaWZq13cfhnL1F QXduy56Ev+WJ8CNVswgt/5QT5VgaegHZAJ+EvkSc6brXLdSmzN4wB3+uySEBeOeOR1JY4JMJEdA qWQ0fpY90guKnWy6rOEfZ9mEdcquUKIZ+QdcZ43znT5F8gyexLXNP80qG3AaTQMNePlVKLObtYb oBNAh5z57bbJjbqi01ZQsKqxKtOTJC37aRspb3oZ8EyGXY36tOqkIHfg/Zqr7/RwBkM2HyslWin +kjsK4TsGankiBVkRMBqgf6U20N2ctuiBh9wyq1bA8ZKrHJgS7fSH0ZyBEvawuXE7/ X-Received: by 2002:a05:6a00:800e:b0:81f:7db2:89cf with SMTP id d2e1a72fcca58-82317ea4fafmr5626890b3a.39.1769279377703; Sat, 24 Jan 2026 10:29:37 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 09/11] qga/vss-win32: fix clang warning with C++20 Date: Sat, 24 Jan 2026 10:29:19 -0800 Message-ID: <20260124182921.531562-10-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::432; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x432.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: 1769279455504154100 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. Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- 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 Sun Jan 25 10:18: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=1769279402; cv=none; d=zohomail.com; s=zohoarc; b=FJFqovKI5k3KrZvHb5oa4/lqO90u7fMNJBSx69Ej6LXPnMcGcICJYZswISd6+ZvRLupRUwZQKHhlY4kfonesis/yzu9ZSrPey1eexIV/jQpQbt1z/dVQSbFR6q9bduheSWdLhLCYlsIzfbvwyBS6Dtme30LlL0P3XKALDcJXdwo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279402; 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=+Mi8rY7gk+YscQ4AFNAkDrZMLR9/cyUEzUPrzIbWCiw=; b=ehs1osLzy1Szk1x0HmiLsQAKInYKvOVbI0/39ovBZ/EXUIw+N8+c6XDs1LotYA4+ielK+8j9mPLLW+kSGoxB3e55/FQ5gRaych90x5nM/vPh/m1/SVL+HDMas+NWSz3eE/iUnUxuhZEVDIUYfuHawRkWsM/0/2pTPIDFPJDv/a0= 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 1769279402480456.3423777381536; Sat, 24 Jan 2026 10:30:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiOE-0004Pb-T6; Sat, 24 Jan 2026 13:29: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 1vjiOD-0004P1-Ct for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:41 -0500 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiOB-0003jG-V9 for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:41 -0500 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-82311f4070cso1284611b3a.0 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279378; x=1769884178; 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=+Mi8rY7gk+YscQ4AFNAkDrZMLR9/cyUEzUPrzIbWCiw=; b=NyY0RyoGBf/RFTxzMmEgXOw6IaIXBMRxKM0ucfwGtGiycawXSpYez5LQ/4FWVXoCkQ jdVMrpbFvH2RBZpwTIxAF/UZMk79ps2U20tvZ8CgcnQzwT2EPR/bJkijy6v/LrVR3fmT nf1qZwNOhH+sxHwRgAvwrF5hA/GALNfFZzwdxlqhCXvArtZ99ymn66d8Y1tEsIBt1CdW NQnPotZ0gw1UBSjhe06tdOEP3RMeNoU2iCPWuzz3tTXkcBd2WqUUlUtWxYhtvbI60QNF Qe1fjSxHOkuSe2CZ7MaTu/Y6V6VRooQfnTMkdgE37bTg3E6kRitkNd0TN/VsTRBOP4cD MvoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279378; x=1769884178; 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=+Mi8rY7gk+YscQ4AFNAkDrZMLR9/cyUEzUPrzIbWCiw=; b=xNG2otAUgAPlS2XWl/xPCeR/RKdQiOjnMxwVO5El1g3iSBD4sl5RM5WZdGnc/vh6hP PUjDW7QVW/Y8L7t3Grf/SXRlPsN0fihLsmdZIk8MxIqInD/5+IGmdFgR7AwUSfZxhDmS z168KQKciQHXzh2IROTKxZcT8mND+WejIHQueGCa44w+wGQnmu8pJZlD5wXWFxo4iczL Ap4Sj2SW0AInXR7vRiSI2gOxoXMMky7EMfp8KqA7ci4KGcTqbt46QxoGHr4LNL9aQ/bk 32zyJc+/HQWL2Q93Nfh420Wv8ffvoYKUbniYFsm+FTtqRLT0xZH+XnAr8aH6Cp9ISYAg giKQ== X-Gm-Message-State: AOJu0YwAEsh1+VSfeQYuARsVdRlWaUA+ASrf0ZaoAa9QpiTUs/1rqxfq YYrkF7SLWneyzMgjdE5yibtPo96xBkMpjEeMAx/xXVFvGL/sbHfmywKF6gHaNT8m95b+c6K0Uey Y/7QG6Jk= X-Gm-Gg: AZuq6aKgYl8aWUpigS6X5Aebj7ne3OLRzktLe79C1DxqTYWCvQsZQavzMrLpf3ijpCW ojqnTqInmBgQw7QqzCM9eKFjUAn82GVwTjCQGzzEWDu4noJUP6wtnOtZend2pmz76iO/dIc34eA SP5ZhxHofzBXe75EauGNzHnKrGzzGXeiPu1Uw3D48UMcJgiuGincivA30fyI8ORwSDpjvxQJ9Rr IAHX+s0k6k7c9/DPallRHGpRM2JWbVxRU6a9/W99lpCOWRhGmpPns5zeqGnzan2rKcDSU8XFYcA 7sUepzOMOdie8WeM7QwZ8zH2HJaYsVjhmWccFFvdOWN6cbGuIPywY5j0WGT+6jUN5n9Tuoxd5yY ruIah+HjoouDdAPj/bkoUDQoN1o27PmnrzMpRDhwZsRPdE2B4xoMBAAV+i38pmofjsMiSYMP79V Kt//hTS2g02dZliFzqzheZoad0M6mn+xjs67Sr62mcJw+UccS5eBckNvH/XxDe3qeb X-Received: by 2002:a05:6a00:2d94:b0:81f:440b:4f61 with SMTP id d2e1a72fcca58-82317b5f46bmr6440977b3a.35.1769279378523; Sat, 24 Jan 2026 10:29:38 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 10/11] meson: update C++ standard to C++23 Date: Sat, 24 Jan 2026 10:29:20 -0800 Message-ID: <20260124182921.531562-11-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::433; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x433.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: 1769279405163154100 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. Reviewed-by: Manos Pitsidianakis Signed-off-by: Pierrick Bouvier --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d50f9b502f3..53ffac02da5 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 Sun Jan 25 10:18: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=1769279514; cv=none; d=zohomail.com; s=zohoarc; b=bTrqRewoa9aPUElIT+XG/hJV/5kztV3KN7PpMnIwbYsyZdrvQwXG5mHGQ53KrTe+ytnF+fwo9/mtrl3vUWujLsmrO4I8xilz6sesOsi2lNNoz45Vk+xnfcE33Rv2XQcxz5Y8aDAygsvSdHtpF7YNM5Uy/QK7rjy9RPebbc9Dx3c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769279514; 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=SldcX8IjYHzjc6IXHa9YJSArL+qmObjjVLXPLXgAV8WHD1wTvQ6qQWYRLTIA9ZxbTmK9puMVi7q5RZ5LY0M4sE7WPkE8qFa+0fgjKdzw2pCGORXK2rxtqdKTXXV84QF3B8xzU34o8o5f53Rgo0seN1TFicz34i26y42wti3We0I= 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 1769279514026317.5902100134558; Sat, 24 Jan 2026 10:31:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vjiOG-0004QM-SI; Sat, 24 Jan 2026 13:29: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 1vjiOE-0004Pd-Rt for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:42 -0500 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vjiOC-0003jZ-Su for qemu-devel@nongnu.org; Sat, 24 Jan 2026 13:29:42 -0500 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-81e9d0cd082so2707408b3a.0 for ; Sat, 24 Jan 2026 10:29: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 d2e1a72fcca58-8231871d432sm5296485b3a.42.2026.01.24.10.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769279379; x=1769884179; 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=Y25GI6v7WcOMZU3bdWjHbfUGcWivRwb9p/A0m/L7uDV5yKbUlA3X52ib99K7l3KwUZ jv2OYofp0g4g40m8UkL12rw/5JPTPO/v7k5z/gE09fJ22nXwiruH9Cf4gadQUV1mq2Xe pY99VGVAJaQKcBAG+Wo2t+hQwhUTm9mkp4IHKo0scQgZCTg8RYPuMb1OJEwBH5W4YYJ3 XOdy9mWUXZSKeMpgvigQLkCMm9myYFaNM2Wn3rTE3PfnJGFng5QlCB/ANfQvCcfJ4fl4 V+mwFAc3fLGPrb81rMvnn2wTchscONpVl+rj8lPh9iGgxUhjamcXuB4HvZcj9v7tQp5S FLQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769279379; x=1769884179; 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=UxliflYt7TPemPl1hHUEG0Br6eU+iUWvdGdOBpnF5PLxi5bElKDmMhE4R+7fkHpyBa 1Ta/3ZKOiILrGZnLmZNBG8dD7Pqvof+OHuYDhJIk/UpG+gL3TvRjQRJupWCbDQk/Ka3S RG0HMvNpD4PoBNmN+zUM93hRr0twjRxkwB4Y0rhjvdHFuDGgTizUnz1SaylO6R02Iw23 XAAj/7qpePOgWufc/k5bikSbk3RW8zW/C7cBt4Wui8oE/wJlIlMQt7Aw83xulf5L5ILl at7XAQdkoF8zZM4ricffDtqEQlbcROEGj7bZOsgmZ6rfneo3spl1z7EpqZBbqPb5XDfd sJTw== X-Gm-Message-State: AOJu0Yz3EUTM5+yiuDlLBe9op7+X6sThb4b1agxTAGDkzPooi7Whpokn 7bL06X187Zgsnaz1Ew2AsFGwoRY5V0B7Ssl9x/W3qbo/mjpwkgxn7F/Hz7uCo5vZzW9zF9nL2wZ WhMtYsT4= X-Gm-Gg: AZuq6aLfAdsSX9nAmRYQ29f2PX829eNwlDf4ACeJZKsjjpU607DT3t6l9JQtTO8KZvV eK9kQiLPzG/qaqObxAlmlpcWOVgt0n9tSC6OP/zSl7HlFt5i5H20aK6cbdkT3usTyAWZvewkBOE s51K2zda0iA5dB8PUn5o/YT+wIb2Ti0L9NCUXIEhyYLK0ufadH76ft63e7WKggNsHWJUOJuWAd2 B4Oi7Nm/qtSmaR1H34R/M9ZErwq6cgxoN6+h99/hgam0bpdHTPmdL9ReZHrinL1EeYIMyLxc61h mX83PJ3qwFSxADbH98I0lyAg8phBBCdpsUR8hL8K6sTP3oC6a1IYuj/njbE//nZkMtP4yvdrAG0 b4IGCwyZMCAttbvSXhr/g1qzTcA0gUjzXw1EUOqEpJ7Pmii+iUGF3Gp+o/4MO7Hl3Px5zkSNwdC CU5KYFgsDuEceVPaeONgMnpTc8+C/twP3s2F/P1njfwLN5OVnz0Y64QuEwt1gPNE/AVAeEHhJyt F0= X-Received: by 2002:a05:6a00:4b47:b0:81f:33a6:e9b4 with SMTP id d2e1a72fcca58-82317df1dc0mr5680509b3a.29.1769279379353; Sat, 24 Jan 2026 10:29:39 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Mahmoud Mandour , Kostiantyn Kostiuk , Pierrick Bouvier , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Gustavo Bueno Romero , Michael Roth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Alexandre Iooss Subject: [PATCH v4 11/11] contrib/plugins: add empty cpp plugin Date: Sat, 24 Jan 2026 10:29:21 -0800 Message-ID: <20260124182921.531562-12-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260124182921.531562-1-pierrick.bouvier@linaro.org> References: <20260124182921.531562-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 client-ip=2607:f8b0:4864:20::434; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x434.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: 1769279516072158500 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