Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 397B5EA8541 for ; Sun, 8 Mar 2026 20:36:12 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vzKqY-0007D1-4a; Sun, 08 Mar 2026 16:35:30 -0400 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 1vzKqW-0007Bw-DI for qemu-arm@nongnu.org; Sun, 08 Mar 2026 16:35:28 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450: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 1vzKqU-00043y-Qo for qemu-arm@nongnu.org; Sun, 08 Mar 2026 16:35:28 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-439c5b40f60so4041683f8f.0 for ; Sun, 08 Mar 2026 13:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773002125; x=1773606925; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/7XgWxKgyE/WQ+XgF0P4RAkLFP5Q5Xqwf/wEtAP3zBA=; b=kF35cJxV/TLy7HaEamErFteAPcAPsTqaqzS75dcgsoF8HTkIws1mqlY5xaYIaaHFGO 8a5xC9weOxqca8uHB9x/nZgAD4eQIn9N/Jes4X4MedMVWLxM6M24ziHEHqHwGzSB7KJj Mk2uobvOCeY94ATo3K/TDIQ9qGhRuOiLGswN9QS+lnfJwqhL9oVKwk5Fm2FzoVU8rmEy n/Q/aGzlQPRhrpbuUiGQ3wFi+cPuM579j1EHzQWhDTmc09wd1VSRwlX66OcrcAhqG9Hn uyVUXp6f/qKODC2R1ssM1sPsYJJDxqrf7f8UzWpKi18NBru7qnFiYghdTI6g91rIpXfi uYCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773002125; x=1773606925; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/7XgWxKgyE/WQ+XgF0P4RAkLFP5Q5Xqwf/wEtAP3zBA=; b=A9Lw4NIjna+JvgcksSvcZddi2nq7W1PG6a5VJQ1Tqm2uH7MPyw3BQZ4QnzUfEdmCyS scyZw8dO9mzJqmze+4GhKCdS1i1agX+/Pcrc7PyutnP1WVZW8gQTW3o+ojmHRFcKN5pI U3yBzoLr4Z6iQwdOTA6XdIKjIgVHJnygzAKRbEO98HblK/llPqoCHj0U3sJPwo57o/eu L/8XT64iuM0lfEoS8SJj55qUk00SJJ6AD/NLq90te/E7XyPjma6goQBrs0kXusnOtlVY 7DSOVeXBC1T1EhXwkjpGXQLovqEv4RT4qlIBs1PpitH8FnUcx2UYka4EbNw7FsvZ2vdk K6RQ== X-Forwarded-Encrypted: i=1; AJvYcCXXmupB+IbAHGWscpMU7KUY2XpjJF4fCQCSrUrsRO0B5jtEyiPLdby8G/RVS4OURXPKGq8qt2jCxw==@nongnu.org X-Gm-Message-State: AOJu0Yyv0mqAvuB9CGM4Iw8yMXs7A8nu1pHRpm3ZsSIVIu2A1tB9AYzS GxQToK4LXvz07eFkczNXHANXX6ICivlE7nc4omdHDWFuXCZ49/fDOx1+ X-Gm-Gg: ATEYQzzWJ7hY4YNqvgF5wbNaqks8/IE6HR5oZxUN9XMhVe9hkfcHC/Q+bVk69+Lvfoj GmjoRKMpdH+xj470ERLSRc3CeLHmpsz0NQVTRxTpda75UfSG0lu2UwQcACN76lLu+orNDqgg4Cu Vsbf2bK8HB2lt7xdnc+53Qwov5W6m42rCR0m/HGa29YVMS+lyhfutw1AON77Hcyt4KztK0NTARq O1WhE8wqI0OSyFQb+lknya1y5q2GykDpQmCASgG6cBfyuJvYdq6ngNBa29MtNc2FNqo6ZXgxqi2 VBD2KgVZjBXjAfIN+7AibYH7xAW6m+PoaaSL5boW968G5BpzJlmjEgJ2xwtTMIVub7di58l3kp0 6svK3hbjEVPul0dZNToVxlKX4WbqGqvcas4pTfIMeUcmDrBq/UVlojGZQaefhuUjvVj2Q+Cqvtm yYkM+MLmdG+sAOZjrg0swVtccNppmJGt4gU3Pcu+bw8qIQoYHPHyxA0f75IZMna3d1vja5kTJiY 1ERof73npCdVWN1pf3qHkI0Ov+XLBo= X-Received: by 2002:a05:6000:603:b0:439:b59e:5e69 with SMTP id ffacd0b85a97d-439da348049mr15177586f8f.8.1773002124992; Sun, 08 Mar 2026 13:35:24 -0700 (PDT) Received: from Provence (dynamic-2a02-3100-25c6-8f00-0219-99ff-feb2-2458.310.pool.telefonica.de. [2a02:3100:25c6:8f00:219:99ff:feb2:2458]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439dae2bdf8sm20995508f8f.25.2026.03.08.13.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2026 13:35:24 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Paolo Bonzini , Laurent Vivier , qemu-trivial@nongnu.org, qemu-arm@nongnu.org, Michael Tokarev , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Peter Maydell , Bernhard Beschow Subject: [PATCH 0/5] Trivial cleanup Date: Sun, 8 Mar 2026 21:35:11 +0100 Message-ID: <20260308203516.160103-1-shentey@gmail.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=shentey@gmail.com; helo=mail-wr1-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, FREEMAIL_FROM=0.001, 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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org This series contains some low-hanging fruit fixes I came up with when investigating Rust for QEMU, especially QOM object lifecycle vs. the Drop trait. I noticed that no finalize methods were called in Rust sysbus devices when QEMU quits, and neither are its C variants. What is probably missing in the first place is a object_unref(object_get_root()); at the end of qemu_cleanup() in runstate.c (see TODO there). Adding it before this series won't clean up machines since their refcount won't reach zero. With this series applied this additional line will cause various issues when quitting QEMU, allowing the problem to be investigated. Fixing it is beyond the scope of this series (and my time budget). Testing done: * `make check` * Run imx8mp-evk with a Buildroot image Bernhard Beschow (5): hw/arm/fsl-imx8mp: Do not create redundant unimplemented devices hw/arm/fsl-imx8mp: Fix parent of ocram memory region hw/arm/imx8mp-evk: Fix reference count of SoC object system/vl: Fix reference count of machine object Revert "sysbus: add irq_routing_notifier" include/hw/core/sysbus.h | 1 - hw/arm/fsl-imx8mp.c | 3 ++- hw/arm/imx8mp-evk.c | 4 ++-- hw/core/sysbus.c | 6 ------ system/vl.c | 1 + 5 files changed, 5 insertions(+), 10 deletions(-) -- 2.53.0