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 X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 778BBC4363D for ; Wed, 7 Oct 2020 14:56:45 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C5259206DD for ; Wed, 7 Oct 2020 14:56:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="LYSFap8N" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C5259206DD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQArz-0007H1-Md for qemu-devel@archiver.kernel.org; Wed, 07 Oct 2020 10:56:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQAq1-0005rO-2x for qemu-devel@nongnu.org; Wed, 07 Oct 2020 10:54:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:39345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kQApy-0006qj-5T for qemu-devel@nongnu.org; Wed, 07 Oct 2020 10:54:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602082476; 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=2PtmRaao0G4zF+ZvjheASD8UzYZJ4ViJNIA5/O4iUuo=; b=LYSFap8Nd0fEPUtTOX0r9EJrLZmDLyRJZNbHRAJtoWI5YvHPEo2gL1BrAJfIgpfSCbglbB cwX6qykGiKw2P0dVZ87fc1PaiKWasrNja2/j0iOzCXqvrsm7vSO1u8Kvj0HL/nMTHE7XWt +fEgwM5fglr5+Qts+i7LSMIU0JeM4DU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-330-rGt4OwNsO8OWBxuoN2jK3Q-1; Wed, 07 Oct 2020 10:54:35 -0400 X-MC-Unique: rGt4OwNsO8OWBxuoN2jK3Q-1 Received: by mail-wm1-f70.google.com with SMTP id z7so791115wmi.3 for ; Wed, 07 Oct 2020 07:54:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2PtmRaao0G4zF+ZvjheASD8UzYZJ4ViJNIA5/O4iUuo=; b=LcbFMoEtZnWVF+d+4C4YqCAOVIwFIwRk2FJP0wLWTkqeVRytQE7iVf1oiQE6ZeTSsb 6TCgytLDghgvo29I/Tb8ewALUB6RK+X2lWdCgzQbsOa1mrkAv7+Y6GFbx2Od2LcN0wmM Tr+qymrDTP5pqO7D8FqAp0qCCN9ogFrdiCW6YNq3FsUPJERfpP5kpxbi3Fc69+Y5Pe1o asw0RiL7Ktyul6OMJ+lzdk6YTDQ47DWAY2BdROCur31Eg5eXPyiY4Q1Lxc1XWp3++sfT p4HwP7QCpBS6ISxm0ykAsNc23lItDFEGi2V8U9yP5f7e53HeTJnF3Ap8Eq8CuH9QK4Rz J8lA== X-Gm-Message-State: AOAM530BW3INHSDkuNgUacH4N4/X0fiM36gq4OrtMdNAABAkUnOwOQeS 6GhTlWm7LGDrN+mrvX0brYwsOSHbwOROgHuNvDY1DzwVKUe/ejSMV7oN+NMAHoCgXDN22wDvYx/ 8ojK2I9BpXS2C6pc= X-Received: by 2002:a5d:498a:: with SMTP id r10mr4106203wrq.106.1602082474102; Wed, 07 Oct 2020 07:54:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8rDpBq7thsfKhBiNy6rw4DcRc0NqEtIryjtoWh1uwPXl6eHV6alaX0W4ArMCCJ+Q3sGsLJQ== X-Received: by 2002:a5d:498a:: with SMTP id r10mr4106184wrq.106.1602082473866; Wed, 07 Oct 2020 07:54:33 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:d2f4:5943:190c:39ff? ([2001:b07:6468:f312:d2f4:5943:190c:39ff]) by smtp.gmail.com with ESMTPSA id c68sm2999307wmd.34.2020.10.07.07.54.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Oct 2020 07:54:32 -0700 (PDT) Subject: Re: Purpose of QOM properties registered at realize time? To: Eduardo Habkost References: <20201006220647.GR7303@habkost.net> <20201007130240.GU7303@habkost.net> <659289e0-4133-b945-45fd-25e759c18b03@redhat.com> <20201007142742.GV7303@habkost.net> From: Paolo Bonzini Message-ID: <117cb090-d9ce-6394-42a2-2ac99fd965b9@redhat.com> Date: Wed, 7 Oct 2020 16:54:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20201007142742.GV7303@habkost.net> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=pbonzini@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, NICE_REPLY_A=-0.001, 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-riscv@nongnu.org, qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org, "Daniel P. Berrange" , John Snow Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 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? Paolo