From: Laszlo Ersek <lersek@redhat.com>
To: Igor Mammedov <imammedo@redhat.com>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
peter.maydell@linaro.org, mst@redhat.com, somlo@cmu.edu,
qemu-devel@nongnu.org, rjones@redhat.com, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCHv6 3/5] fw_cfg: move assert() and linking of fw_cfg device to the machine into instance_init()
Date: Wed, 28 Jun 2017 16:21:40 +0200 [thread overview]
Message-ID: <a5dba6ac-2c13-0a69-4cdb-504fe01b5866@redhat.com> (raw)
In-Reply-To: <20170628161247.168c4acb@nial.brq.redhat.com>
On 06/28/17 16:12, Igor Mammedov wrote:
> On Wed, 28 Jun 2017 08:09:35 +0100
> Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> wrote:
>> 1) Alter fw_cfg_find() to use object_resolve_path_type("", TYPE_FW_CFG,
>> NULL)
> I'd make use of the 3rd argument &ambiguous and assert on it
I vaguely recall playing with "ambiguous" in find_vmgenid_dev(), but it
didn't work as I expected (or, it wasn't necessary to use). Not sure
about the details, I only remember that, when calling
object_resolve_path_type() like above, from within a realize function,
the object under realization is already considered existent, so if we're
realizing the second (or later) instance of the class,
object_resolve_path_type() will return NULL (regardless of "ambiguous").
If we're realizing the very first instance, then
object_resolve_path_type() will return non-NULL.
I don't mind "ambiguous" if it can be made work fine, just thought that
I'd add this tidbit.
Thanks,
Laszlo
next prev parent reply other threads:[~2017-06-28 14:21 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-19 12:59 [Qemu-devel] [PATCHv6 0/5] fw_cfg: qdev-related tidy-ups Mark Cave-Ayland
2017-06-19 12:59 ` [Qemu-devel] [PATCHv6 1/5] fw_cfg: don't map the fw_cfg IO ports in fw_cfg_io_realize() Mark Cave-Ayland
2017-06-19 14:10 ` Eduardo Habkost
2017-06-19 12:59 ` [Qemu-devel] [PATCHv6 2/5] fw_cfg: move setting of FW_CFG_VERSION_DMA bit to fw_cfg_init1() Mark Cave-Ayland
2017-06-19 14:11 ` Eduardo Habkost
2017-06-20 3:18 ` Philippe Mathieu-Daudé
2017-06-19 12:59 ` [Qemu-devel] [PATCHv6 3/5] fw_cfg: move assert() and linking of fw_cfg device to the machine into instance_init() Mark Cave-Ayland
2017-06-19 14:28 ` Eduardo Habkost
2017-06-19 14:56 ` Laszlo Ersek
2017-06-19 16:57 ` Mark Cave-Ayland
2017-06-19 17:09 ` Laszlo Ersek
2017-06-19 18:49 ` Mark Cave-Ayland
2017-06-19 22:43 ` Laszlo Ersek
2017-06-21 6:58 ` Mark Cave-Ayland
2017-06-21 7:48 ` Laszlo Ersek
2017-06-21 11:36 ` Eduardo Habkost
2017-06-21 12:17 ` Mark Cave-Ayland
2017-06-21 13:23 ` Eduardo Habkost
2017-06-23 8:12 ` Mark Cave-Ayland
2017-06-23 11:50 ` Eduardo Habkost
2017-06-23 15:52 ` Laszlo Ersek
2017-06-23 16:10 ` Eduardo Habkost
2017-06-23 16:48 ` Laszlo Ersek
2017-06-23 18:50 ` Eduardo Habkost
2017-06-25 18:58 ` Mark Cave-Ayland
2017-06-27 0:49 ` Eduardo Habkost
2017-06-28 7:09 ` Mark Cave-Ayland
2017-06-28 14:12 ` Igor Mammedov
2017-06-28 14:21 ` Laszlo Ersek [this message]
2017-06-28 15:31 ` Igor Mammedov
2017-06-29 12:12 ` Mark Cave-Ayland
2017-06-19 12:59 ` [Qemu-devel] [PATCHv6 4/5] fw_cfg: move qdev_init_nofail() from fw_cfg_init1() to callers Mark Cave-Ayland
2017-06-19 12:59 ` [Qemu-devel] [PATCHv6 5/5] fw_cfg: move QOM type defines and fw_cfg types into fw_cfg.h Mark Cave-Ayland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5dba6ac-2c13-0a69-4cdb-504fe01b5866@redhat.com \
--to=lersek@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
--cc=somlo@cmu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).