From nobody Mon Nov 23 04:26:16 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1793774832; cv=none; d=zohomail.com; s=zohoarc; b=YID3E2nNl2m3bo3mPTrLCbRFskOa7KP3cQCC4d4mixKhUeunKvkOrWAKcF9JoCQm8IpqieI9qDscy1K1qbOaMg2QsL0Vo3mDDLQBWuqv6m0KWTetMiJP5wvRozXIF48kDMDxtEgfnvnZ4bwq9dfL2f1xiPpHj8OQDB4zidqhHYA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793774832; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5Mc5VDIjxrmplu6Jhgf5ogUBJ3laiXgvvDVdd809NQA=; b=YStZswp+BDiPXDvpdQHwbGnsxX5fd+GjfVy2XduV2kz3kJ0M3Hlthn+ewPeGaGK7q8ikTODR2O+8BC98JzKIBH7v8suDsC0csdE8OOFgKWuu2nstbcfwTsySIFd1hS+noxZYjtaXeNUk6N1thFXczuklaMQf0fcKOk4pn91Xo4c= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793774832327146.00053021963413; Tue, 3 Nov 2026 22:47:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xOUlP-0006r6-8H; Wed, 04 Nov 2026 01:46:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xOUl3-0006lR-BW for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:05 -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 1xOUl0-0002cu-OR for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:05 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-627-ZOoneaXuPV2McjRT6sqtYw-1; Wed, 04 Nov 2026 01:45:56 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C477E195608A; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.44.22.2]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2D9F118004D2; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id B444D21E692D; Wed, 04 Nov 2026 07:45:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793774759; 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=5Mc5VDIjxrmplu6Jhgf5ogUBJ3laiXgvvDVdd809NQA=; b=OAsVi0JF3CNTjExygprmJ8FRJA6fj4x6b5L447oXS0kW0jRmNa31avAKrI3x6n5ewn9a4m gKMZierIvzd0tA91O1L2NrOu2Mawdk5S4mji+RgtTSEVDI2YJ+QtYbtzj1oxSWC51bpg1R vtHdOJ1GJNHtgb5SHTEFpvlDABIk8Lk= X-MC-Unique: ZOoneaXuPV2McjRT6sqtYw-1 X-Mimecast-MFC-AGG-ID: ZOoneaXuPV2McjRT6sqtYw_1793774755 From: Markus Armbruster To: qemu-devel@nongnu.org Cc: marcandre.lureau@redhat.com, pbonzini@redhat.com, berrange@redhat.com, milesg@linux.ibm.com, qemu-ppc@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH 1/4] target/riscv: Fix up PropertyInfo to set @qapi_type Date: Wed, 4 Nov 2026 07:45:49 +0100 Message-ID: <20261104064552.959862-2-armbru@redhat.com> In-Reply-To: <20261104064552.959862-1-armbru@redhat.com> References: <20261104064552.959862-1-armbru@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, 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 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: 1793774834199158500 Content-Type: text/plain; charset="utf-8" When we recently updated PropertyInfo to set @qapi_type, we missed one. Update it now. Fixes: 07458a910f7b ("target/riscv: convert PropertyInfo definitions to use= qapi_type") Signed-off-by: Markus Armbruster Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/riscv/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 362e561809..15c27f4ce4 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -2075,6 +2075,7 @@ static void prop_vlen_get(Object *obj, Visitor *v, co= nst char *name, =20 static const PropertyInfo prop_vlen =3D { .type =3D "uint16", + .qapi_type =3D &uint16_type_info, .description =3D "vlen", .get =3D prop_vlen_get, .set =3D prop_vlen_set, --=20 2.55.0 From nobody Mon Nov 23 04:26:16 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1793774864; cv=none; d=zohomail.com; s=zohoarc; b=TTsth0T/5lmu9l/bTQPpGqAfjyqCQf3RqTGdGCkgHNkAYRPm+dQ3TjLaeNFuV26nRjC2HP+lP7Yd2vI3a5WuF8R5GfA5r7RtLsW1F5XS3oLyZ4TOx2jdphj/DyaKZAX7og5b6KmMWOnWTs0QMcXENeo4EgZaBhLcKrrHyQ2qerg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793774864; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+IlFRCa4ft6MY5EMf0Mo9x2BH8oNi4KEBnja+0szPFc=; b=fWUzVSVW6KCErareeUxolvXl7fS1J9hhFIQDm3LLKfuFH1t3xSZomPGYMMrFeeD6nefgRV0JH7PqSbmoAAANPdtA2YZFUN1+xyiQiTWenZjxPvboBJA2BvqLXaPukEirlGy1eGNOVam1Jep7br9G6pO3pkg3SIYZj5TJZwWl2LY= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793774864119306.7518385036941; Tue, 3 Nov 2026 22:47:44 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xOUlO-0006qX-6n; Wed, 04 Nov 2026 01:46:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xOUl3-0006lT-EZ for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:05 -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 1xOUl0-0002d1-Qt for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:05 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-690-ac1dDeQjM7axeUFalYyc7w-1; Wed, 04 Nov 2026 01:45:56 -0500 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CA2DF19560BC; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.44.22.2]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5AFA41956088; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id B8E5921E6880; Wed, 04 Nov 2026 07:45:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793774759; 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=+IlFRCa4ft6MY5EMf0Mo9x2BH8oNi4KEBnja+0szPFc=; b=Ph3lxyR6BvFzJyn4QNzdGFkx4PjchefsL1T6mY5nGoOkdTu+1q6C3HYI5YsGkIzZ21+eCj FMWJeiPmbWxrXO9sLBi9A70fJRrpr3YfBvAjz1X9ubUEDDdxW3i+EbFVgO/lDYHE8ABRXM DJvXAoVTVLufcu9IjRR6Woxd+Cehp0E= X-MC-Unique: ac1dDeQjM7axeUFalYyc7w-1 X-Mimecast-MFC-AGG-ID: ac1dDeQjM7axeUFalYyc7w_1793774755 From: Markus Armbruster To: qemu-devel@nongnu.org Cc: marcandre.lureau@redhat.com, pbonzini@redhat.com, berrange@redhat.com, milesg@linux.ibm.com, qemu-ppc@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH 2/4] hw/gpio/pca9552: Fix @type of pca9552 property led Date: Wed, 4 Nov 2026 07:45:50 +0100 Message-ID: <20261104064552.959862-3-armbru@redhat.com> In-Reply-To: <20261104064552.959862-1-armbru@redhat.com> References: <20261104064552.959862-1-armbru@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, 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 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: 1793774864496158500 Content-Type: text/plain; charset="utf-8" pca955x_initfn() passes @type "bool" to object_property_add(). The properties are actually string-typed: pca955x_get_led() and pca955x_set_led() use visit_type_str(). Pass "str" instead. Fixes: a90d8f84674d ("misc/pca9552: Add qom set and get") Signed-off-by: Markus Armbruster Reviewed-by: Glenn Miles Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/gpio/pca9552.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/gpio/pca9552.c b/hw/gpio/pca9552.c index 7e5fda4980..07ef0fb20b 100644 --- a/hw/gpio/pca9552.c +++ b/hw/gpio/pca9552.c @@ -567,7 +567,7 @@ static void pca955x_initfn(Object *obj) if (k->has_led_support) { /* LED variant: expose the LED selector state as led%d. */ name =3D g_strdup_printf("led%d", ix); - object_property_add(obj, name, "bool", NULL, + object_property_add(obj, name, "str", NULL, pca955x_get_led, pca955x_set_led, NULL, NU= LL); } else { /* GPIO variant: expose the pin logic level as pin%d. */ --=20 2.55.0 From nobody Mon Nov 23 04:26:16 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1793774823; cv=none; d=zohomail.com; s=zohoarc; b=OhR40o6TvT+uHfr6XeS3E31CRpHEJrggi4H7zYraU+CttK+DJuWVsxNl3T7YgutCOcXHmHJdSFZuTbTi3jpiNSNeWWgfdmOcvLKv0M2dsp0q2XRQgOvZf6ZMJhX49RsfGqN5EWJJjYGZcRtQv7vw74XC9JD8eCUxs8dOsk0S4XY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793774823; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JJkENVTgYTdi4u0Zr1loAV2vSNshTjs+5mziHstz0QU=; b=fGOViCsFDxX7jopTsQhEPjePbZ73RyIY5RD++c3H6viI8g3gKkXny0KKYom0XXUAlNYK06M8kXgHspWTi0H/87x10kym5Md2XF4IUTwPnYLDytgXGgT1P1Gd6+GGBC7t2nTLiWci70siO5/1pRtAg76S7kf/DXTSQeaMGezTq/E= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793774822973398.3120558101301; Tue, 3 Nov 2026 22:47:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xOUlA-0006nH-Jo; Wed, 04 Nov 2026 01:46:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xOUl1-0006kq-1E for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:03 -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 1xOUkx-0002cc-SI for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:02 -0500 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-627-vZQskqftPwWmxC5Abpx8IQ-1; Wed, 04 Nov 2026 01:45:56 -0500 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BCC871956058; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.44.22.2]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 533D530000E8; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id BD9B721E6882; Wed, 04 Nov 2026 07:45:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793774758; 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=JJkENVTgYTdi4u0Zr1loAV2vSNshTjs+5mziHstz0QU=; b=QX6qwLC/WpMuSHNJWIDeGAcetqggCeMfR2AJsXgDIWo4UQeY8d8gv5cMzBPh41NgWkHhye sPWX1zzq/IYD0n4sumdNm6xwBDAUadjm/c/4H+W5WHA7Gnd1MpYFYaygYD2SPRQjYZB1YO Fn/1v0wXOQ7d1jqlARJkBVVjIG4hAuU= X-MC-Unique: vZQskqftPwWmxC5Abpx8IQ-1 X-Mimecast-MFC-AGG-ID: vZQskqftPwWmxC5Abpx8IQ_1793774755 From: Markus Armbruster To: qemu-devel@nongnu.org Cc: marcandre.lureau@redhat.com, pbonzini@redhat.com, berrange@redhat.com, milesg@linux.ibm.com, qemu-ppc@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH 3/4] hw: Fix up PropertyInfo to set @qapi_type Date: Wed, 4 Nov 2026 07:45:51 +0100 Message-ID: <20261104064552.959862-4-armbru@redhat.com> In-Reply-To: <20261104064552.959862-1-armbru@redhat.com> References: <20261104064552.959862-1-armbru@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 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 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: 1793774826015158500 Content-Type: text/plain; charset="utf-8" When we recently updated PropertyInfo to set @qapi_type, we missed a few. Update them now. Fixes: 04dc2fe4d463 ("hw: convert device-local PropertyInfo definitions to = use qapi_type") Signed-off-by: Markus Armbruster Reviewed-by: Marc-Andr=C3=A9 Lureau --- hw/gpio/pca9552.c | 5 +++-- hw/gpio/pca9554.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/gpio/pca9552.c b/hw/gpio/pca9552.c index 07ef0fb20b..90ccf5170e 100644 --- a/hw/gpio/pca9552.c +++ b/hw/gpio/pca9552.c @@ -23,6 +23,7 @@ #include "hw/core/irq.h" #include "migration/vmstate.h" #include "qapi/error.h" +#include "qapi/qapi-builtin-type-infos.h" #include "qapi/visitor.h" #include "trace.h" #include "qom/object.h" @@ -567,12 +568,12 @@ static void pca955x_initfn(Object *obj) if (k->has_led_support) { /* LED variant: expose the LED selector state as led%d. */ name =3D g_strdup_printf("led%d", ix); - object_property_add(obj, name, "str", NULL, + object_property_add(obj, name, "str", &str_type_info, pca955x_get_led, pca955x_set_led, NULL, NU= LL); } else { /* GPIO variant: expose the pin logic level as pin%d. */ name =3D g_strdup_printf("pin%d", ix); - object_property_add(obj, name, "str", NULL, + object_property_add(obj, name, "str", &str_type_info, pca955x_get_pin, pca955x_set_pin, NULL, NU= LL); } g_free(name); diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c index 0dd063f93a..07bb00babf 100644 --- a/hw/gpio/pca9554.c +++ b/hw/gpio/pca9554.c @@ -16,6 +16,7 @@ #include "hw/core/irq.h" #include "migration/vmstate.h" #include "qapi/error.h" +#include "qapi/qapi-builtin-type-infos.h" #include "qapi/visitor.h" #include "trace.h" #include "qom/object.h" @@ -280,8 +281,8 @@ static void pca9554_initfn(Object *obj) char *name; =20 name =3D g_strdup_printf("pin%d", pin); - object_property_add(obj, name, "str", NULL, pca9554_get_pin, - pca9554_set_pin, + object_property_add(obj, name, "str", &str_type_info, + pca9554_get_pin, pca9554_set_pin, NULL, NULL); g_free(name); } --=20 2.55.0 From nobody Mon Nov 23 04:26:16 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1793774822; cv=none; d=zohomail.com; s=zohoarc; b=Y0D7nZcMROOFki6fCT8jCkLy92jng7Ezc4PoEpZUFEU5/jDbbDi7LeYnnwj6S2zxmQ4SRklzIqourlkOjpdV+o2JyRsk1/M5i57t4qV2lXNb5TkH5GMBOQwWMEoJ0kzJmnNtSJkWDyG6DL0T32OFh+eaRnCuaOnMMuNMxvTk/s8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793774822; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5AVqcY8H3BpY+PvfoWZwCrHtPMDav6fFgDI4l/GAK0Y=; b=nQfieZTiAQcRRjyuiimn/e/+xSDBSvjh+b9nrXGwZqgEVt2wJaWqXTdbFYRdOuNYGOWFEYtfTliMQtZDuims1Yxi4lBLmKr5u69vPdnPtwXv253A59FVO9kkjVXROZbtK/yFopvKOkw3knJkKc+0rWrbAsd0FgphQCt0YvjkLYw= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793774822466188.6840134006667; Tue, 3 Nov 2026 22:47:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xOUlR-0006sI-2c; Wed, 04 Nov 2026 01:46:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xOUl5-0006mf-Lh for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:07 -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 1xOUl1-0002dE-Aw for qemu-devel@nongnu.org; Wed, 04 Nov 2026 01:46:06 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-86-S23INl-fNEKftHh0R7np4w-1; Wed, 04 Nov 2026 01:45:57 -0500 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F2992195609D; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.44.22.2]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3E72430000E5; Wed, 4 Nov 2026 06:45:55 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id C295521E6883; Wed, 04 Nov 2026 07:45:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793774760; 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=5AVqcY8H3BpY+PvfoWZwCrHtPMDav6fFgDI4l/GAK0Y=; b=LFZ856CG+2a8B5ZRrUxE4xM8lcqQjiD5eguYTIAK/BHF4aRtXqMyCyyh/lfkev0JcIMJgR +G6yI6jM6JF6JotmD+aMBIHIzx8VL0JDSwHNy/RynB5z7EeXJCG1VFJhwCDQXPrv7hDZmV 7yCcdSP62O9dYewgJ9CIejNmnhXDEPM= X-MC-Unique: S23INl-fNEKftHh0R7np4w-1 X-Mimecast-MFC-AGG-ID: S23INl-fNEKftHh0R7np4w_1793774756 From: Markus Armbruster To: qemu-devel@nongnu.org Cc: marcandre.lureau@redhat.com, pbonzini@redhat.com, berrange@redhat.com, milesg@linux.ibm.com, qemu-ppc@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH 4/4] qom: Convert alias properties to QAPI-aware registration Date: Wed, 4 Nov 2026 07:45:52 +0100 Message-ID: <20261104064552.959862-5-armbru@redhat.com> In-Reply-To: <20261104064552.959862-1-armbru@redhat.com> References: <20261104064552.959862-1-armbru@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, 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 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: 1793774826220158500 Content-Type: text/plain; charset="utf-8" Pass the target property's QAPITypeInfo to object_class_property_add() / object_property_add(). Commit 53c674710b4 (qom: add qapi_type field to ObjectProperty) already monkey-patched it in object_property_add_alias(), but not in object_class_property_add_alias(). Delete that. Signed-off-by: Markus Armbruster Reviewed-by: Marc-Andr=C3=A9 Lureau --- qom/object.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qom/object.c b/qom/object.c index cd0590c3fd..774a976c8b 100644 --- a/qom/object.c +++ b/qom/object.c @@ -3099,13 +3099,13 @@ object_property_add_alias(Object *obj, const char *= name, prop->target_name =3D g_strdup(target_name); prop->flags =3D 0; =20 - op =3D object_property_add(obj, name, prop_type, NULL, + op =3D object_property_add(obj, name, prop_type, + target_prop->qapi_type, property_get_alias, property_set_alias, property_release_alias, prop); op->resolve =3D property_resolve_alias; - op->qapi_type =3D target_prop->qapi_type; if (target_prop->defval) { op->defval =3D qobject_ref(target_prop->defval); } @@ -3144,7 +3144,8 @@ object_class_property_add_alias(ObjectClass *klass, c= onst char *name, prop->target_name =3D g_strdup(target_name); prop->flags =3D OBJ_PROP_ALIAS_CLASS; =20 - op =3D object_class_property_add(klass, name, prop_type, NULL, + op =3D object_class_property_add(klass, name, prop_type, + target_prop->qapi_type, property_get_alias, property_set_alias, property_release_alias, --=20 2.55.0