diff options
| author | Mark Cave-Ayland | 2017-07-14 11:40:06 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2017-07-17 20:41:30 +0200 |
| commit | 6e99c075a0171b7ff74386749125510a6641ea49 (patch) | |
| tree | 976e829b54baf84e0feb94aa4b9ef797ab284c3f /include/hw | |
| parent | qom: Fix ambiguous path detection when ambiguous=NULL (diff) | |
| download | qemu-6e99c075a0171b7ff74386749125510a6641ea49.tar.gz qemu-6e99c075a0171b7ff74386749125510a6641ea49.tar.xz qemu-6e99c075a0171b7ff74386749125510a6641ea49.zip | |
fw_cfg: switch fw_cfg_find() to locate the fw_cfg device by type rather than path
This will enable the fw_cfg device to be placed anywhere within the QOM tree
regardless of its machine location.
Note that we also add a comment to document the behaviour that we return NULL to
indicate failure where either no fw_cfg device or multiple fw_cfg devices are
found.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <1500025208-14827-2-git-send-email-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions
