* [Qemu-devel] New crash (was: Re: [PATCH qemu v5 2/3] hw/arm/sysbus-fdt: Allow device matching with DT compatible value) [not found] ` <20180927115454.31471-3-geert+renesas@glider.be> @ 2018-11-05 9:17 ` Thomas Huth 2018-11-05 9:39 ` [Qemu-devel] New crash Auger Eric 0 siblings, 1 reply; 2+ messages in thread From: Thomas Huth @ 2018-11-05 9:17 UTC (permalink / raw) To: Geert Uytterhoeven, Peter Maydell, Alex Williamson Cc: Laurent Pinchart, Wolfram Sang, Kieran Bingham, Magnus Damm, qemu-devel, linux-renesas-soc, Eric Auger, qemu-arm, Eduardo Habkost On 2018-09-27 13:54, Geert Uytterhoeven wrote: > From: Auger Eric <eric.auger@redhat.com> > > Up to now we have relied on the device type to identify a device tree > node creation function. Since we would like the vfio-platform device to > be instantiable with different compatible strings we introduce the > capability to specialize the node creation depending on actual > compatible value. > > NodeCreationPair is renamed into BindingEntry. The struct is enhanced > with compat and match_fn() fields. We introduce a new matching function > adapted to the vfio-platform generic device. > > Soon, the AMD XGBE can be instantiated with either manner, i.e.: > > -device vfio-amd-xgbe,host=e0900000.xgmac > > or using the new option line: > > -device vfio-platform,host=e0900000.xgmac > > Signed-off-by: Eric Auger <eric.auger@redhat.com> > [geert: Match using compatible values in sysfs instead of user-supplied > manufacturer/model options, reword] > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > Reviewed-by: Eric Auger <eric.auger@redhat.com> > Tested-by: Eric Auger <eric.auger@redhat.com> scripts/device-crash-test reports a new "crash" with current QEMU master branch, where QEMU aborts like this: aarch64-softmmu/qemu-system-aarch64 -S -machine virt-2.9,accel=tcg -device ramfb hw/arm/sysbus-fdt.c:422:vfio_platform_match: Object 0x564cf9ae8f80 is not an instance of type vfio-platform Aborted (core dumped) I think it is likely due to this patch here ... any chance that you could make this a little bit more user friendly instead of aborting the hard way here? Thanks, Thomas ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] New crash 2018-11-05 9:17 ` [Qemu-devel] New crash (was: Re: [PATCH qemu v5 2/3] hw/arm/sysbus-fdt: Allow device matching with DT compatible value) Thomas Huth @ 2018-11-05 9:39 ` Auger Eric 0 siblings, 0 replies; 2+ messages in thread From: Auger Eric @ 2018-11-05 9:39 UTC (permalink / raw) To: Thomas Huth, Geert Uytterhoeven, Peter Maydell, Alex Williamson Cc: Laurent Pinchart, Eduardo Habkost, Magnus Damm, qemu-devel, linux-renesas-soc, Wolfram Sang, Kieran Bingham, qemu-arm Hi Thomas, On 11/5/18 10:17 AM, Thomas Huth wrote: > On 2018-09-27 13:54, Geert Uytterhoeven wrote: >> From: Auger Eric <eric.auger@redhat.com> >> >> Up to now we have relied on the device type to identify a device tree >> node creation function. Since we would like the vfio-platform device to >> be instantiable with different compatible strings we introduce the >> capability to specialize the node creation depending on actual >> compatible value. >> >> NodeCreationPair is renamed into BindingEntry. The struct is enhanced >> with compat and match_fn() fields. We introduce a new matching function >> adapted to the vfio-platform generic device. >> >> Soon, the AMD XGBE can be instantiated with either manner, i.e.: >> >> -device vfio-amd-xgbe,host=e0900000.xgmac >> >> or using the new option line: >> >> -device vfio-platform,host=e0900000.xgmac >> >> Signed-off-by: Eric Auger <eric.auger@redhat.com> >> [geert: Match using compatible values in sysfs instead of user-supplied >> manufacturer/model options, reword] >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> >> Reviewed-by: Eric Auger <eric.auger@redhat.com> >> Tested-by: Eric Auger <eric.auger@redhat.com> > > scripts/device-crash-test reports a new "crash" with current QEMU master > branch, where QEMU aborts like this: > > aarch64-softmmu/qemu-system-aarch64 -S -machine virt-2.9,accel=tcg > -device ramfb > hw/arm/sysbus-fdt.c:422:vfio_platform_match: Object 0x564cf9ae8f80 is > not an instance of type vfio-platform > Aborted (core dumped) > > I think it is likely due to this patch here ... any chance that you > could make this a little bit more user friendly instead of aborting the > hard way here? thank you for spotting the bug. We should use object_dynamic_cast() to test if the device is a VFIO_PLATFORM one. I will prepare a patch. Thanks Eric > > Thanks, > Thomas > ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-05 9:39 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20180927115454.31471-1-geert+renesas@glider.be> [not found] ` <20180927115454.31471-3-geert+renesas@glider.be> 2018-11-05 9:17 ` [Qemu-devel] New crash (was: Re: [PATCH qemu v5 2/3] hw/arm/sysbus-fdt: Allow device matching with DT compatible value) Thomas Huth 2018-11-05 9:39 ` [Qemu-devel] New crash Auger Eric
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).