From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764251249; cv=none; d=zohomail.com; s=zohoarc; b=KfcEoSXGWEzRSsrcH09mAYxByiiRRA8eH5uJXxif6Dt5m2c/T9FDlnW9ONhMbWUzaF5bQPydW1eUU806S/v4pgpYWp/bNt/IB6nnlHke7RVxGBX75D92MIAIS4D83FXh7sOzXTu8Cq48KH2bt9lChtRChsktZndxqizOV7aXZDw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764251249; 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=LYg5lNnE8rdhG0r9RcJgUpFFZd7vvBdLGPpZf4aLMBU=; b=evsiJAAww3IYWug5UknQq/WbHdFimVV/rwgZnXxkojwjx8+W4ENdGK4U6k8jLCDHcYPeGS4rpcRA+T7qp42jJff1RU1s24uho3qMwxpQvX0+hug1+uvhbBHFreI9EsBmuAviIiPdRWnp5pU+RdyH9CBG+lFulBoviYE02Jlio+M= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764251249670184.94454056833445; Thu, 27 Nov 2025 05:47:29 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObvy-0005hv-9s; Thu, 27 Nov 2025 08:21:20 -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 1vObvU-0005MT-9P for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvQ-000241-OW for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:48 -0500 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-594-9CGedM83MyKZpxv8stZGHg-1; Thu, 27 Nov 2025 08:20:42 -0500 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b735efd650fso98395566b.0 for ; Thu, 27 Nov 2025 05:20:42 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f5a48c7bsm160575166b.64.2025.11.27.05.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LYg5lNnE8rdhG0r9RcJgUpFFZd7vvBdLGPpZf4aLMBU=; b=GbYTn2JGCsEdlzt+OdISvtRFsX14efs4z3g3BTv5APCF1e2bg/i6k7bSGxEszgxnw9T8p6 OpVICyoLD0ATrrZkcTsWoy2ReFTekHh+dRl6an72RGHi1ZKovvbhhUu15tawJRiJerIutT qrtPCJJID8Ic/rXDpFJR/wSRz38WKGw= X-MC-Unique: 9CGedM83MyKZpxv8stZGHg-1 X-Mimecast-MFC-AGG-ID: 9CGedM83MyKZpxv8stZGHg_1764249641 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249640; x=1764854440; 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=LYg5lNnE8rdhG0r9RcJgUpFFZd7vvBdLGPpZf4aLMBU=; b=MpDhZLfAlB1b5/n37BNvcul7QBDVKIMOfQrnlHWcmEkZxRGDFkRbeLp7BKVt7QyH9G 9UWf26JlXqqLKqySEhgcuT25dVQ4vNkt67P9QfBwHM/AUYCwk0FXbe+MXlDkM3hWIhzX H1UQJx3iaV1jCdsNQMwdeI9QwU257A3jjh8HAAcjCa9LZVu8eicFAniW/3Lsj149Yeu5 Vq0eMBuzMxC0fM5kcLatoYypXq9tyqBgTVtnWEbZ8yqGNdVXBA4IISGZUFM1rPVDSnDU 7j4xTPH8/yqA3pFECeRuueUNjT5P+Y0s0XWbtKqiriuEv6MWftZXr6mP4mu+jUKKkk27 xduw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249640; x=1764854440; 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=LYg5lNnE8rdhG0r9RcJgUpFFZd7vvBdLGPpZf4aLMBU=; b=tG/mDp045qpiZMoZZ2/fk0VzebWR55kNIOrp1F/grAkyjGxKWXSicKP4anPwcVAPlA /2bloX8IrOlgwP6/klVggQER6B0tztyFysf3TLMnuzDsizJyWJtJxwm5Dx2p8Y98DooZ 0xj8RuPM8eS44vzVmAE8zdl+Z3ZqGatQ3c6LuRwmHs6Wya6Iq8aVEei9V8iIboYJ+jOe qzKBTh9xHubW6BJhpWIJuaL1tbKkPuJ3EIfjD+p3JZzEcz18ZRN3njojEYjTCVn7/f0B fU8uFWsDEtwT6cnJaNELXZCjykWS/5IUZBYUqMge4opiE57bHXJJPSVcnPRdYLVMb9dn sadw== X-Gm-Message-State: AOJu0YxsXV2RAIPBbjA8uQYj3ehb4XgcYiugsMLZVo729yAYMLE+D6Jw BKAfLnVTN2Fl2t5lTKB6zdD3EBU+iAyf+ShiSEe11u6TCXyMR/Jlg4bhYVioMP0RxRPXm178Puc Hhg6lzDRqIYaqs+q/8k9M/0nwNlcfSDdv8tIxhpX5D1K/qh0VteBoRxDdnzBFC1Y3IdGFWAcf1j ponNBqTTEakmiOmKGHdN+ht5bFfdtu1zaprzaGg8CU X-Gm-Gg: ASbGncuBoBekgO29Q9E31xJlvW7rexk9obGIJSojSx7/1MpASa7Lbi19zuAZvnAF43a jb/sAwxCJJ6GzpvgNbpuMR21s1A6UbzOnd45Gk6cH/vpvKF8o+NySMZIsJnNFbguhZXVWB66rL/ gnhIV7sKgjq7sT69glpFA8JzCnoEwRdu60TQI6Zq4WRqV9T+bldFgmW0ZXQAvM+prqsoqU5/nLV CVz6QccBJzJu+gyQ2REIua+C0TW0LWp25YM/uXHpTMvn3xbQc3ZZk9W/MGQOaf2b17MD4czWeUI 2cxiA8Q08FGh77RqR6PJYYUo/LvMKYRrNAAMOqmCYNOlJJvOkyhWACFgFHeITk5F3jKyv6Asm/n XqENv37CQPjGqOZEkAyk3cNMz8WqAYtkM3BXdqn43DYtwTGT+qIX5pwS3kYfvr1ZeBrH8x57nYD Sf0QZJiYFq+Gpdyws= X-Received: by 2002:a17:907:3f9c:b0:b73:7f1c:b8d8 with SMTP id a640c23a62f3a-b767129709dmr2419811166b.0.1764249640040; Thu, 27 Nov 2025 05:20:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdU8wOIJQbd2oYcYyBfq7uZVilQhWmJGvPR4ghgRuCUqWn8gCp1QyRanWVKr5t1pCEGhNRVA== X-Received: by 2002:a17:907:3f9c:b0:b73:7f1c:b8d8 with SMTP id a640c23a62f3a-b767129709dmr2419806566b.0.1764249639532; Thu, 27 Nov 2025 05:20:39 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 1/9] rust: remove leftover bindings/ Date: Thu, 27 Nov 2025 14:20:28 +0100 Message-ID: <20251127132036.84384-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764251251777019200 From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau --- rust/bindings/src/lib.rs | 64 ---------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 rust/bindings/src/lib.rs diff --git a/rust/bindings/src/lib.rs b/rust/bindings/src/lib.rs deleted file mode 100644 index 4c9bb794f79..00000000000 --- a/rust/bindings/src/lib.rs +++ /dev/null @@ -1,64 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -#![allow( - dead_code, - improper_ctypes_definitions, - improper_ctypes, - non_camel_case_types, - non_snake_case, - non_upper_case_globals, - unsafe_op_in_unsafe_fn, - clippy::pedantic, - clippy::restriction, - clippy::style, - clippy::missing_const_for_fn, - clippy::ptr_offset_with_cast, - clippy::useless_transmute, - clippy::missing_safety_doc -)] - -//! `bindgen`-generated declarations. - -#[cfg(MESON)] -include!("bindings.inc.rs"); - -#[cfg(not(MESON))] -include!(concat!(env!("OUT_DIR"), "/bindings.inc.rs")); - -// SAFETY: these are implemented in C; the bindings need to assert that the -// BQL is taken, either directly or via `BqlCell` and `BqlRefCell`. -// When bindings for character devices are introduced, this can be -// moved to the Opaque<> wrapper in src/chardev.rs. -unsafe impl Send for CharFrontend {} -unsafe impl Sync for CharFrontend {} - -// SAFETY: this is a pure data struct -unsafe impl Send for CoalescedMemoryRange {} -unsafe impl Sync for CoalescedMemoryRange {} - -// SAFETY: these are constants and vtables; the Send and Sync requirements -// are deferred to the unsafe callbacks that they contain -unsafe impl Send for MemoryRegionOps {} -unsafe impl Sync for MemoryRegionOps {} - -unsafe impl Send for Property {} -unsafe impl Sync for Property {} - -unsafe impl Send for TypeInfo {} -unsafe impl Sync for TypeInfo {} - -unsafe impl Send for VMStateDescription {} -unsafe impl Sync for VMStateDescription {} - -unsafe impl Send for VMStateField {} -unsafe impl Sync for VMStateField {} - -unsafe impl Send for VMStateInfo {} -unsafe impl Sync for VMStateInfo {} - -// bindgen does not derive Default here -#[allow(clippy::derivable_impls)] -impl Default for VMStateFlags { - fn default() -> Self { - Self(0) - } -} --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764251841; cv=none; d=zohomail.com; s=zohoarc; b=fX8+z1D932GhtpIoei+QhTKcvXTDlG/fCQ/iiMy0o2+EYb2Y+wcFvZfMcDomypODmoVo3SJBrmrGx1YW2v01g0qBMwIUf/wCP+4pYYbK1jLKWsuybS8VipNA+yEDVUQiUc3wlExwES3F7XGfHoT00vFKN/pN4j+x+aSq6X18XPw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764251841; 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=5Ej+NEQo6jms3lrgLCYBMX0aiWkPrDCX/+jDp/JUrTk=; b=UTaGiazVzk1OvKjncek6QHA8d6BQ8DNjjT3n/kco7ZrHnIKzJ4cUKrjyHhnh+x8e9mRDSbM0RZDONvTS8R3Ym0vxidD8RtVa37W8BReo+lpWMNPZ8y2111aEEIN1mesLAV9CMAHR7CPgewZmC15wr902tUykrsJE+D/WiJThI8o= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764251841640163.11338819919933; Thu, 27 Nov 2025 05:57:21 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObwF-0007KO-SE; Thu, 27 Nov 2025 08:21: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 1vObvU-0005MW-Uu for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:54 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvT-00024g-GL for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:48 -0500 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-151-C6CEk6OwOaieozHpIgiyiw-1; Thu, 27 Nov 2025 08:20:45 -0500 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-b7270cab7eeso90149466b.1 for ; Thu, 27 Nov 2025 05:20:45 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f51c55e9sm159175066b.26.2025.11.27.05.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249646; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5Ej+NEQo6jms3lrgLCYBMX0aiWkPrDCX/+jDp/JUrTk=; b=SU32pi3t0KBfPXFAKlxxMfvlH4Anw8w/PFpXvwVX2PTa9iLXYn+W+WvSinV2mhpwJlJp+L s0cApf5g4BI/cHLId3U3P78QJE6zB8VAuSlGi37c4Rz9LglCxLO/OFl3ipbFOJTPXmsk1i /K8o8sLXe9zhSvOS6O2AA9qEzXm7OkQ= X-MC-Unique: C6CEk6OwOaieozHpIgiyiw-1 X-Mimecast-MFC-AGG-ID: C6CEk6OwOaieozHpIgiyiw_1764249644 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249643; x=1764854443; 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=5Ej+NEQo6jms3lrgLCYBMX0aiWkPrDCX/+jDp/JUrTk=; b=oGyaSaWiG613hNpHAoX0RtLi1XODwIODf+G/ZyfliO06N/G+UncRv5C5HYqV5DFdsp xh1gaGXf5qlmKmd+Pv/ujam6g8RIL1CF/YYLCmH+TP1aIrMpKD68fPpvrsgcIzkEVdcF xyUTaLHYeuie1gyy8kYJAC85s3lWvPqqBKd6bEL5BSKjfdzjUHK8K/nhAdCl2iuIEGS0 XgCBwSLILdQjGM68mN/gSkg4Osd3zZW/FK0S8E7HnlwSoGBohpSJdjJvFfyELHW1sslz tnIbG2ebmnh5dsybGJ15ROhRxBgfkmkdVWwhyj73odm2fCIz27ps5crg0q4yDZq36i0m 7v1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249643; x=1764854443; 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=5Ej+NEQo6jms3lrgLCYBMX0aiWkPrDCX/+jDp/JUrTk=; b=shPDo9J+PabuTGbHM3/+ZrEyBCTIhWb0ZjMSOB03vD68dlqSLhnAqgFtZ6+8c8Xn1Z LKFmMDf0a1cmHumUMjDX6Z6vxDBLrUc4mDEFFGZ5/qDmtYJkylV4C4to+qyWs+agwNWB FAGYj8mW+d82mJsvMcvU8JoVB3/Y92b5twKj7G/qZSY/S2YOVUK7HPgC/1c1h5vSKg47 tt43SeY5XCehSCPNvFZRl71bBI5uNEvUtWANR9r6Zp2Xn+ZTW+rv2wkbcdF/jFBFatUr IK9d0pXziAKGw7IN67En/xrePSIYwzuacI+FsrPkHmWYVAUscPzubCcWLn1iwMkKiGzx 0LgA== X-Gm-Message-State: AOJu0YzX2WRWPeqhZp+BmyKHHlLqbu3X2NiwicCc5YI9pQFDW3F3MBTr 59JTixTc7BP2r3N7EJWVtXcGBZPKhCOmmCuAkHVo3d/k5fg+cdVsp9iFr3FKru8lMkGgUbC/oh+ +ZcGQl+2nzOtGnXAccDlX0cGGN4E7aa/E1HCVkoV19aS+qrBWC0J/JNlmWiVB9vS3F1NOksVnKk jxMtBbbJb6Y4QgSXfyUI+P+Vwx/sG5hUom/2N6Pzro X-Gm-Gg: ASbGncutY7u+dt2NlcIaL6+udhvdM1inihKIlaV8WrQHxscnSgSOxO/elFogUg+72yl to4uNRr9kCOEVq6SQwuWp5AOGJVUHxtQDvxZty0UYSiCUIZADriU+D9bzf72z0Vfw5/7P/OdhU8 NiZXfqZDd6h2OK4h+21Q6Q/NUC0KCsebYl7txt5SUmeY1jg4CsEtIN0I0HCQNfdiyzKxIn6CDBM EoFacQNHc7XSku7CKvN9Din/ndlqyG1UDFZOArCONgKFZtQQn6bRQQPEVQ8rfutTwJPdSYBtyJQ szI7gY8JkawByUaW+WfOpuRHALp7VgbX8CeNWWVQ7EM62vsq0pooaHWNPuXO3IyxuUtMMvKxJ8B /Im9d6KcsROyuOg1KR8oM0ct3/EBOUb0oN4alSGmoDK+i43p2dnsimbnQnYf+VOrDxTT5PBrTl9 C+b5yfjwHVmYgU2l4= X-Received: by 2002:a17:907:2d12:b0:b73:594e:1c47 with SMTP id a640c23a62f3a-b76c540b1d5mr1223688266b.26.1764249643220; Thu, 27 Nov 2025 05:20:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFpHoMvSxice3thP7boE62vLNuG3swgAyYCW49Owu/+p7HtWt/Znh3xUHNlWDMyUWFsQA8tw== X-Received: by 2002:a17:907:2d12:b0:b73:594e:1c47 with SMTP id a640c23a62f3a-b76c540b1d5mr1223683166b.26.1764249642706; Thu, 27 Nov 2025 05:20:42 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org Subject: [PATCH 2/9] rust: remove unused --cfg arguments Date: Thu, 27 Nov 2025 14:20:29 +0100 Message-ID: <20251127132036.84384-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764251843015019200 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- rust/qemu-macros/meson.build | 5 ----- subprojects/packagefiles/bilge-impl-0.2-rs/meson.build | 3 --- subprojects/packagefiles/proc-macro-error-1-rs/meson.build | 1 - .../packagefiles/proc-macro-error-attr-1-rs/meson.build | 3 --- 4 files changed, 12 deletions(-) diff --git a/rust/qemu-macros/meson.build b/rust/qemu-macros/meson.build index 0f27e0df925..17b2a4e2e24 100644 --- a/rust/qemu-macros/meson.build +++ b/rust/qemu-macros/meson.build @@ -2,11 +2,6 @@ _qemu_macros_rs =3D rust.proc_macro( 'qemu_macros', files('src/lib.rs'), override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_args: [ - '--cfg', 'use_fallback', - '--cfg', 'feature=3D"syn-error"', - '--cfg', 'feature=3D"proc-macro"', - ], dependencies: [ attrs_rs_native, proc_macro2_rs_native, diff --git a/subprojects/packagefiles/bilge-impl-0.2-rs/meson.build b/subpr= ojects/packagefiles/bilge-impl-0.2-rs/meson.build index 42b03dcd53c..04617b875c5 100644 --- a/subprojects/packagefiles/bilge-impl-0.2-rs/meson.build +++ b/subprojects/packagefiles/bilge-impl-0.2-rs/meson.build @@ -26,9 +26,6 @@ _bilge_impl_rs =3D rust.proc_macro( override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], rust_args: [ '--cap-lints', 'allow', - '--cfg', 'use_fallback', - '--cfg', 'feature=3D"syn-error"', - '--cfg', 'feature=3D"proc-macro"', ], dependencies: [ itertools_dep, diff --git a/subprojects/packagefiles/proc-macro-error-1-rs/meson.build b/s= ubprojects/packagefiles/proc-macro-error-1-rs/meson.build index 10c2741085c..8ba558e1330 100644 --- a/subprojects/packagefiles/proc-macro-error-1-rs/meson.build +++ b/subprojects/packagefiles/proc-macro-error-1-rs/meson.build @@ -23,7 +23,6 @@ _proc_macro_error_rs =3D static_library( '--cap-lints', 'allow', '--cfg', 'use_fallback', '--cfg', 'feature=3D"syn-error"', - '--cfg', 'feature=3D"proc-macro"', '-A', 'non_fmt_panics' ], dependencies: [ diff --git a/subprojects/packagefiles/proc-macro-error-attr-1-rs/meson.buil= d b/subprojects/packagefiles/proc-macro-error-attr-1-rs/meson.build index c4c4c5e397c..a85d7c07143 100644 --- a/subprojects/packagefiles/proc-macro-error-attr-1-rs/meson.build +++ b/subprojects/packagefiles/proc-macro-error-attr-1-rs/meson.build @@ -17,9 +17,6 @@ _proc_macro_error_attr_rs =3D rust.proc_macro( override_options: ['rust_std=3D2018', 'build.rust_std=3D2018'], rust_args: [ '--cap-lints', 'allow', - '--cfg', 'use_fallback', - '--cfg', 'feature=3D"syn-error"', - '--cfg', 'feature=3D"proc-macro"' ], dependencies: [ proc_macro2_dep, --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764252080; cv=none; d=zohomail.com; s=zohoarc; b=THUvnzQ3bfl9weYhdMHE/FUfkIJ3IeADQ/4Xv/cVCLaNoLiCgxPD7CLROGE3Y+wJRZmSzGRkd829nKth9TG0igjXLb2ZoJLbeojIn9ZFDzZ4ua1WNCczbjMb8mPa68aSlySxnn4nwVJwxw9Gg5lJF28BqoRNN2Uo5SmzJtMm9Xk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764252080; 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=NaYCRt73TI4IZiG0ulxDoPHXWEJqElWgR2PIBolMkYo=; b=Be+POwCqwuuMFB8TVvSsM/6eeWRO53YufeJ+vrj7OvYgrnUAR9GozHe0YeP2JFG+wOa1rSgK7QJI+i0fukjOS/UeDtsZL7CXNgw1jPhoHRb0IzCHcBKsdkdL3jQ//yF6NmT87OGq64wh6MLJdGjPy+KNy0CoyMTasSP0pVpQrRA= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 176425208039117.0403893091526; Thu, 27 Nov 2025 06:01:20 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObwA-0006SV-92; Thu, 27 Nov 2025 08:21:30 -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 1vObvW-0005PK-OO for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:54 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvV-00025V-1z for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:50 -0500 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-531-TKFTVYLLN4K3n-xAr0w5-w-1; Thu, 27 Nov 2025 08:20:46 -0500 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-b7689ad588fso84306966b.3 for ; Thu, 27 Nov 2025 05:20:46 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f51a9819sm173080466b.25.2025.11.27.05.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NaYCRt73TI4IZiG0ulxDoPHXWEJqElWgR2PIBolMkYo=; b=M48N8RoutlfeDCJKpVPgiERyJmAKUmb6ccF+RVqh29OpFPA3kPmb+rD9yXL3r9+vFQRafn knCgd7UQZs6ipYfuqdFROnHdZZDG4NTXkHLySDPqVSmo67Cgu1bWvIvj8XaI8wP7pajyNE i3MHZ7AnflhlTQUZKic+97JuEG3iaos= X-MC-Unique: TKFTVYLLN4K3n-xAr0w5-w-1 X-Mimecast-MFC-AGG-ID: TKFTVYLLN4K3n-xAr0w5-w_1764249646 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249644; x=1764854444; 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=NaYCRt73TI4IZiG0ulxDoPHXWEJqElWgR2PIBolMkYo=; b=NHl2URTd6DyRw2vJaGoscf5M7j5QfRwCKFxK1o9yRcODEbttr/u+sc/eALSquyz/6p myx6kFpeMBZBiMwNb+hu5xyT8461jgmZbKeJEz0V7NnDLL0AdBu1tq3+KkQidrfUjfNR OPInFa4qaNj93cLTvluymMHHFS4R2LMm+vswZJLm+NpbTo5P685TYTWgycWY6nXuy1BP TY2B5lxNiLZ50TdJUy1Q/mYkS5TWCyF4vI6Yr5e7XuHI9fKY0i58psv7uI6dD2PSLX3i LRaRn1UsnRBTD7igS2rzSDfce2SK877OtlAy3flMvsnaqtni4mYsnqtRwf8hZSVvuvXZ 68xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249644; x=1764854444; 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=NaYCRt73TI4IZiG0ulxDoPHXWEJqElWgR2PIBolMkYo=; b=XpZhkZKO+mGV3j/lbRbvZXLMtllNnvYplcN791R/lYPWD1rxYHWOEOfEBbPzt0+KKQ dEcdP8iv23u9r+GLBMGUIdzYbGWh1sYHPhgcOJjlK3r86rEFWgvo4Y2nZI9+M2Ka2oiq 1zDsE/8HqALYi7clu5vn5Mux+Hbm3hhXai1ysesu8YQtVs6KYhPY7leiSaM5R/JIIeE5 QwIH0VIHGocpTSJmhw0d1dY58CnOnPceQAEQPi7K5qLr8zVCT4aw6VykhRJIw28inGWh qcP6MjwHxOuTaIiUXoyxrYYDRPJmYC30di6If+ckOH5nIug/8+SNrEtG2zQSQPaLkE7M 5bQQ== X-Gm-Message-State: AOJu0Yyxshid6xoM07Ct72FWxo0mHJ4fVdtuVQSdDDFk1HRJdFZWsAV7 HB01x1JvWIAlXtT/GjLXEgmuUql8247vygVAah5XKJ4MeyF8O4WQ9XJK98cm3zY6RG3en2GgtOI rqooewrHhbWIwhrQ2x1c0da2HlrwhQBOa7dHDjEo/IMMxR+mp7Ammet2uIyOW8KK5woAsn/4K8w nMYsfauHUd2sZp2Orat/NhvNly02DS1tw5lD7IjXk9 X-Gm-Gg: ASbGncuzNkueKAwO5IxJPEDyKDbUazgxtzsucyqIi0o364OVJCES3W2FeFI7jDnwkWR uIQaI0fTWfpGBQjwr1E/KV9PBfCrHrSxbBPYOI+BkNlEKAwklX6NlraHclEKaA/8SfuXaitEpWy 0oXBzMxW7rGIWO7sQMtTJLiGZvMfoIipnrIgu/KMhidN7ab6Ml8v3v7A7NeU3w3FJXJ0SRewjej Wzs5JaX8NGZZ7h3KLENLsvct6uXkKLe95bfFivut0g2o9pWHcye99BTItc10as4GrFubK/Nm45G em8EA/glhdr3N5pNP+iP2RC1OEJWaKe+7MlxTB5M+ABYe16gA/art8aI5Lc4El11MKNmfpB2ooT 4psFYzmeI2wDr6wO7Pf5aMpfq2LSs+m8lyhoH7Pbhie82cokHwk8M//UN7ucANZ56+u2VIv/mr0 63HtFN9JVr/cmA17s= X-Received: by 2002:a17:907:d1c:b0:b73:75ea:febf with SMTP id a640c23a62f3a-b767183d027mr2904039266b.55.1764249644342; Thu, 27 Nov 2025 05:20:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4C6Tmea+yOuuS43+qu22VGPtOQ+AXd0JAf2gPz+MPi9KhWd/E8+nWkz/tHi8Gu98qawqe+Q== X-Received: by 2002:a17:907:d1c:b0:b73:75ea:febf with SMTP id a640c23a62f3a-b767183d027mr2904034866b.55.1764249643847; Thu, 27 Nov 2025 05:20:43 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org Subject: [PATCH 3/9] rust: remove unnecessary repetitive options Date: Thu, 27 Nov 2025 14:20:30 +0100 Message-ID: <20251127132036.84384-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764252082937019200 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- meson.build | 3 ++- rust/bits/meson.build | 2 -- rust/bql/meson.build | 2 -- rust/chardev/meson.build | 2 -- rust/common/meson.build | 2 -- rust/migration/meson.build | 2 -- rust/qemu-macros/meson.build | 1 - rust/qom/meson.build | 2 -- rust/system/meson.build | 2 -- rust/tests/meson.build | 1 - rust/trace/meson.build | 2 -- rust/util/meson.build | 2 -- 12 files changed, 2 insertions(+), 21 deletions(-) diff --git a/meson.build b/meson.build index d9293294d8e..270181038bf 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,7 @@ project('qemu', ['c'], meson_version: '>=3D1.5.0', default_options: ['warning_level=3D1', 'c_std=3Dgnu11', 'cpp_std= =3Dgnu++11', 'b_colorout=3Dauto', - 'b_staticpic=3Dfalse', 'stdsplit=3Dfalse', 'opti= mization=3D2', 'b_pie=3Dtrue'], + 'b_staticpic=3Dfalse', 'stdsplit=3Dfalse', 'opti= mization=3D2', 'b_pie=3Dtrue', + 'rust_std=3D2021', 'build.rust_std=3D2021'], version: files('VERSION')) =20 meson.add_devenv({ 'MESON_BUILD_ROOT' : meson.project_build_root() }) diff --git a/rust/bits/meson.build b/rust/bits/meson.build index 359ca86f155..c0094ffcf38 100644 --- a/rust/bits/meson.build +++ b/rust/bits/meson.build @@ -1,8 +1,6 @@ _bits_rs =3D static_library( 'bits', 'src/lib.rs', - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', dependencies: [qemu_macros], ) =20 diff --git a/rust/bql/meson.build b/rust/bql/meson.build index 091372dd7b6..e5836e3f566 100644 --- a/rust/bql/meson.build +++ b/rust/bql/meson.build @@ -34,8 +34,6 @@ _bql_rs =3D static_library( ], {'.': _bql_bindings_inc_rs} ), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', rust_args: _bql_cfg, dependencies: [glib_sys_rs], ) diff --git a/rust/chardev/meson.build b/rust/chardev/meson.build index 36ada7c4546..6b681c609ad 100644 --- a/rust/chardev/meson.build +++ b/rust/chardev/meson.build @@ -33,8 +33,6 @@ _chardev_rs =3D static_library( ], {'.': _chardev_bindings_inc_rs} ), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', link_with: [_bql_rs, _migration_rs, _qom_rs, _util_rs], dependencies: [glib_sys_rs, common_rs, qemu_macros], ) diff --git a/rust/common/meson.build b/rust/common/meson.build index aff601d1df2..4b1cd35f639 100644 --- a/rust/common/meson.build +++ b/rust/common/meson.build @@ -16,8 +16,6 @@ _common_rs =3D static_library( 'src/zeroable.rs', ], ), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', rust_args: _common_cfg, dependencies: [libc_rs, qemu_macros], ) diff --git a/rust/migration/meson.build b/rust/migration/meson.build index 444494700ad..94590dc1b87 100644 --- a/rust/migration/meson.build +++ b/rust/migration/meson.build @@ -36,8 +36,6 @@ _migration_rs =3D static_library( ], {'.' : _migration_bindings_inc_rs}, ), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', link_with: [_util_rs, _bql_rs], dependencies: [common_rs, glib_sys_rs, qemu_macros], ) diff --git a/rust/qemu-macros/meson.build b/rust/qemu-macros/meson.build index 17b2a4e2e24..cdea5bf439e 100644 --- a/rust/qemu-macros/meson.build +++ b/rust/qemu-macros/meson.build @@ -1,7 +1,6 @@ _qemu_macros_rs =3D rust.proc_macro( 'qemu_macros', files('src/lib.rs'), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], dependencies: [ attrs_rs_native, proc_macro2_rs_native, diff --git a/rust/qom/meson.build b/rust/qom/meson.build index e50f41858d6..551c4f0bf5f 100644 --- a/rust/qom/meson.build +++ b/rust/qom/meson.build @@ -26,8 +26,6 @@ _qom_rs =3D static_library( ], {'.': _qom_bindings_inc_rs} ), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', link_with: [_bql_rs, _migration_rs], dependencies: [common_rs, glib_sys_rs, qemu_macros], ) diff --git a/rust/system/meson.build b/rust/system/meson.build index 73d61991146..2cd2dd36679 100644 --- a/rust/system/meson.build +++ b/rust/system/meson.build @@ -33,8 +33,6 @@ _system_rs =3D static_library( ], {'.': _system_bindings_inc_rs} ), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', link_with: [_bql_rs, _migration_rs, _qom_rs, _util_rs], dependencies: [glib_sys_rs, common_rs, qemu_macros], ) diff --git a/rust/tests/meson.build b/rust/tests/meson.build index 00688c66fb1..3c5020490b0 100644 --- a/rust/tests/meson.build +++ b/rust/tests/meson.build @@ -2,7 +2,6 @@ test('rust-integration', executable( 'rust-integration', files('tests/vmstate_tests.rs'), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], rust_args: ['--test'], install: false, dependencies: [bql_rs, common_rs, util_rs, migration_rs, qom_rs]), diff --git a/rust/trace/meson.build b/rust/trace/meson.build index adca57e5507..1b3498f7fc1 100644 --- a/rust/trace/meson.build +++ b/rust/trace/meson.build @@ -11,9 +11,7 @@ _trace_rs =3D static_library( 'trace', # Library name, lib_rs, trace_rs_targets, # List of generated `.rs` custom targets - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], dependencies: [libc_rs], - rust_abi: 'rust', ) =20 trace_rs =3D declare_dependency(link_with: _trace_rs) diff --git a/rust/util/meson.build b/rust/util/meson.build index 8ad344dccbd..18d67a4b374 100644 --- a/rust/util/meson.build +++ b/rust/util/meson.build @@ -38,8 +38,6 @@ _util_rs =3D static_library( ], {'.': _util_bindings_inc_rs} ), - override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], - rust_abi: 'rust', dependencies: [anyhow_rs, libc_rs, foreign_rs, glib_sys_rs, common_rs, q= om, qemuutil], ) =20 --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764249700; cv=none; d=zohomail.com; s=zohoarc; b=dTfkUg1bJMao2yQLoognyubMOK7DJaIQfvBCIF4fQCWP3ZQiBZIpJS2HWlF5nFRSFEi91Hm2sXfmtDS0eCsLWR7jqnj33aFxyoOdtiqUSdUL/UsaePZtzPtnleEteHF5L13FziPKFOpqjhPKzUJ1vvyDCoe454OX6LsWcTglVJA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764249700; 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=isO8fa7O3c4qBfTQUgy/eZ5GTanVVaRH/3OOX9kLqXA=; b=gTPB39TvE8rYTG/XP74ezHVxtxlgrJdbBP8EG7JarmOJUgdshnwibxxcRKrhQ7dgOat3WzS0IMMn6qkKYaS9oNHWFs//Porp0cGKncoWswqKx/Uomz5MkwJPDd0eDezqmcq+PP/LXmg4SxzqJhJ2+rNyqF5zCHvAyClAuf5E+Nk= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 176424970031378.84143967448051; Thu, 27 Nov 2025 05:21:40 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObw2-00060n-Od; Thu, 27 Nov 2025 08:21:24 -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 1vObva-0005V7-NJ for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvY-00025x-0x for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:53 -0500 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-56-HzkMWxPqP1ytOOm0lOfzAw-1; Thu, 27 Nov 2025 08:20:49 -0500 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b72a8546d73so103625166b.2 for ; Thu, 27 Nov 2025 05:20:49 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-64750a6ea41sm1586055a12.7.2025.11.27.05.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=isO8fa7O3c4qBfTQUgy/eZ5GTanVVaRH/3OOX9kLqXA=; b=diQLxFL3POSmdSB7etNLZRwb2lJ+Pey2i2S4vcM0L2ve2PDR8gtHgLmVtnH+G383gH4UeG AQarx5xcMBfRmkZ5YxZrQPe1BQBkuSJst0kOfPfi/eDSMIDWbAuHuxY2O5nAdJHEhw8yma 0rm276+NBnOM6vRjUEmirjItzt2XKd0= X-MC-Unique: HzkMWxPqP1ytOOm0lOfzAw-1 X-Mimecast-MFC-AGG-ID: HzkMWxPqP1ytOOm0lOfzAw_1764249648 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249648; x=1764854448; 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=isO8fa7O3c4qBfTQUgy/eZ5GTanVVaRH/3OOX9kLqXA=; b=su4STghGjJH62oQoQ6Kqy+90fiBoKGSMY8mqxe8ev9n1fFRou9/B4klmNPKTZ/rUnj bHLBmgKf/lmpNle3AQIbuZwOzNmAHT0GtgBkHZ4+ES5++LOHaOO9l0CfU8knTXhdBcwy 7f8rA/e3ncX1JhMjB9Tv71vspprAH5J4dKvveQTKyeP3yz5RA5IcVikDu/3e6o7exwfX tNuyrMjt7buWakBDbGWJxWHdYfZCjdxL2Ctx3wvsPfBdW9sYPqbMcAkcQboluzCMPmuY i9KBiPpgJWMZNkS6l0ZZnfwmfFdchEviZGkNPVkvcvwcQHPqxwWrk5XK+fQhBjPEl36T bMHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249648; x=1764854448; 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=isO8fa7O3c4qBfTQUgy/eZ5GTanVVaRH/3OOX9kLqXA=; b=QIBhFfQwfZCn5OaiKkV3XNqHuVOH1AEOrVzrqBxPV5fvNR6KFNu7be9Syliv7aCWwy 4Avu711dnSxjKJUk2eFh7h6f5Y7QmhXA6vw69JcIjpmBACAsc5A9A46AWn3+Y0irNLdw mskOroOe2MSp26pXgMlysaH9oXOw597XpRSgtOjGwiFLB4kcLm4nwiyTF781i6A2Jwdn fK5rpv+2IraCnTAVqI8OQvfIIuAxd8yBufukc5MQeg833Tzu6szZ/BJTv7fF9RPBkCXg dgNV81ILPwOO2GvxSSmWyoIIe5263MRwNSZOPVDNK97flWcJjstbhX+8+1lT6EtdJXgY OL5Q== X-Gm-Message-State: AOJu0YwafWXX38AeMwdxuI2tFbo+JaE3dk0XAanlyrIUgtzsW/PZbA0X bN2HpsbQBYbccxfDQErv/d3BhKtq3USZnPrCV0DpZH2fnVFvK+opjITd0IkdZTWb72T6xfTfQxn 0FJLVbhoJisNa8MN2A9poO9S0TeNboTzFy1yaK1zfapzk+buWvXpeXpKhCJeqxESJnSsdUr14JL NcFpcc89PafDwxfsoP6NNSAU7gbFV8cS/svwQJJ0Y1 X-Gm-Gg: ASbGncujUPOr737L0D+n7QG1ItP/ZuBSFAX/LQxqAro4lThqifuaNShYavlnEmuyN3z e6Uynlig5JPUtGdBLs1wGyFSsuy8aCTcgYmocjLY26xji1y/bi3Mh68KZF7fKnSc6eZADKmZx7m C2Pzj1snRme734mlCDTx7yFFoB1AjoPRhFJdprjJ5K/EfJZ42OiEU6g2wEa+yaih3RnZFZOQ9HV vN5i224+TYlJDr2YVvN1kBbD57337nwefniDgP1G1kCzkjiiG2Tm6rbYbHbOeWCEJiU3XEO2NKS a0aBijG2vuR7NIr3SjZ/4xMimHiP+mLpNFIwGs3wiFhJDFjoWB1ak3hYix2yIMW42psX5dAJUsT oCq+eRZ0D4+cDzJNwmB2V5yrmfYBOOr/bKQya16RmwSDfsOw3ZWqhBIyPGTwIDttDvGV62KDOHu oVsNEOx6y3UVILQI0= X-Received: by 2002:a17:907:72c2:b0:b71:29f7:47ef with SMTP id a640c23a62f3a-b7671b50083mr2523412566b.61.1764249647912; Thu, 27 Nov 2025 05:20:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHduIIPVflFvWbNu/AZ34V1zSPZQ34GTNbBQlkL01K9Sx9DaVcBqCjb3AXVG16DZAv3yyCx7w== X-Received: by 2002:a17:907:72c2:b0:b71:29f7:47ef with SMTP id a640c23a62f3a-b7671b50083mr2523409466b.61.1764249647514; Thu, 27 Nov 2025 05:20:47 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org Subject: [PATCH 4/9] rust/bql: make bindings public Date: Thu, 27 Nov 2025 14:20:31 +0100 Message-ID: <20251127132036.84384-5-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764249702217019200 Content-Type: text/plain; charset="utf-8" For consistency with other crates. Signed-off-by: Paolo Bonzini --- rust/bql/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/bql/src/lib.rs b/rust/bql/src/lib.rs index ef08221e9c1..2cdc551e21e 100644 --- a/rust/bql/src/lib.rs +++ b/rust/bql/src/lib.rs @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later =20 -mod bindings; +pub mod bindings; use bindings::{bql_block_unlock, bql_locked, rust_bql_mock_lock}; =20 mod cell; --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764250694; cv=none; d=zohomail.com; s=zohoarc; b=Ec8C803lTTtgf6DPQIh8NshQetomljKQePtne1DDW0E42Z4oXH8nohDc6kpUmX1mLi2jFnzymj9EZTWR26xrhwNp7CQdHOKMf40IdP8pfWsXQD/ey1CyCn/bOQ4hYrRFu/Mw+pLyCSRgecklh+XqR43bDkExu1ghJrlQzygeghY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764250694; 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=oHu41Oa/q8GhaKEt1sOE2Bq7H77riGl0nC0M3nPlAeI=; b=BPJ4zmGsu+Y2rPk+mX0cPcQw2Wgv7qGM75nWYPfcCi5CofEAT53EwNRhPNbCFILGFdpn338dF2osdKYp/fi+FJ1LrdsC08gzWWPeltxHMTfUxjaMEso+JvCMYkwELcPxzWMgDu5OEbb0fqPHwbi/+paCKJmU5S+tCu9GHr1XDwI= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764250694052298.0505597767187; Thu, 27 Nov 2025 05:38:14 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObwC-0006gd-Ds; Thu, 27 Nov 2025 08:21:32 -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 1vObvc-0005Wq-TA for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:00 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObva-00026R-Fw for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:56 -0500 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-122-oiZ9WDSJPb-7QrT8s3mMLA-1; Thu, 27 Nov 2025 08:20:52 -0500 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-64537824851so1025193a12.1 for ; Thu, 27 Nov 2025 05:20:52 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-64751062261sm1735825a12.33.2025.11.27.05.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oHu41Oa/q8GhaKEt1sOE2Bq7H77riGl0nC0M3nPlAeI=; b=K0us2ePHE9ndXhoNPrqw3e8oLdsOv6UmWY3IF67wXcBACbrXTPTLLzeAz6a59R8R83K40Q yVlYeoHOcToLkq5qzH1qQTt2p2QsNXQRtqtbsNAWG1tTzFYha5M91NBL/f52Oi5Vgpc9EF bJHcmwinrLqoFmkVMbgjf2ujQuU0Kgw= X-MC-Unique: oiZ9WDSJPb-7QrT8s3mMLA-1 X-Mimecast-MFC-AGG-ID: oiZ9WDSJPb-7QrT8s3mMLA_1764249651 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249650; x=1764854450; 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=oHu41Oa/q8GhaKEt1sOE2Bq7H77riGl0nC0M3nPlAeI=; b=ZKkkhBzNIVADgYOSb6OyzeRPI9C8ODXcSBiR/J1effW9l4hvXbOc0nKOnk7AH5uB9I NVKY7XnqIW5UeACrq+TrcRtbm4p320Iew3zcS7xH9XefX09zaABBm+YIZ5OiFBMJg2MN /LQq/0KoZ2zVMutJ7KqWS531/2vcszOlyDtnfy/9FkcKkthj+6YYhtYXFA3V9xYd7SCF 7NyAskE7TGtVgvl875WH4YXDSMuAkOenjQPY3xKJFiElZFaI+g+8NVIWYZjW5vODBmgG 1QKvYK5PsmOY8roH1J406twY8FSuGHVFK+TAX4lmBqlUIS2A0ho6xQGKcFBaLAlwMeXV uYwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249650; x=1764854450; 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=oHu41Oa/q8GhaKEt1sOE2Bq7H77riGl0nC0M3nPlAeI=; b=BVJK35SqEXnykmy+ZxzTEsSuNsE5K8oCystmDGAq2KZCwXIinPQnBnslIdQCzobegM gRoMpepLZfE9jE3xghNz+neo1X97F6lip1L+bfIMQzE/JhHMV2sThnJRIXS0NUvFITec KYSjlmF3SX6GnSSyd8O5DmWM/k9B9kyi9yZvJIksiVO8M1OKMaSLCV06CgpwqKZIEMJZ tKNkJG65BmQXa9QpbFvbcKSxjnn9j6M9jLkkUJHtcU2gPuuV2AKD6ytJgRYVsqJLEi4h u548l79HIQSQzxz3DMjgoj8tNKqOzZzsHDlT+STTnfQV8FcfwINWekMXrbH+JiNV24BH 1zdw== X-Gm-Message-State: AOJu0YyGwSMV26ysmZa03Ad5bV8uLJspoYGECWtNHcf9PrZiTZUpPdE2 zk1BBbcI7fVJF2GSsunBEQYlZkqXAG6KCh/W3dHjis5B84JhLz5nYc1tWjxVIJ98tcA/8EmRBlv 0blPvvxP+DPspIe8nxhunn/XazOIuDRae7NCaJkOR9CxXU1b3Y5UnaHohtqtXnh3KelXoZCpVxu +DE4qvoOZifrlzonPgYR+UMmyJ4NDoOFg8jNdZczB/ X-Gm-Gg: ASbGncu72/3zr62FHIxNO/vMSg/9zpm2M/nyG9BktsJZrCQQZr53gtKIoXNo8hti+Wt HgtI2n8U/Am3XAvPozM2RpiyxKKeGB5KKstzjjodfUX0Q9PTwjISUBXDPVAZVqPMjwt90ou6/Py yirnQxxJUWli3PfCJZ8DyJF583mMX0uVcVAguT6oqc9YCYhmnCFLeQHXMGyluYO1D84LndFuRX2 nVRUfb9KHOmZLuQObYNqW8vcCXvfYQfeC7ObURvEMtDQVDT5VzzcMNzj/72r9CqIDQ/5kVf/Bnp DCozW78ISxx2pWjcqV9+gv60YECvc38g0xv/a7sOKNmJbBoogjD8IgzeBeWAVju5BURpfwnrIUN L+pYYGI3EPvuQk/mDWCxVmqTU/TzAtP1SxGu8sLJsrji566onE1l00EsQPB3mAUGJYb1EkXlq3a NWGsrrkqA4dPjPEMg= X-Received: by 2002:a05:6402:2816:b0:640:93b2:fd1e with SMTP id 4fb4d7f45d1cf-64555cd8cc4mr21660357a12.17.1764249650403; Thu, 27 Nov 2025 05:20:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4X2jw7lKUrC0VSwQWqFLab02VMT9E/qXYgLu35Aos+c181UH6b58dTLOfMnS++mkvY5wIPQ== X-Received: by 2002:a05:6402:2816:b0:640:93b2:fd1e with SMTP id 4fb4d7f45d1cf-64555cd8cc4mr21660325a12.17.1764249649989; Thu, 27 Nov 2025 05:20:49 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org Subject: [PATCH 5/9] rust: do not copy the SysBusDevice Date: Thu, 27 Nov 2025 14:20:32 +0100 Message-ID: <20251127132036.84384-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764250695010019200 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- rust/hw/core/src/sysbus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/hw/core/src/sysbus.rs b/rust/hw/core/src/sysbus.rs index 68165e89295..ec620639be5 100644 --- a/rust/hw/core/src/sysbus.rs +++ b/rust/hw/core/src/sysbus.rs @@ -78,7 +78,7 @@ fn mmio_addr(&self, id: u32) -> Option { assert!(bql::is_locked()); // SAFETY: the BQL ensures that no one else writes to sbd.mmio[], = and // the SysBusDevice must be initialized to get an IsA. - let sbd =3D unsafe { *self.upcast().as_ptr() }; + let sbd =3D unsafe { &*self.upcast().as_ptr() }; let id: usize =3D id.try_into().unwrap(); if sbd.mmio[id].memory.is_null() { None --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764251894; cv=none; d=zohomail.com; s=zohoarc; b=llLO6PKCVI9LOqnnDBMU+rS0H8MI17onuvFmdLN/zkOmx/e2+FDpXN/sV7gFjr7g6dNqyzMm8O7uUjP7OEzuGgiPyvJxby2O0tOaojPNiHWQ3ISba/rUxFTRMCIo+3JSIrST/0GKjIY0Ji8mHxryw7ouVdDaKuTkRG0D5xt3ki0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764251894; 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=/Pepi6jeH9DfFFMv3XK3Bu8X8CyejOzTLvd3kGqRwko=; b=LFkRfcpxMaJwqhfbaeDouPLFfCdC4rVuroooi5u48dHxt3yBmSETsD3G8VdKu7iZhTa1d0RxavZrqO7J9rvEl0WbavfPmodTgD9Eo1oGk2q6h5Wk5h4bWMwleOUnyYVIH5loY4UFvLpGaCRvh8kl6ozqK/hFtGUUxHJBzgvvJI8= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764251894687236.30827892152104; Thu, 27 Nov 2025 05:58:14 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObwH-0007YD-P7; Thu, 27 Nov 2025 08:21: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 1vObve-0005Yg-2c for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:04 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvc-000273-4c for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:20:57 -0500 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-274-oWZv3z1GOBWJ2gyL7s3g4Q-1; Thu, 27 Nov 2025 08:20:54 -0500 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-b76eaf310f6so217326966b.1 for ; Thu, 27 Nov 2025 05:20:54 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f519e2f0sm163084466b.21.2025.11.27.05.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/Pepi6jeH9DfFFMv3XK3Bu8X8CyejOzTLvd3kGqRwko=; b=OpqzDL75wHrx/BHrbjmdu24LnElp/cSZiydpUnqos9a4aztvWzqhVQs2S59aDqrfYGodSP u1qIQsvoYKmr0o1qpwTMb9k9yXJh0whvqScmPxSH3bffeUtqvbkjJeLwDmow/EnI5Ohw1g 8dgvNlcGCKIgoNIqNzpD8zUwQvZuKxs= X-MC-Unique: oWZv3z1GOBWJ2gyL7s3g4Q-1 X-Mimecast-MFC-AGG-ID: oWZv3z1GOBWJ2gyL7s3g4Q_1764249653 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249652; x=1764854452; 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=/Pepi6jeH9DfFFMv3XK3Bu8X8CyejOzTLvd3kGqRwko=; b=s00Btp5t2/XMnJ2bkjbvZuopObWund7Kz3bl7qfu7ri8K4tXqOQYYd19/VjJ0ckhUc oDSdq1Y9rAyqiOQej2hc6I0TKh1hkw4tcVzyJsy9jjasyCIjPhe/IBoPY38bVkrfKvHc cozbxzoMDSEVbWDfJjIVPEKUsF0q6pIFM004+7EN4i3M/jwrwT/F5LbGkZE8P4we4Ren YwcOGVzT6ShR75k7HTIQKcqgFrpzg6FW53GHRXrndFihkrVUclTkmZ3+RY34h6Cvi6eD YWnUz6jdxuzb1DyksHIguNOrdTzWaGGH3zCGwiRa1ipjYvczDoOC/g4JvmiGsFvogk50 OZ6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249652; x=1764854452; 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=/Pepi6jeH9DfFFMv3XK3Bu8X8CyejOzTLvd3kGqRwko=; b=QGO7nf2W46w26VQAnYXEvEAGDd8ml+c5+f1yHnXGh/+9RKI2SCcnxjHLKIKssxQPx7 OKMX8H4769EC+FuLaqr5ki6PytEK6QhnW7YK+yR33BEHw1B5zuckSwNUO/GKENeAr/T3 tOoeF9KE77Ig4xdWzDlcXe19QJSZc5+7u1QOdz7PI1BFkQsmGyCwld/aUvr6iIB7IdjJ /kf2xd35nbX/Ub7aK96DJjIKzt8qBCif7zQR1sXmrYiNw5x85P9CzDfHSOguwI5g8AAt 3d9yTY68pG9YVTG6Y44uflNl1CKOF0TbAErH9ys+t9cNKDeRIwCAygj8xZ+a/pV8ChsC USag== X-Gm-Message-State: AOJu0Yx7wq+eTZnl6eIjXoS+am33XwOupmmW1DWFk14qZvset5Z3F9Ss lXuy1RJguXIHc8pOHHk0zYt471yftz2EpwWBmKPDK2ajDb29pDuW2znDqbx0AUTVm5pB1ANFkTS VH3QDURwOXhcEK4vC5kNGMyWma14OP5CqwUc1EmcbV7qrAZh+IBGaUurfODkLCfMRDajflK3cWx V7oMxE05up6F2meZ1x87kG1m/tGz1blHBTwvPoeudw X-Gm-Gg: ASbGncu3SVKbQekk9vB9LbGYCNDzMp2xfeYqbP54aTr5moRttT/0hvnZEfsTXW+j/vv BM0CgVEUYhy/GUmZ2KzyJhmd75SzDHQqfvWujK4B99SfpwUr/XfVPHNFVP3PcbWAazZnswynXFu I4BvE0mo1XhLs3/Go1ZmNLGIyCLaR7VEPcRnuoVvanI678onYZ2+kFSwQhB4o3DKikfaz8kswNE tjo6jjqTi9DqtjE+MznnmCnZB58WJxeo2O0Cp5Y4QJBet//Zoye98CjEU9pK4xnzwhvpGw7bftn PR8V0/pqxJx8vs97cmpFHnI+51IwIULSFSGZpD2HHERSwmYnZQ/yow1JIQz6nmxJJD1W2XQZsiZ KbTfjKtm/jU8WgytOLtxim1wYhd2LFWUkXJuRZr1TVMCFTYklTVUHRsbw8jR2BuljBKmq1Tn8B0 a5SlhzNLLGWLxF/ME= X-Received: by 2002:a17:907:7f02:b0:b76:25fd:70e5 with SMTP id a640c23a62f3a-b7657172f39mr2965549366b.9.1764249652499; Thu, 27 Nov 2025 05:20:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrG1KsgGUtAnUytaISRdYHjVYWool3bGVjcqpuHMouu1tGFNLcWGETNobColG90nPIVwj/dw== X-Received: by 2002:a17:907:7f02:b0:b76:25fd:70e5 with SMTP id a640c23a62f3a-b7657172f39mr2965545266b.9.1764249652018; Thu, 27 Nov 2025 05:20:52 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org Subject: [PATCH 6/9] rust: fix reference to MemoryRegion Date: Thu, 27 Nov 2025 14:20:33 +0100 Message-ID: <20251127132036.84384-7-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764251895303019200 Content-Type: text/plain; charset="utf-8" Use the wrapper struct, not the C one. Signed-off-by: Paolo Bonzini --- rust/bql/src/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/bql/src/cell.rs b/rust/bql/src/cell.rs index 8ade7db629c..435d6663ac4 100644 --- a/rust/bql/src/cell.rs +++ b/rust/bql/src/cell.rs @@ -42,7 +42,7 @@ //! references to an object and yet mutate it. In particular, QEMU objects //! usually have their pointer shared with the "outside world very early in //! their lifetime", for example when they create their -//! [`MemoryRegion`s](crate::bindings::MemoryRegion). Therefore, individu= al +//! [`MemoryRegion`s](system::MemoryRegion). Therefore, individual //! parts of a device must be made mutable in a controlled manner; this m= odule //! provides the tools to do so. //! --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764250736; cv=none; d=zohomail.com; s=zohoarc; b=R6Jmv5RG5TYryOY4yQJQJPnkiVNaRu7UvcA9dye8i6pexPrAhTPLFk5+4rTDLBitWdUtpcxGfVTrjn1lTutR5IEAH5ZjsFNXWd9pSy7NHgdIlMWXI4170e6K6EwjrL4iBcLmgRcJsbhL7DwpDLC3Qc4ZohoHOOqYe1MTT/jiEec= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764250736; 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=35cW+AZMPXzQdRbMH+IdIxqC+JST8jSEuSl2qWTOWks=; b=LBRr2fziqEs9pxeZ1cg3lIq38MTGT/cH6WImRv0GrzKlI3kxfL5Wyr5uk2CyBtVgR4BsWJ9p/TPslP6DNFY/HKkmxr+ratpv4nJx+XTsCmbgOXTceBKcPrjBQ2KgHnzdOrk/ZHCfIgC6F97lz8O3jjNoa/DQDFLYFOVZpnZWAGM= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764250736811638.3557494606813; Thu, 27 Nov 2025 05:38:56 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObwC-0006c4-2U; Thu, 27 Nov 2025 08:21:32 -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 1vObvj-0005dM-UU for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvg-000284-JC for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:03 -0500 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-410-c-OhUnlWNxaBrz9DRHw4HQ-1; Thu, 27 Nov 2025 08:20:57 -0500 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b70b1778687so66651466b.0 for ; Thu, 27 Nov 2025 05:20:57 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f5162c5csm168898566b.6.2025.11.27.05.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=35cW+AZMPXzQdRbMH+IdIxqC+JST8jSEuSl2qWTOWks=; b=T+uO4cp98xD1lWMC5n54Aha/DksMS1EP4PGSBGkAJwH0TCMGxISDjrEbS21C7MqZc+1zYp Th/CPALv6dcq5lABIV3TDwMg8PDvqG9b4RuW5vFIxf57n2gCpoMCo0B/JRc5zEeLy+WvJ/ vrObl7s6wmOJDVHlAYXHILsu0rN0YiI= X-MC-Unique: c-OhUnlWNxaBrz9DRHw4HQ-1 X-Mimecast-MFC-AGG-ID: c-OhUnlWNxaBrz9DRHw4HQ_1764249656 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249656; x=1764854456; 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=35cW+AZMPXzQdRbMH+IdIxqC+JST8jSEuSl2qWTOWks=; b=AbUhf2c6BFCvURO3nxuIzJFb1EIp1Fk/WEYhEmYgJCHda9rgBYvxRiUoyrX0vJG4qy T7FE7Mxdzfk2ZTm5HRaLV4HEq5W7pe8gpb9l422t2xvCGWq2/9yONd0moLCyU0fqFyRL Iwampp12nxmD8ndZDR6DugAITrpUykGeNG8H812z8hf5aeSvcuPYNWZey/dIxZZaPxjH aMxcuB9j+Xa8gzVo6riM8vl7NdxrwyWN+WY/uOYS5L8sa0wKsL9oNXnmC8B1m0N36mJX nc4k73Mmim2QUHFpL0piui/r2Gkh83aa67gE6cH32GwdQDKQeTGt9HaVZxCUn7Na2dKZ 5Csg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249656; x=1764854456; 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=35cW+AZMPXzQdRbMH+IdIxqC+JST8jSEuSl2qWTOWks=; b=BdCyrHslDKRZAqM2zotX3q7dxEHtDQV25dEEd5fjdQhvv3gXefo9HKLd54kJyXcf7F hj+SP8W50pNqjMjYVGR6Cdx9zv0bR3p7crIr7rqE7wxeteUs+3E/GAgKKOnlkIAjnMgQ HGKbvjRjZ9Ddj0AheK9fkQgqWf6zHMWwvE9lWfXH6JjJa9V6hZ52WP1qrHWYriXGDrij aAUZDih/fDTskCxH2erHRNub8sII/rZFocnouxfXnlEwTxNRLI5qkWHNJEEUNz2S2ekF rSoADOwbI4BsgT6RMhOTyKwIjEjeOKyOToBgvPyGcYLWJW8th1pldi0duH3owBzNGsly 9Zmw== X-Gm-Message-State: AOJu0Yx1Q/ohg9Uj8okzwNvu9Yu40Pc2HQKE+QQClCNAcw1APRP+dAUa ykRsobz2RDMQC7Hqk+dgZcQ9Xni35TfWYg7sgRdB9Yx1kWOY82Z/khjMeR6/lNDPB1gixESgS2i FijwtLjtXP5NUZ06ZxdXqtH36t0yuRnVuL1Jpf3eU9Y1iaJ4A5VPrjQg2/8em/bR7g8bfpMazhT 2IQj5DwIumGv5lwCT4V7yJvjSh6OJVyVDjjiywodUU X-Gm-Gg: ASbGncvM03wPAdTgkHZ8TfYatRfK2MNSUxHgwchO7ZPYa+3KTCw4Sr90VN/YnsCf4kD OdjuxVO6QRn8315f/XeuD9XEzNd31Pi2CAHBz+9TohsW+W5KhNgEJk9ftVNy6Qy39QElU0IwiVC gE17C1u38XYl25NBIzLru7w5Dw9nVSI5X33p/Wuf7yvifvKQv/llUHMl7HeJeXHCgCoXscRfdhU yTrLCZblAwbYvmPFvWD19vmkW71COVAs2HeC0WSCI0N8Kh4/6Dbk+Q+O/gKlbGIPjgLxU7t2M8B Jq01BqYBxVz7R3XJDLS28hEDX26pYrVqwnUQ0cfk+UBCUpUtVf6KFse9BKQfeSlst0M4h+locm+ 4D3YCB7p2QmFiEwwRlHRHyCPfIxf60qcciyG50Ln/LYT1ILYS5PutJW/5bcYAwxhUXEfwgv8sSX DymVBnjSKQztKCVjs= X-Received: by 2002:a17:907:2d11:b0:b73:853d:540e with SMTP id a640c23a62f3a-b767170c823mr2707245666b.30.1764249655063; Thu, 27 Nov 2025 05:20:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLkSAX/ex76yeg+naPEWLopgu3EY8SdxOS3m/Q7KCanmYDR6Wnsq+TcIYxujg2u6gn2qQCRQ== X-Received: by 2002:a17:907:2d11:b0:b73:853d:540e with SMTP id a640c23a62f3a-b767170c823mr2707242666b.30.1764249654592; Thu, 27 Nov 2025 05:20:54 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org Subject: [PATCH 7/9] rust: move strict lints handling to meson.build Date: Thu, 27 Nov 2025 14:20:34 +0100 Message-ID: <20251127132036.84384-8-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764250737321019200 Content-Type: text/plain; charset="utf-8" Simplify rustc_args.py, and align its code with what Meson's own Cargo.toml translator does in v1.10. Bump unknown_lints to "forbid", so that it will certainly override Cargo.to= ml's "allow" level. Signed-off-by: Paolo Bonzini --- meson.build | 7 +++---- scripts/rust/rustc_args.py | 20 ++------------------ 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/meson.build b/meson.build index 270181038bf..e6a11cefdb7 100644 --- a/meson.build +++ b/meson.build @@ -128,14 +128,13 @@ if have_rust rustc_args =3D [find_program('scripts/rust/rustc_args.py'), '--rustc-version', rustc.version(), '--workspace', meson.project_source_root() / 'rust'] - if get_option('strict_rust_lints') - rustc_args +=3D ['--strict-lints'] - endif - rustfmt =3D find_program('rustfmt', required: false) =20 rustc_lint_args =3D run_command(rustc_args, '--lints', capture: true, check: true).stdout().strip().splitlines() + if get_option('strict_rust_lints') + rustc_lint_args +=3D ['-Dwarnings', '-Funknown_lints'] + endif =20 # Apart from procedural macros, our Rust executables will often link # with C code, so include all the libraries that C code needs. This diff --git a/scripts/rust/rustc_args.py b/scripts/rust/rustc_args.py index 63b0748e0d3..8fb77785350 100644 --- a/scripts/rust/rustc_args.py +++ b/scripts/rust/rustc_args.py @@ -35,8 +35,6 @@ except ImportError: import tomli as tomllib =20 -STRICT_LINTS =3D {"unknown_lints", "warnings"} - =20 class CargoTOML: tomldata: Mapping[Any, Any] @@ -82,7 +80,7 @@ class LintFlag: priority: int =20 =20 -def generate_lint_flags(cargo_toml: CargoTOML, strict_lints: bool) -> Iter= able[str]: +def generate_lint_flags(cargo_toml: CargoTOML) -> Iterable[str]: """Converts Cargo.toml lints to rustc -A/-D/-F/-W flags.""" =20 toml_lints =3D cargo_toml.lints @@ -104,13 +102,6 @@ def generate_lint_flags(cargo_toml: CargoTOML, strict_= lints: bool) -> Iterable[s else: raise Exception(f"invalid level {level} for {prefix}{lint}= ") =20 - if not (strict_lints and lint in STRICT_LINTS): - lint_list.append(LintFlag(flags=3D[flag, prefix + lint], p= riority=3Dpriority)) - - if strict_lints: - for lint in STRICT_LINTS: - lint_list.append(LintFlag(flags=3D["-D", lint], priority=3D100= 0000)) - lint_list.sort(key=3Dlambda x: x.priority) for lint in lint_list: yield from lint.flags @@ -187,13 +178,6 @@ def main() -> None: required=3DFalse, default=3D"1.0.0", ) - parser.add_argument( - "--strict-lints", - action=3D"store_true", - dest=3D"strict_lints", - help=3D"apply stricter checks (for nightly Rust)", - default=3DFalse, - ) args =3D parser.parse_args() if args.verbose: logging.basicConfig(level=3Dlogging.DEBUG) @@ -207,7 +191,7 @@ def main() -> None: cargo_toml =3D CargoTOML(args.cargo_toml, None) =20 if args.lints: - for tok in generate_lint_flags(cargo_toml, args.strict_lints): + for tok in generate_lint_flags(cargo_toml): print(tok) =20 if rustc_version >=3D (1, 80): --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764252229; cv=none; d=zohomail.com; s=zohoarc; b=fgoifutrsAGWLHMPf9OFjYGeYL79CQ3zLZ68bsTSOM78seFfn9Q/JUEV/ftRFV53bfNqZc40xiwptSbVU8NnCAIdC+sTKkUdwcV3PDjVdl69Pi2VzxjLFXTmD6jbMYpzA1OVzlB8oHOvipwXtO3pkhxnN/n/Rh0Vye39eBLbQI4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764252229; 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=iUV5SEQ9mEN3G1RbSMj3A+PTdrIfEx77HI6Qj2cAojY=; b=KOS51eEnYsvWGuoystJo5Uxwdq9ZVKsF9FmjLGio6Bkl1gaPQAhGfKMTKzFVaUlg2ey5Djgd3CLlHyJU2jn0uze7Nkkf2eWV6nMBpaOmD2wBl+B33tKVUw445Ea+n6HK+jMAS4T+O7S/Cx/nctB1EUsj/JGJwNq5tmw2v5NdWlA= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764252226703332.5764584246548; Thu, 27 Nov 2025 06:03:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObwD-0006xP-Vt; Thu, 27 Nov 2025 08:21:34 -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 1vObvj-0005dO-VQ for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvh-00028K-Bv for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:03 -0500 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-462-sYIWkrgsNG-JCAukD6j8Bg-1; Thu, 27 Nov 2025 08:20:59 -0500 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-b7270cab7eeso90179366b.1 for ; Thu, 27 Nov 2025 05:20:59 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f519d828sm164664866b.18.2025.11.27.05.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iUV5SEQ9mEN3G1RbSMj3A+PTdrIfEx77HI6Qj2cAojY=; b=e2yt+0ketmHIlu6aPDMkjytxcczlW8JzmtI69T9R9aDz71bv2f3/aKJso8imLxH+S+EGDL XQFoYtkfgtwnUkA2trXhB2kBc8GBbsbEB95NIxTJJSVxmrloUfy8s/1rQmNonvX7kLCh+w gyyMmEoWv87w699TN6tvcJBVUm7Yfng= X-MC-Unique: sYIWkrgsNG-JCAukD6j8Bg-1 X-Mimecast-MFC-AGG-ID: sYIWkrgsNG-JCAukD6j8Bg_1764249658 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249657; x=1764854457; 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=iUV5SEQ9mEN3G1RbSMj3A+PTdrIfEx77HI6Qj2cAojY=; b=ck+ZJSfG4CQnYAuP6Ietawv46VI68/FwS2mXsJKPsArtNDMXRw+oiLFVpq6w/ARaCQ X/U5okk2bNoXzN4y2TeGN4hyPzbT4NZbKI0i8qM/oE2IPFkpfEcSpMUo2WBdj3w0LA1W /FQRbgnTcRQAuAkNFlMTYtg1P3D3PfyncV9lf9zyhjLiy8RBkky63fhgnA/EjIfBCAzL dJ5x3PpHv4aAkHQS0C0rS6JIgUCdKnzn00o8fVbZkhf8ZKHgW02ItH0GISZeIYO2S+tX 7mAb63hI7elAWBpUhrgU+W/DaE4Sx2LeVzu3Ru2OUpjwXxHEI0X/UHKplBPqiSRW3AId HvUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249657; x=1764854457; 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=iUV5SEQ9mEN3G1RbSMj3A+PTdrIfEx77HI6Qj2cAojY=; b=MFPq/eurhKhPR0Mge6X5SCCDgZ2//HEnoyCNNT6KUlhOEAm4G3vCAOiJ8E0A9pzRzo CB3tCv+tdf1rjU9LOTo1TKDz4PBuHXKmBXcUPLfkgM84UeE7XyI20t1LSh/O5zquaWDO Di1qgwWMKtkhDN8uJ+lCJ6m7v1jBjI6oZ2wYe1prUela3F4CyexgTBkJH2Uodb/k8uFf OEe6X0deGfHZhnjHY3vJgEDKQEt7lHGPDbhDvoCiQ63NRTJpIk7BHFwF4SE+bGPPi7wU 5KEmKdP+RamH3Cj6NR+e6LnP/ObdarvhNzQNdel+J/ffru2GmQSvxBsjUTW6vyiicHtG yFqg== X-Gm-Message-State: AOJu0YwML9ASFQ1fJXeto9Sr33iDem5EazsrT74gNhM6eFcNqIpqgTdA rctOwrZxNHYdJUMme57hMW8tBH+kigKYRAioPWr5RFtCGnJPdAsNztjP/PbHkyGvYIeOdpMMo35 BUSntThk4T2TgZK0XiWBPBAflt0R9j/NatesfAoZxc0MOd9N0Po5PyeJPeYmyVmTEqtxFcNp2Pr c3hzLiCqb1xVsreQvPipVMoWbVPvwRw/TxyFfjOfWr X-Gm-Gg: ASbGncvTshMgzYCwqN+fquCHPJhTW2duF7gKCqyQqfDbOvYbtzrbWujFqE/0F9Mb3p1 X2YA8aIhjTYF0BokAeBMluGCYt5iPJVaziT353E2AIn4mOGm48ZTKp+H8mWWLiUcMPCzbv/UHH+ mijMpKaACYTYz70nGyNEenk5HlP41Deq+cSK4M1oc3YMLBlqzSSa3JQHoxm+tIKMMCyHhwK4siL 5HoB1Ne/2zZRCrr8f3Dt/AULMUJHsyp2RLzHqXVL6C9D6ndRhrv3puZ4VE+1bFJ2cHLxo5jehaY UA0rlTk+8+oKPKqfQsl9i+ea7rllDmZ5oqZmUNOhH5VcXatLfr3lyHOJy7pNm5+PK5OqkRkZM+h BlQiIIjyrfAcxGnwWTh5g3NM0fpPaJk1BIB7uWWX+x+77mQ40Rh27f2rfpqU2UU/pn5RcMnMyYZ GMmPFzsDXkXl0lawk= X-Received: by 2002:a17:907:7ba1:b0:b73:870f:fa37 with SMTP id a640c23a62f3a-b76c53c0113mr1186024066b.17.1764249656825; Thu, 27 Nov 2025 05:20:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZRLMjVS3P31UKowE8cLVJSwT3V+bkmHCJ5N6QhidTUMTgSj+FjO2zyhhHDioI1+miZLEgDQ== X-Received: by 2002:a17:907:7ba1:b0:b73:870f:fa37 with SMTP id a640c23a62f3a-b76c53c0113mr1186019866b.17.1764249656301; Thu, 27 Nov 2025 05:20:56 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org, Martin Kletzander Subject: [PATCH 8/9] rust: Do not link qemuutil into Rust rlibs Date: Thu, 27 Nov 2025 14:20:35 +0100 Message-ID: <20251127132036.84384-9-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764252235789019200 Content-Type: text/plain; charset="utf-8" From: Martin Kletzander Commit de037ab8d83d removed qemuutil dependency from chardev and util rust crates. However it stayed in the _util_rs static library. The dependency is also defined as `link_with`, which is fine for C targets, where the resulting archive gets linked as another parameter on the command line when it is a static library. However, when a C library is linked into a Rust rlib, rustc remembers the dependency into the metadata and adds the library to the linker command line. Unfortunately, static libraries are sensitive to their position on the command line and rustc does not always get it right. Fortunately, simply removing it from dependencies of any rust libraries and instead adding them into the dependencies of executables and doctests fixes the behaviour. Without this patch the error I get is: FAILED: [code=3D1] rust/tests/rust-integration ... =3D note: rust-lld: error: unable to find library -l:libqemuutil.a rust-lld: error: unable to find library -l:libvhost-user-glib.a rust-lld: error: unable to find library -l:libvhost-user.a rust-lld: error: unable to find library -l:libqemuutil.a rust-lld: error: unable to find library -l:libvhost-user-glib.a rust-lld: error: unable to find library -l:libvhost-user.a rust-lld: error: unable to find library -l:libqemuutil.a rust-lld: error: unable to find library -l:libvhost-user-glib.a rust-lld: error: unable to find library -l:libvhost-user.a rust-lld: error: unable to find library -l:libqemuutil.a rust-lld: error: unable to find library -l:libvhost-user-glib.a rust-lld: error: unable to find library -l:libvhost-user.a rust-lld: error: unable to find library -l:libqemuutil.a rust-lld: error: unable to find library -l:libvhost-user-glib.a rust-lld: error: unable to find library -l:libvhost-user.a rust-lld: error: unable to find library -l:libqemuutil.a rust-lld: error: unable to find library -l:libvhost-user-glib.a rust-lld: error: unable to find library -l:libvhost-user.a collect2: error: ld returned 1 exit status Meson could work around it itself by never adding these static libraries to the rlibs (after all, Meson tracks the transitive dependencies already and knows how to add them to dependents of those rlibs); at least for now, do it in QEMU: never link C libraries into Rust rlibs, and add them to the final build products only. Signed-off-by: Martin Kletzander Signed-off-by: Paolo Bonzini --- rust/chardev/meson.build | 2 +- rust/qom/meson.build | 2 +- rust/util/meson.build | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/chardev/meson.build b/rust/chardev/meson.build index 6b681c609ad..204977ca47c 100644 --- a/rust/chardev/meson.build +++ b/rust/chardev/meson.build @@ -37,4 +37,4 @@ _chardev_rs =3D static_library( dependencies: [glib_sys_rs, common_rs, qemu_macros], ) =20 -chardev_rs =3D declare_dependency(link_with: [_chardev_rs], dependencies: = [chardev]) +chardev_rs =3D declare_dependency(link_with: [_chardev_rs], dependencies: = [chardev, qemuutil]) diff --git a/rust/qom/meson.build b/rust/qom/meson.build index 551c4f0bf5f..dda26c3f981 100644 --- a/rust/qom/meson.build +++ b/rust/qom/meson.build @@ -30,7 +30,7 @@ _qom_rs =3D static_library( dependencies: [common_rs, glib_sys_rs, qemu_macros], ) =20 -qom_rs =3D declare_dependency(link_with: [_qom_rs], dependencies: [qemu_ma= cros, qom]) +qom_rs =3D declare_dependency(link_with: [_qom_rs], dependencies: [qemu_ma= cros, qom, qemuutil]) =20 # Doctests are essentially integration tests, so they need the same depend= encies. # Note that running them requires the object files for C code, so place th= em diff --git a/rust/util/meson.build b/rust/util/meson.build index 18d67a4b374..95aa211ef0b 100644 --- a/rust/util/meson.build +++ b/rust/util/meson.build @@ -38,10 +38,10 @@ _util_rs =3D static_library( ], {'.': _util_bindings_inc_rs} ), - dependencies: [anyhow_rs, libc_rs, foreign_rs, glib_sys_rs, common_rs, q= om, qemuutil], + dependencies: [anyhow_rs, libc_rs, foreign_rs, glib_sys_rs, common_rs], ) =20 -util_rs =3D declare_dependency(link_with: [_util_rs]) +util_rs =3D declare_dependency(link_with: [_util_rs], dependencies: [qemuu= til, qom]) =20 rust.test('rust-util-tests', _util_rs, dependencies: [qemuutil, qom], --=20 2.51.1 From nobody Sat Nov 29 10:17:00 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1764254149; cv=none; d=zohomail.com; s=zohoarc; b=fvgoOhrhIkkAsd4vgKjjZE9wNoJ9EFSGwRlMCwc/XnxZPqxe9rH5slUntbvMmXJcK4LRRywRVvMxn4CG+/6ktOJvujh+Mpxhtsk8BREfNQ7NC9e4EBbwZEQuJZ3XFLf60WYHn/B0odKTvpuKIvsApOG+hb26AUHbnIzXPelH2jw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764254149; 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=v3KQ67zMHkLC6e0eL/mpugWGJ8PZCERDSAdDuM8oV1k=; b=DoC0vUULhZ6xP7w0he6DpY2ZyUSNdB3S32FNaumbvxJ/D6V4n2upEDGbXqxEifpumaFj5ATc2W+KiEM+rKYeWeH1YQfUHHJFQFbvN1Du24rYb7nvquPBciHxDpG0T+bIEvrbtRkO3i2uklWeAIGMHggp5OEVOHZjuD8Yl+nDPZI= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764254149392289.9477589208318; Thu, 27 Nov 2025 06:35:49 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vObwJ-0007kc-AG; Thu, 27 Nov 2025 08:21: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 1vObvr-0005gD-9O for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vObvl-00028q-Ap for qemu-devel@nongnu.org; Thu, 27 Nov 2025 08:21:06 -0500 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-637-st1u8evLNnyj9pZ1422k_w-1; Thu, 27 Nov 2025 08:21:02 -0500 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b764b80358bso78125766b.1 for ; Thu, 27 Nov 2025 05:21:01 -0800 (PST) Received: from [192.168.10.48] ([176.206.119.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f5162bb6sm166980166b.12.2025.11.27.05.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 05:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764249663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v3KQ67zMHkLC6e0eL/mpugWGJ8PZCERDSAdDuM8oV1k=; b=bp/UcrOp8WjanRO2BPAIWOwvsel/nGC/nt9seCtaxV58AyLcs35azSgwL22OHObf+caTbR kTDZvI2v9ry2lwRBf0A00fbwtfAo0d7qmPL8xhzWQKe1bRfWE0gQ24Oszyrhykgz6e14sp VTHJ0YBHuhxJb615Nf+AEXcn/uDnmCg= X-MC-Unique: st1u8evLNnyj9pZ1422k_w-1 X-Mimecast-MFC-AGG-ID: st1u8evLNnyj9pZ1422k_w_1764249661 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764249660; x=1764854460; 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=v3KQ67zMHkLC6e0eL/mpugWGJ8PZCERDSAdDuM8oV1k=; b=r+1pLT2bgnuz2foxYvpXbqx/LP0tAoW/djMOhxKNJD4yjJUXtyKblRRJintwagVKFA ROpSeuiMA314yng20jSYyonbDufooyXfTrYPK1bBoMXrSPeJIuyz3QvenCRf4Jc/HjJO 40J5S1rwGDKqtaeItuQg58Mjoc3a99s3B4npBNjC1dPgDWPJu9W3K0KBNYbJyAxOiV1g Nx8YeldvKh0uZgDZ1ip4cC2FW7liYnGp6fd24gXc4bkTsQ9wtU5Nh8UyndYBk3OaVUGg qN9VBiYc6qth8eJ6/V83RTFxP9GhDFvJjOo14+ymEYDtPsLF4eZKxaZHm8GgVndOw0UW GJfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764249660; x=1764854460; 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=v3KQ67zMHkLC6e0eL/mpugWGJ8PZCERDSAdDuM8oV1k=; b=WRGtQ74s1lPOOFEF/0GoAaP5D2V3VS4z7h5miyLT+y9Ag0oVeNiBUZOYXuv+YRtU4O zQwAkxlT/i8t+U87/IdLBDRoDOcdWiWGrTNT31QczIq5B5sS+OKH6/1jpJlAkh3zyXjC FKwTyiXgqAXe565MhTxO2JgPvjUMxZBXhrTmcyuFa62lBJCk+wZUeXdSoF/5mFtLj4de QyMIa1/Dc3ooRvbsgxjsh2I2zsBSgwvF71kRlocvich0uc8f6QKqPnJUgVO7v/lVK3PX LfyuBo37knHtfGWnOPxy1Ypm3Gs6du9wVI0lQ+8kwyTijSDKqn6FDXY4B7Ry7AQfyV28 SQgQ== X-Gm-Message-State: AOJu0YyUTNNppIsYvsVkMWol3YGYKLIO4WOAGlivuU5huT/+O5jUuqoi N1xfltDbePI9jJz83OJTdJsOncTgz1IyZZjLaTeTg+XCn2GAoboKH2P9PS/fXCKH17fQ4omUJQ5 pznfmG993Uu6bMcxdvme1PPky7lbyyUFEqG6ulygaRL5GbY7PYIfOKDaS97Dr8gBBVuIsccxprO lnmBM6cnJcaZJejebsVcVoFFjuIflxXPnUKrN6UTUk X-Gm-Gg: ASbGncsV4YTtgklGGHLkUvspNk88YpYISQ5iNPnphxo8YN2FLJe2GV70UNBCQeLwKGv za0JrLZgC4cSNgJJ63zzC4wbcBWFNO8SLCs5mCqF4nck8uHe+/YWcZjZePE0UHJpKPCvihk2NLF wtG5VSRH2O92XewvPv6J8O2T3k2ayRTnzK07OlIoJ/w/EgXGJlrghNnOcMmtm0MtXarDUY04xMy qXca2NQRqsCEOnFduN/TZRbfTUubwLatD8DAIinWVucmT3bw60J4h93zE7HI8+QINB6ZSdm1hTN L8PXi2TLy9yfaeGAbakBDPeZwQwyvbprg9Kvz6OiIVb1eSMOX3LdP55omZAMiCSFMH9e9X2sDBI YbCWCtdQMdDEEQL0kZ2mB8GjFhbQRy9W4bzvMo/t9F5qKUlvj5CJk7MLJMcMxsl8wVhf2Y6nxu7 xCQdYT95MhkLMTx14= X-Received: by 2002:a17:907:a08a:b0:b73:6b85:1a9a with SMTP id a640c23a62f3a-b76c53c3047mr1130346966b.21.1764249659881; Thu, 27 Nov 2025 05:20:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+dX20BcpzNt6Shwzf6B0ooNdSdSBgJcc/1t4wum4wd8ZO1guQS4/LbUufQfIfuqAidBX6hA== X-Received: by 2002:a17:907:a08a:b0:b73:6b85:1a9a with SMTP id a640c23a62f3a-b76c53c3047mr1130341366b.21.1764249659326; Thu, 27 Nov 2025 05:20:59 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-rust@nongnu.org Subject: [PATCH 9/9] rust: only link the Rust part of the code into devices Date: Thu, 27 Nov 2025 14:20:36 +0100 Message-ID: <20251127132036.84384-10-pbonzini@redhat.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251127132036.84384-1-pbonzini@redhat.com> References: <20251127132036.84384-1-pbonzini@redhat.com> 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.224, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1764254151656019200 Content-Type: text/plain; charset="utf-8" Do not include libqemuutil in the device crates for the same reason as in the previous commit. Static libraries like qemuutil are sensitive to their position on the command line and rustc does not always get it right. If rustc places the library too early on the command line, the stubs are included in the final link product, which results in duplicate symbols. Signed-off-by: Paolo Bonzini --- rust/hw/char/pl011/meson.build | 18 ++++++++++-------- rust/hw/timer/hpet/meson.build | 16 ++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/rust/hw/char/pl011/meson.build b/rust/hw/char/pl011/meson.build index 33b91f21911..9c0e8290e9a 100644 --- a/rust/hw/char/pl011/meson.build +++ b/rust/hw/char/pl011/meson.build @@ -28,20 +28,22 @@ _libpl011_rs =3D static_library( ), override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], rust_abi: 'rust', + link_with: [ + _util_rs, + _migration_rs, + _bql_rs, + _qom_rs, + _chardev_rs, + _system_rs, + _hwcore_rs, + _trace_rs + ], dependencies: [ bilge_rs, bilge_impl_rs, bits_rs, common_rs, glib_sys_rs, - util_rs, - migration_rs, - bql_rs, - qom_rs, - chardev_rs, - system_rs, - hwcore_rs, - trace_rs ], ) =20 diff --git a/rust/hw/timer/hpet/meson.build b/rust/hw/timer/hpet/meson.build index bb64b96672e..7eb758ae347 100644 --- a/rust/hw/timer/hpet/meson.build +++ b/rust/hw/timer/hpet/meson.build @@ -3,15 +3,15 @@ _libhpet_rs =3D static_library( files('src/lib.rs'), override_options: ['rust_std=3D2021', 'build.rust_std=3D2021'], rust_abi: 'rust', - dependencies: [ - common_rs, - util_rs, - migration_rs, - bql_rs, - qom_rs, - system_rs, - hwcore_rs, + link_with: [ + _util_rs, + _migration_rs, + _bql_rs, + _qom_rs, + _system_rs, + _hwcore_rs, ], + dependencies: [common_rs], ) =20 rust_devices_ss.add(when: 'CONFIG_X_HPET_RUST', if_true: [declare_dependen= cy( --=20 2.51.1