[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 06/16] hw/display/xlnx_dp: Move problematic c
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH v2 06/16] hw/display/xlnx_dp: Move problematic code from instance_init to realize |
Date: |
Fri, 13 Jul 2018 17:59:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 13.07.2018 13:13, Paolo Bonzini wrote:
> On 13/07/2018 10:27, Thomas Huth wrote:
>> aux_create_slave() calls qdev_init_nofail() which in turn "realizes"
>> the corresponding object. Thus this most not be called from an
>> instance_init function. Move the code to the realize function instead.
>>
>> Signed-off-by: Thomas Huth <address@hidden>
>> ---
>> hw/display/xlnx_dp.c | 23 +++++++++--------------
>> 1 file changed, 9 insertions(+), 14 deletions(-)
>
>> + s->aux_bus = aux_init_bus(dev, "aux");
>
> aux_init_bus can remain in the same place, and likewise the qdev_create
> that assigns to s->edid.
>
> The only thing that has to move is the qdev_init_nofail and
> aux_bus_map_device, like this:
>
> ----------------- 8< ------------------
> From: Paolo Bonzini <address@hidden>
> Subject: [PATCH] hw/display/xlnx_dp: Move problematic code from instance_init
> to realize
Your patch looks good at a first quick glance, but it seems not to work as
expected: When I now run QEMU like this:
echo "{'execute':'qmp_capabilities'}" \
"{'execute':'device-list-properties'," \
"'arguments':{'typename':'xlnx,zynqmp'}}" \
"{'execute': 'human-monitor-command', " \
"'arguments': {'command-line': 'info qtree'}}" | \
aarch64-softmmu/qemu-system-aarch64 -M none,accel=qtest -qmp stdio
then QEMU ends up in an endless loop and I've got to kill it.
Thomas
- Re: [Qemu-devel] [PATCH v2 02/16] hw/core/sysbus: Add a function for creating and attaching an object, (continued)
[Qemu-devel] [PATCH v2 07/16] hw/arm/xlnx-zynqmp: Fix crash when introspecting the "xlnx, zynqmp" device, Thomas Huth, 2018/07/13
[Qemu-devel] [PATCH v2 08/16] hw/arm/msf2-soc: Fix introspection problem with the "msf2-soc" device, Thomas Huth, 2018/07/13
[Qemu-devel] [PATCH v2 09/16] hw/cpu/a9mpcore: Fix introspection problems with the "a9mpcore_priv" device, Thomas Huth, 2018/07/13
[Qemu-devel] [PATCH v2 10/16] hw/arm/fsl-imx6: Fix introspection problems with the "fsl, imx6" device, Thomas Huth, 2018/07/13
[Qemu-devel] [PATCH v2 11/16] hw/arm/fsl-imx7: Fix introspection problems with the "fsl, imx7" device, Thomas Huth, 2018/07/13