[{"id":3682934,"web_url":"http://patchwork.ozlabs.org/comment/3682934/","msgid":"<CAFEAcA_7LT-gpArvYpabe9UiFPDGDMEsGOTMeivw90SVDjabeg@mail.gmail.com>","list_archive_url":null,"date":"2026-04-27T20:06:55","subject":"Re: [PATCH 41/41] qtest: add \"qom-tests\" command","submitter":{"id":5111,"url":"http://patchwork.ozlabs.org/api/people/5111/","name":"Peter Maydell","email":"peter.maydell@linaro.org"},"content":"On Mon, 27 Apr 2026 at 20:50, Marc-André Lureau\n<marcandre.lureau@redhat.com> wrote:\n>\n> Add a new \"qom-tests\" to exercise basic object lifecycle. Instantiate\n> all non-abstract objects, get and set properties and unref.\n>\n> This should quickly find leaks and other related issues that are\n> eventually triggerable at run-time with QMP qom commands.\n\nCan we have a comment please that says what you think the\nbasic object lifecycle is?\n\nAlso, the qom-test already has coverage of \"init the object,\nintrospect its properties, unref it\" -- how does this differ?\nDoes it duplicate parts of it? (qom-test is already a very\nslow test so we don't want to duplicate work if we can avoid it.)\n\n-- PMM","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=qPbUaJgz;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4F3w0qzfz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 06:07:56 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wHSF8-0005hp-UC; Mon, 27 Apr 2026 16:07:47 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wHSEZ-0005Vr-Ff\n for qemu-devel@nongnu.org; Mon, 27 Apr 2026 16:07:13 -0400","from mail-yx1-xb12e.google.com ([2607:f8b0:4864:20::b12e])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wHSEX-00059R-DC\n for qemu-devel@nongnu.org; Mon, 27 Apr 2026 16:07:11 -0400","by mail-yx1-xb12e.google.com with SMTP id\n 956f58d0204a3-651cfaa21e6so9259800d50.0\n for <qemu-devel@nongnu.org>; Mon, 27 Apr 2026 13:07:08 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; t=1777320428; cv=none;\n d=google.com; s=arc-20240605;\n b=YyEvOGUMEuTbzoRLFtom1TrV9v3btrJMDzlDvW4ZpRwM0AdJJ6OlZxzNx3ep2Y/0hg\n iBHOwi/FAgXeQden1fdP0RShvd6m5TyxmXEAzAytS7e7h7nH/F8KEnPXrjRLnzlPa1eA\n QXbTPdJW9S3LkEfdB3EgX3IBaIlMSjwJBLB1TOBFB28FUTasf6cU5H4T3UkCy6Vk6CG6\n BzuMiyy+bD4oUIZObWAoLFpa+SxF89sS46IjGzoyzJeTOFiWYhwQVF9RfdSoyyFF0qdj\n Zcqv/pYt5PebJOvjD5GJPnt3HSjms0UI0vxdAx+nJbOet0kmhnS+HPR/bps5p7XsZqoq\n v8zA==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:dkim-signature;\n bh=xn/TBp/Nx6/YQ4VrEjz2EiO9GEMY9btDVQDgIILDIIs=;\n fh=1Xd7Wzgni5O6OiQrUAllr3/n2A2vZ24jpGmDtX3IXEk=;\n b=GptLggTWRHtMaJM3lR1ANkWVNmrQhJ082hY9aHwqlMRCqTg98z6AdbFRGvnSicWgjb\n nDJtDds/3BtUkY9eskBW2ROwaU4ZqTn9cZN/6WtdhvXDe6bP898Za3gbPwW/vGX/bVRe\n TXPPid2KtpAtp2/KnvEGTracalhM/26Q/VWR2nRG0Z0HRlwX8OqkjSZ+YKH3ph6kUuOU\n p25S3C8K52thaCiMRgqCd1EheL7dTVvv3sp2kQH0lEbim5WC8GNY16qRd+aIAj9Fd7md\n WH9OuIBMTnU0xoL2zSMpYyXVC4+TW4jiz8Ab8ZO2oM+u24CsTVVFw4ITxD559WoHU5Xj\n X4FQ==; darn=nongnu.org","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1777320428; x=1777925228; darn=nongnu.org;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:from:to:cc:subject:date\n :message-id:reply-to;\n bh=xn/TBp/Nx6/YQ4VrEjz2EiO9GEMY9btDVQDgIILDIIs=;\n b=qPbUaJgzWMn6queBydNKAKhrlzcZsMaT9Y/Z6bXAyNxvy6UiaQXyedDVnt0cw5yTu6\n 0taD0BrfVOLBxPSGvltbrLtQWfJnGibKzNVVjSZOPrbb1epV/L/XiAbJcyC64lP94MQ6\n xsu8+7Q390/iI7ubZi0nALw200JUvNCNlj0idatNCnSRar0wRps44klxP2MsMkKjghRI\n 9EZJNjh3jBG2BCw86X9Thp/uNv3mNdgVeRRNZHCtfIaC86jHDxSk0MLMiXT8HrhP1c7Y\n 0RslL6ngc0Xed/xAjP6JMb/GJjYcW4umjXEvuFxX4dLtm3PDS/6p/I1aXKjJkoGdsZWN\n 8Tag==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777320428; x=1777925228;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=xn/TBp/Nx6/YQ4VrEjz2EiO9GEMY9btDVQDgIILDIIs=;\n b=cQUwimklbG7s+6bJEZDqElqZ+r8GiVSwsWwjzmuhguiyBJtDEa+2HhfUMk/v6Pdm4V\n EyQO++8Bu8Evpick3M4LIRITwSXtUyYZt/VaLOPW1GabBUoknzmCx334XNbfQ7OpazA9\n LLL7CF52dXrteUAwk5wS2brdEDDaNvMsC2szmQHicmiC6cD0R7Q/tKnR6Zii+eNL3PJC\n Hmlu1sHlGGh8QQ9KatGc/+uqUj2wNd82yEwvx33tqzqS1rgtJ2w3fYFUEo0C75nJTaOr\n Je/zzrpFvBlGYJUMeScxG3tn6HDRSDkHNLo5+VNnnfMEn6WtJfRTQG6721BLjXZLV+Wg\n zREg==","X-Gm-Message-State":"AOJu0YysAJNNQeyzMzuASz41+J+GDSUUivOlWose4O7RhvQq9uoBdUB5\n epN7h+v+OJljXnXW/ePb6a6Th8x0U+0kzW8np0097AcBG1/PVq8rOcYbNJFth6UjKVfJyEzKQiM\n WkD41eRVH6wajQmsaggffwRytiiKEsnw5p2iJiuPpNhH1z/1PauPa","X-Gm-Gg":"AeBDievScEuhgRpRQEOv1dCAu18cYHqgDQGHRiuvcFpZjhdIqQNwAuq4kC3EZgIp9cV\n q0yE3MgVN5PU3praiZqMgyyZ465GI63+t9aNUXAFKzLPCJ9n7s4YUZ+qA4UBwzxb1/Z86tg4wRB\n iNcdFAcUduK3VeXXGSwYks6nYN5yCoq69Fcu3dX49ejx8flGgFcljuY6NjV8Ws3feqqC825p/wB\n dChFjapFRJV3xe4nktdn9ILA7oHYK1X32H6Q0tFvqt6EVaDyPAHBiec2hJjuFS48KV2do6Sku+K\n ZP2qZ0Kfr0z32yWW2Sjit/wKNB00hwYsE0aUHP4X92UHSjRzmUS3aYI+OeGFMo8HUwhIxlKjauC\n TqqaG7bUeEbTy","X-Received":"by 2002:a05:690e:4149:b0:654:fd9:2e88 with SMTP id\n 956f58d0204a3-65bee827fdemr105862d50.31.1777320428223; Mon, 27 Apr 2026\n 13:07:08 -0700 (PDT)","MIME-Version":"1.0","References":"<20260427-qom-tests-v1-0-c413f3605311@redhat.com>\n <20260427-qom-tests-v1-41-c413f3605311@redhat.com>","In-Reply-To":"<20260427-qom-tests-v1-41-c413f3605311@redhat.com>","From":"Peter Maydell <peter.maydell@linaro.org>","Date":"Mon, 27 Apr 2026 21:06:55 +0100","X-Gm-Features":"AVHnY4LCWLL58TeycfO7g1mW80IJnQkVTMeSNMy2Mx9VI966I-9ViZbIV21LtOg","Message-ID":"\n <CAFEAcA_7LT-gpArvYpabe9UiFPDGDMEsGOTMeivw90SVDjabeg@mail.gmail.com>","Subject":"Re: [PATCH 41/41] qtest: add \"qom-tests\" command","To":"=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>","Cc":"qemu-devel@nongnu.org, armbru@redhat.com, Fabiano Rosas <farosas@suse.de>,\n  Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n\t=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","Received-SPF":"pass client-ip=2607:f8b0:4864:20::b12e;\n envelope-from=peter.maydell@linaro.org; helo=mail-yx1-xb12e.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"}},{"id":3683146,"web_url":"http://patchwork.ozlabs.org/comment/3683146/","msgid":"<CAJ+F1CJ1u16q+KBqsO3ofYTVERSvLC-w2MhA_oUF_tvd-mPZWQ@mail.gmail.com>","list_archive_url":null,"date":"2026-04-28T06:37:39","subject":"Re: [PATCH 41/41] qtest: add \"qom-tests\" command","submitter":{"id":66774,"url":"http://patchwork.ozlabs.org/api/people/66774/","name":"Marc-André Lureau","email":"marcandre.lureau@redhat.com"},"content":"Hi Peter\n\nOn Tue, Apr 28, 2026 at 12:08 AM Peter Maydell <peter.maydell@linaro.org> wrote:\n>\n> On Mon, 27 Apr 2026 at 20:50, Marc-André Lureau\n> <marcandre.lureau@redhat.com> wrote:\n> >\n> > Add a new \"qom-tests\" to exercise basic object lifecycle. Instantiate\n> > all non-abstract objects, get and set properties and unref.\n> >\n> > This should quickly find leaks and other related issues that are\n> > eventually triggerable at run-time with QMP qom commands.\n>\n> Can we have a comment please that says what you think the\n> basic object lifecycle is?\n\nHmm, what is not clear about the comment above and its list?\n\n> Also, the qom-test already has coverage of \"init the object,\n> introspect its properties, unref it\" -- how does this differ?\n\nIt does introspect on already living and reachable objects, over QMP.\nIt doesn't instantiate, set, or unref.\n\n> Does it duplicate parts of it? (qom-test is already a very\n> slow test so we don't want to duplicate work if we can avoid it.)\n\nI wouldn't say they overlap much. I wrote it as a qtest command to\nmake the test relatively fast (~100ms per target), and easy to invoke\non CLI (-qtest stdio <<< qom-tests). Its purpose is not to exercise\nQMP. I agree though that adding a 1-2 seconds to CI is costly. We may\nrun it under g_test_thorough().","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=UY5imZSL;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4W3s0ZYWz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:38:47 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wHc4z-0002Rf-PT; Tue, 28 Apr 2026 02:37:57 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <marcandre.lureau@gmail.com>)\n id 1wHc4x-0002RT-Qk\n for qemu-devel@nongnu.org; Tue, 28 Apr 2026 02:37:56 -0400","from mail-dy1-x1329.google.com ([2607:f8b0:4864:20::1329])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <marcandre.lureau@gmail.com>)\n id 1wHc4w-0008Rx-F9\n for qemu-devel@nongnu.org; Tue, 28 Apr 2026 02:37:55 -0400","by mail-dy1-x1329.google.com with SMTP id\n 5a478bee46e88-2c156c4a9efso15143339eec.1\n for <qemu-devel@nongnu.org>; Mon, 27 Apr 2026 23:37:53 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; t=1777358272; cv=none;\n d=google.com; s=arc-20240605;\n b=db0CoBbxP1I8Q0AgHKitFDKu61wTr8eoh0H/qPLRhEm8JXK5cpOt76hgubut5F7YGK\n OLGrfEtKeF4lCDGb/aQw3DH1gUWE8C3dfRG+ZSJACon/gr14jjRvdrZmohbga6fB13rD\n Ka+gJClmQtckrHnQzRSGz/GkQcbm9nd2graEA+7Z12n0IGlbTOLkvIVooRMbz3MoCzhJ\n mgBpz7VSU1aKwwyRA/nnmtnZo2ketIbv/QmPYeFRLs4exiP0eUSsE4p7yEiBZPe2U9ML\n m2BdFRIfpoACW0QzuCMo2Peoqnj4INLsGh/j8BfBjJLNzNryFNy+86ZDtnb5JFwP11zy\n PBrQ==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:dkim-signature;\n bh=DwnNYWToZtZo3CnfRFPbncCR570CNeme7m91QKrNCsU=;\n fh=s2Dydi+Wu7zyQaN6Y8WUD3LgD/NbTcHsN51+8tC3Wu0=;\n b=FPpg2LPVq1wG62sue8v+8Kr+d+bKsyiMTnbWwPRwhf0O55p+89eyvsGDFJ60qT4yFH\n OGzjP0cZNm/UAycN1dT0HMNRCJU9j4Nl+n1IcrScoCQVX9rsU0cl+2C0YKUpZurYqmx1\n UtBqUcOsNzQlbre8RmaEI0iWKiA6hbRsIiQLw+XDheocJ1J8whilu7eoNKGXiUzgp3XU\n l4nno6w6g7qKoR6cRyJSJjmpA9cCkYMeE+llm1Gj0502lkSA979zMzBm2KHRYcYTowwe\n Xk31N1Wpfhasjqxqr4KXU5Y4v+E1mhOmBNYoBPZnO5eBFMBODLxugXzVuqh2HdCH80GZ\n 959g==; darn=nongnu.org","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1777358272; x=1777963072; darn=nongnu.org;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:from:to:cc:subject:date\n :message-id:reply-to;\n bh=DwnNYWToZtZo3CnfRFPbncCR570CNeme7m91QKrNCsU=;\n b=UY5imZSL+QJRK3XHJ7hEnhP44uczfFKCYbObUqbGQFpXr/+i/jsiS/LoMzJnmZLsiY\n APOyzUeMVsFFZh5LqUlqu2Y6m63imnWEpT0Jz2OhdRNwgxQhduLWIGRH3lG7ZafJeYx+\n Kp+a1ybTDGk5cM+Ef5oOypYuewdkoN0lllKthrTmmg3+Jd+fYhHPU/x5NUXHtutC6NF6\n fStK5KhrWrV0mgjEgXlk5ys/vbCfzJoC04yz8aS8/qsSfPSTJ0gx48WzolGSL2mUWSGR\n dcXATMTC0h40KrzpjIxtHw2KqQ/fRt+IkDw6P6ADu84GZCmJ3qSVjMQL/8oU5t5/BeXA\n jESA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777358272; x=1777963072;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=DwnNYWToZtZo3CnfRFPbncCR570CNeme7m91QKrNCsU=;\n b=Ekpxx4YC+XdgURjYwwbrURJwSCgFy4IDIM0uANTdHWJQXlYRA7XLTPHTSpaLxo5+dH\n iF+hrOAD5H5T+T74a/6xfGsBNomGKU8yKOXJSXzXFFGQw9EDzn3bcLMGV9V75jgaw3Os\n dLHd0LWRw8wMV0515QwOoTTP5aH58kfE/Qpd/IRG32OO0eHNFMBcs0Lx3wbXGwiYtfjR\n QuH9Lnq7Xget+Y82VYklTV3VIzDkrjVC5cVP4GfqenMMvo4T+3zVWKg8Ctea0D4Tk6c0\n xwTLgeJqn0WP6w7qy12+OV6cVJUg2Z1OxI2SWEAgm0Rg8KDG37WHQawYxk3qOMEv6fAU\n I++w==","X-Gm-Message-State":"AOJu0YzqD7RUZq091J8si7WKpGQnxlllGn3l4CrwLAXE446bWyoOXM0L\n XiFIx12nVyjZs7u08FLUZkMOo6r7KKnwZJWjci1C5v4EXcxpKcdRJxxoIO02KesaqgtvttsYF0+\n su6lBYHs4feSSNizXnXsvSoZZcrbeEvM=","X-Gm-Gg":"AeBDiesS+R40HPdT14Y2P9Yqt4ZFHuFQj5OjJdHJ3WjNyMYQaYd63wb3EYU/8NPAvPS\n +zDpW87337b0glLDAWGGFjdP6sdXUh3rHuQxBJx+tPRWgDh3Ab/SGFI7T4Y3z4GcYdrew2o3cxH\n A9CVxf1COEGfSme+8GKpl2QVhpRTAPLc14DG2JwiCavpVUFDz0Z+gR2XZWWAp0JGZJ2YfHVU6ma\n G/TTkhZtGkI8A7Ly+ZpMiL7Zn9Bv9HvfXJdj1Ee1F190052/BdA8W+DGtgrFl6vecEx+va3ngFX\n uIS1Jek0+uV4qhCsFwQIL6fEgXhOnbXemH3mMnsrFTSMcy5XSEs=","X-Received":"by 2002:a05:693c:37c8:b0:2ed:e14:e954 with SMTP id\n 5a478bee46e88-2ed0e14ea48mr408025eec.30.1777358272017; Mon, 27 Apr 2026\n 23:37:52 -0700 (PDT)","MIME-Version":"1.0","References":"<20260427-qom-tests-v1-0-c413f3605311@redhat.com>\n <20260427-qom-tests-v1-41-c413f3605311@redhat.com>\n <CAFEAcA_7LT-gpArvYpabe9UiFPDGDMEsGOTMeivw90SVDjabeg@mail.gmail.com>","In-Reply-To":"\n <CAFEAcA_7LT-gpArvYpabe9UiFPDGDMEsGOTMeivw90SVDjabeg@mail.gmail.com>","From":"=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>","Date":"Tue, 28 Apr 2026 10:37:39 +0400","X-Gm-Features":"AVHnY4KtHkkKhqGGlbiImDkCZp65HO3_QH_LyvmTsE4f-uGytyjE2xsjDe5YpzI","Message-ID":"\n <CAJ+F1CJ1u16q+KBqsO3ofYTVERSvLC-w2MhA_oUF_tvd-mPZWQ@mail.gmail.com>","Subject":"Re: [PATCH 41/41] qtest: add \"qom-tests\" command","To":"Peter Maydell <peter.maydell@linaro.org>","Cc":"qemu-devel@nongnu.org, armbru@redhat.com, Fabiano Rosas <farosas@suse.de>,\n  Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n\t=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","Received-SPF":"pass client-ip=2607:f8b0:4864:20::1329;\n envelope-from=marcandre.lureau@gmail.com; helo=mail-dy1-x1329.google.com","X-Spam_score_int":"-16","X-Spam_score":"-1.7","X-Spam_bar":"-","X-Spam_report":"(-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,\n FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=no autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"}},{"id":3683208,"web_url":"http://patchwork.ozlabs.org/comment/3683208/","msgid":"<CAFEAcA-mkx-pymWq7nUOsNEBPr__RJZAV-h2YXSe=+_aGUZy8Q@mail.gmail.com>","list_archive_url":null,"date":"2026-04-28T07:48:50","subject":"Re: [PATCH 41/41] qtest: add \"qom-tests\" command","submitter":{"id":5111,"url":"http://patchwork.ozlabs.org/api/people/5111/","name":"Peter Maydell","email":"peter.maydell@linaro.org"},"content":"On Tue, 28 Apr 2026 at 07:37, Marc-André Lureau\n<marcandre.lureau@redhat.com> wrote:\n>\n> Hi Peter\n>\n> On Tue, Apr 28, 2026 at 12:08 AM Peter Maydell <peter.maydell@linaro.org> wrote:\n> >\n> > On Mon, 27 Apr 2026 at 20:50, Marc-André Lureau\n> > <marcandre.lureau@redhat.com> wrote:\n> > >\n> > > Add a new \"qom-tests\" to exercise basic object lifecycle. Instantiate\n> > > all non-abstract objects, get and set properties and unref.\n> > >\n> > > This should quickly find leaks and other related issues that are\n> > > eventually triggerable at run-time with QMP qom commands.\n> >\n> > Can we have a comment please that says what you think the\n> > basic object lifecycle is?\n>\n> Hmm, what is not clear about the comment above and its list?\n\nIt's quite brief and it's not in the actual source file.\nMore generally, there is a lifecycle for the basic QOM types,\nand a more complicated one for QOM types that happen to be\nqdev devices, some of which we are testing already. I think\nwe are not very good with documentation of what we expect\nfrom QOM objects lifecycle-wise, so I think it's helpful to\nbe more explicit and detailed rather than less.\n\n> > Also, the qom-test already has coverage of \"init the object,\n> > introspect its properties, unref it\" -- how does this differ?\n>\n> It does introspect on already living and reachable objects, over QMP.\n> It doesn't instantiate, set, or unref.\n\nAh, sorry; I was getting this confused with device-introspect-test,\nwhich uses QMP and does a 'qom-list-types' to get all the\nQOM types QEMU knows about, and then does a 'device-list-properties',\nwhich implicitly will create the object with instance_init and then\nfinalize it afterwards.\n\nthanks\n-- PMM","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=ogPYf5aa;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4XdP1dbrz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 17:49:29 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wHdBs-0007b7-5l; Tue, 28 Apr 2026 03:49:08 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wHdBo-0007aL-Tv\n for qemu-devel@nongnu.org; Tue, 28 Apr 2026 03:49:04 -0400","from mail-yx1-xb136.google.com ([2607:f8b0:4864:20::b136])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wHdBn-00080s-2S\n for qemu-devel@nongnu.org; Tue, 28 Apr 2026 03:49:04 -0400","by mail-yx1-xb136.google.com with SMTP id\n 956f58d0204a3-6501725d888so8991614d50.0\n for <qemu-devel@nongnu.org>; Tue, 28 Apr 2026 00:49:02 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; t=1777362542; cv=none;\n d=google.com; s=arc-20240605;\n b=BbcR8zSM93Arm2RdxNXkWa+9NzONTGdboB/uIJ7b2CjhVS8JsHZpTxs9WXCDxXCEw7\n Zx13Ej4k21Y9v+BnNTv9BrY1aZYzalPUUKJi7AGoysdTuCbOhurxOriNJ0gMjyFmpAc5\n q/4GZk69wgOcMXNOBzlLmdwOF2SpCpuuOrFncflxCDUOCiEsH2ECWrDBQrw1tq349gfu\n X+420QcVNPdOasMkjD4W5Ry62dA4v6boT27nYyetHcc4B8A36gT8wGqSJFa+WvAFVabP\n K67Hz8MHg0srMd7eALvb1djSN8DmYZ5EwunlcyM2BZd1b0T0W5VcaIFAakm//SifGPwx\n eTfw==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:dkim-signature;\n bh=sD+CQsBvunLSQ8PKk34tXwXQ0myL91q/9Qi4cA3HYMU=;\n fh=1Xd7Wzgni5O6OiQrUAllr3/n2A2vZ24jpGmDtX3IXEk=;\n b=AE22V+CQ6IX+sgvxsJP27VV8K69QTccxdBT/66VlJLRZOqPVMXNlzkdfMlMx6rbqTN\n MpHUBu2fQbhQPtyLYE1DJ5kVw2UzDBY+6GdIAk1rH0iDpK+1xdy3yp9Qb4BW/9xuRQ5x\n uFBRKNyg4SNY6wYEvug1Uw2DMMbe44Vf24G2d3o3DIfvhEHjRj+Y3l7a6Y4gxoa6GJ+O\n rhQhobHz4QZPu+wWuJOn1ZVdNakMNaLE5YYATSv1yZ+8ajc7rXsH6PqVVs3jvCB+AbaL\n JA9GJstW8HrOs/PDr1mLhCGT15JgvoIaU0I60f39nXtM9+0GXUXlFf3KTDNH6BlNo/oI\n Z6uA==; darn=nongnu.org","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1777362542; x=1777967342; darn=nongnu.org;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:from:to:cc:subject:date\n :message-id:reply-to;\n bh=sD+CQsBvunLSQ8PKk34tXwXQ0myL91q/9Qi4cA3HYMU=;\n b=ogPYf5aaBJU4BUHLlzFk9ghT9WFeWDwObk5+GHl2ewR7veUO2defVtCsJjpGmkKIDn\n T55JEJRUo+lYl0vb+hmxqN6+sGBqCCRiMM03Op5c8kDWcvQc84FbkpTxnp46CENtwID1\n oIg/PNLo1+YbGACvULHcDuzdMhTI2HpDcpWf9Btjz87OLr65wLAo18Fkqp1ausssagEh\n nBC6rTY7rADhYy9qTpWZfGY/nzjmQx1Y1Msx6YkRLX28W0MWOVMRbqIBFbCOwYWjiF2a\n lcuBCvoTlQ4rlALEl1MifLQ6uy8K/Mf0//TwF2pHMPkFSbk4XGyliz/XuEnAFnv7Cv9L\n tzlQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777362542; x=1777967342;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=sD+CQsBvunLSQ8PKk34tXwXQ0myL91q/9Qi4cA3HYMU=;\n b=cK7QQ1V4/kMn+tP6OfFG4nLAbqOd8j0wCvgsm0XU1iLAjOUqIxR0Dc2X19XPA3Ia9Y\n nMMeXvhCyWdwk9tO6XkU7GXdpp3Oxw6X4w+MSpxgaNcWskxIqXjrfda8ZkKwyUryCguo\n JAXxFv73fnXIB6C773j0nqMzHIoQsUp5r5ICEAnYO1mHl5jP/dy+nRVttEo6gEGhxqE7\n boRhz5U15WJFVs/HAbcVOKXFolQjXd0ni+Gell4PPGlAyppfjJ9xYb+r2f9BpZA9tyAq\n cr7EnFt+AqxGfSLMkiwvGCmRPP66ZAZNYcznXQndjmz/pWQhP4emGIqNwQrD+A3HwaFP\n X7fw==","X-Gm-Message-State":"AOJu0Yx6hr/TArjlXCqXU9MyivA6d+KMMEhUjpJZ7XZwyKvjk+MZ7HEk\n nqPkmnyC1qWsf4MFbl2uwiRoCt3eBRK5beQ2S+YPHqF/+qnEaUqlBPabvVPL4FCZt9Dauu7AYuH\n wY2S0N6pBCuiD3G/vxcy5j3kVz4SvgJiqmBb4/F0e1w==","X-Gm-Gg":"AeBDieukFxCtstQJ4ex6mYEgQuL29gF3VghXaMHfl1O/+VeFM/Fo+CgqoRwsbd8HsTC\n /KTfC8AK/8EbGkAppVoD7ahJlmOXDkrIbO1J5eVQGPHqtquy0TnKsgQA3Uq1TT6K72hQrWVKuwx\n XFrF2gzmkZ4TAnKZUdZXZlPMBfyLdRLpS/Rn6h/Sct64e1ldk46GaARlOnl2jcXZxv0W/9uXupE\n g4XELjMBtBEbmcJ9siIcZkQj4oAT6J4SzVaYlUvjJ4bmiA7kPWYRDCAHNau0LAomQ7PsYPG/+8x\n vrryyXacMlkCgsKAQA/Djf9LQP1unMd1vkKdjmonW64k69kA6kn7uy3dlhNehSHkwdFg9Vr2XWs\n PtQ==","X-Received":"by 2002:a05:690e:4388:b0:651:cc5e:b8d7 with SMTP id\n 956f58d0204a3-65beed7c474mr1184929d50.22.1777362541744; Tue, 28 Apr 2026\n 00:49:01 -0700 (PDT)","MIME-Version":"1.0","References":"<20260427-qom-tests-v1-0-c413f3605311@redhat.com>\n <20260427-qom-tests-v1-41-c413f3605311@redhat.com>\n <CAFEAcA_7LT-gpArvYpabe9UiFPDGDMEsGOTMeivw90SVDjabeg@mail.gmail.com>\n <CAJ+F1CJ1u16q+KBqsO3ofYTVERSvLC-w2MhA_oUF_tvd-mPZWQ@mail.gmail.com>","In-Reply-To":"\n <CAJ+F1CJ1u16q+KBqsO3ofYTVERSvLC-w2MhA_oUF_tvd-mPZWQ@mail.gmail.com>","From":"Peter Maydell <peter.maydell@linaro.org>","Date":"Tue, 28 Apr 2026 08:48:50 +0100","X-Gm-Features":"AVHnY4LvJiWccyq5d0OGsdVumABKk42v_LpOoFO2S8aI4CaZNnh6i5EoUE0oAKQ","Message-ID":"\n <CAFEAcA-mkx-pymWq7nUOsNEBPr__RJZAV-h2YXSe=+_aGUZy8Q@mail.gmail.com>","Subject":"Re: [PATCH 41/41] qtest: add \"qom-tests\" command","To":"=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>","Cc":"qemu-devel@nongnu.org, armbru@redhat.com, Fabiano Rosas <farosas@suse.de>,\n  Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n\t=?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","Received-SPF":"pass client-ip=2607:f8b0:4864:20::b136;\n envelope-from=peter.maydell@linaro.org; helo=mail-yx1-xb136.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"}}]