From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists1p.gnu.org (lists1p.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 B408DC79F82 for ; Fri, 4 Sep 2026 20:03:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2a6R-0000aR-33; Fri, 04 Sep 2026 16:01:35 -0400 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 1x2a6P-0000Ji-2i for qemu-devel@nongnu.org; Fri, 04 Sep 2026 16:01:33 -0400 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 1x2a6N-0008Rx-Au for qemu-devel@nongnu.org; Fri, 04 Sep 2026 16:01:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788552090; 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=3xZxsb+MXYVOcFZg8ztTLLylkyJWXaelgAGqcUYHEZA=; b=I7rB9ttzsY3Szeqp2YhfUW0BofIqpq4UDcBYZjyRWItTKfMuSDM3d8QY7YvcPq2TzQvx7P PZ/W2gFw8E0DH5dH7vkBxnMsmlnHG63oZchlvs9QbFvzIXv7v5HqxtKqRhJ4+46c2Bm7rM EYeBO5ko8HyJGKz7qLwdHipT+JDothc= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-582-jWb_4IpoNG-QS6jlnyANbQ-1; Fri, 04 Sep 2026 16:01:29 -0400 X-MC-Unique: jWb_4IpoNG-QS6jlnyANbQ-1 X-Mimecast-MFC-AGG-ID: jWb_4IpoNG-QS6jlnyANbQ_1788552087 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 37FDD18E9B26; Fri, 4 Sep 2026 20:01:27 +0000 (UTC) Received: from localhost (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 2CB4130002F4; Fri, 4 Sep 2026 20:01:25 +0000 (UTC) From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Fri, 04 Sep 2026 23:58:36 +0400 Subject: [PATCH v4 53/75] hw/s390-virtio-ccw: convert loadparm property to QAPI-aware registration MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260904-qom-qapi-v4-53-a985f168e938@redhat.com> References: <20260904-qom-qapi-v4-0-a985f168e938@redhat.com> In-Reply-To: <20260904-qom-qapi-v4-0-a985f168e938@redhat.com> To: qemu-devel@nongnu.org Cc: Markus Armbruster , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Michael Roth , Pierrick Bouvier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Ilya Leoshkevich , David Hildenbrand , Halil Pasic , Christian Borntraeger , Eric Farman , Matthew Rosato , Cornelia Huck , qemu-s390x@nongnu.org X-Developer-Signature: v=1; a=openpgp-sha256; l=1384; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=+wSBO6Yrs9Pd23pJ8FlEO+Ge0DCPAboQHJQxxLgvCf0=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqmyLLsYZtPVuciwxZlJdxt3WOAMaiC/2ru5GZj wE34+VwZjuJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCapsiywAKCRDa6OEJdZac 5ZlXD/4/i1/TqDMsO3gc/4jPL7ks7LbzQ00ayXSoYg1PLPtd6/rgUTPjGHxrFjR21EAmqmIx+Pb Lp1+XG+29ER9jBs2ELK8nPqRsmA4GWw2Oyvanxaw/3fe6lGUVG6lCPsDqJr46dUM4Bn1sCp8chA zXx522ZIlnze1HgGCkay9nJMHWcii3ZKvyQswHnvHNGHQ0rB8MY6s2uR23V0E2dYy6ZoEUMQIcV O/a/OA+8JXHtSEvcb7sdF3mZSJ5+LXxkkUb+98obWFQZXvmNamqJFQF58xBu7TK61utj8854vJz d+iLJSxIf2MyP9hcOM3ta1lCx6U+M3unRONptYk662Xt3dJUiFPuuf34YgjeRsMQ0EME3hWL99J vCrT0BJ8yM2B/j9Q7izYfsNJE2/JRX8F2TmYYhjOZF8Jexy+dV2PVZ1XsGO1Vr39V3fE1YP0oG/ Wx9bHXQ5RU9X+pDOscobKIdbjcr1xCLIAYAEdjuzxHxaydcdvY+o9uPqhODNGns17ukAvDPLXe+ OW04TY0ccmDuKbXzIrlOHdw/+KgnFczPxiyzfuQjmAyb5ehxYuVFmM7idTipo62fBZmb1oitf2G CodsaA2avaycqzEjkdU6mqZsXkaPYAjNgSMdDi6mhIoyxjlNdAqD9PU1R+5tUmzqa6hKlVa8WCb Wth7js6xyhZESiw== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.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, 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org The QAPI type is actually a string. Here also, if we had typedef support we could expose a more specific type. Signed-off-by: Marc-André Lureau --- hw/s390x/s390-virtio-ccw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 17266779a6c1..1c8838aeabb6 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -43,6 +43,7 @@ #include "system/hostmem.h" #include "target/s390x/kvm/pv.h" #include "migration/blocker.h" +#include "qapi/qapi-builtin-type-infos.h" #include "qapi/visitor.h" #include "qapi/qapi-visit-machine-s390x.h" #include "hw/s390x/cpu-topology.h" @@ -901,7 +902,8 @@ static void ccw_machine_class_init(ObjectClass *oc, const void *data) object_class_property_set_description(oc, "dea-key-wrap", "enable/disable DEA key wrapping using the CPACF wrapping key"); - object_class_property_add(oc, "loadparm", "loadparm", + /* if QAPI learns to typedef str, we could expose a more specific type */ + object_class_property_add_qapi(oc, "loadparm", &str_type_info, machine_get_loadparm, machine_set_loadparm, NULL, NULL); object_class_property_set_description(oc, "loadparm", -- 2.55.0.543.g5ebe2ebe4ea8