Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kQBj0-00061d-6z for mharc-qemu-riscv@gnu.org; Wed, 07 Oct 2020 11:51:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQBio-0005zV-Te for qemu-riscv@nongnu.org; Wed, 07 Oct 2020 11:51:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:60619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kQBii-0007dx-2I for qemu-riscv@nongnu.org; Wed, 07 Oct 2020 11:51:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602085870; 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: in-reply-to:in-reply-to:references:references; bh=Ezg3xLJgiZMdbCSIM2AGJQ7reAQ/jzvu/sS4w/S9ByY=; b=V0N5vt64BpXV9Gdx4tnostjdBztCPnBGysl87lZ20a+kGgQCy9y9uFnDasR2Ki1pvKrOFG 89WKCnDT8RK/P3UdFEVnyHk6D84IsCyOh49xb7F6eugDLKNqbudfd9z9SxMpvZDU3/hELk ppXuTrIv4LN0BrB2AUIdv2bRmmW0X9g= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-212-asWaldYbOuiOBexEG9K8eQ-1; Wed, 07 Oct 2020 11:51:08 -0400 X-MC-Unique: asWaldYbOuiOBexEG9K8eQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E0BCD56C32; Wed, 7 Oct 2020 15:51:06 +0000 (UTC) Received: from localhost (ovpn-119-102.rdu2.redhat.com [10.10.119.102]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76F505C1C2; Wed, 7 Oct 2020 15:51:06 +0000 (UTC) Date: Wed, 7 Oct 2020 11:51:05 -0400 From: Eduardo Habkost To: Paolo Bonzini Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, "Daniel P. Berrange" , John Snow , Peter Maydell Subject: Re: Purpose of QOM properties registered at realize time? Message-ID: <20201007155105.GX7303@habkost.net> References: <20201006220647.GR7303@habkost.net> <20201007130240.GU7303@habkost.net> <659289e0-4133-b945-45fd-25e759c18b03@redhat.com> <20201007142742.GV7303@habkost.net> <117cb090-d9ce-6394-42a2-2ac99fd965b9@redhat.com> MIME-Version: 1.0 In-Reply-To: <117cb090-d9ce-6394-42a2-2ac99fd965b9@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ehabkost@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Received-SPF: pass client-ip=63.128.21.124; envelope-from=ehabkost@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/07 00:44:56 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.742, 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2020 15:51:23 -0000 On Wed, Oct 07, 2020 at 04:54:31PM +0200, Paolo Bonzini wrote: > On 07/10/20 16:27, Eduardo Habkost wrote: > >> It is always wrapped, but (as far as I recall, because I have never > >> worked with GPIOs) they are intentionally QOM properties and not just as > >> an implementation detail. It's meant to be accessible to the user if > >> only through qom-get/qom-set. > > > > Being accessible for debugging would be OK. I'm just worried > > about dynamic QOM properties being part of a stable and supported > > API. > > Certainly accessing the properties is only for debugging. > > However, I am not sure if the _existence_ of GPIOs as dynamic QOM > properties is part of the API; that is, whether the user has to specify > the names of these properties to create some devices. I don't think > that wouldn't be a problem anyway, what do you think? Right now, I only want to know if the QOM property is part of a supported stable external interface. For the properties registered at realize time, the answer seems to be "no". Later, I might want to locate internal users of those QOM properties too, to be able to refactor the code if necessary. -- Eduardo