Re: [Qemu-devel] [PATCH qemu v2 2/2] object: Handle objects with no parents

2018-04-30 Thread Paolo Bonzini
On 30/04/2018 08:25, Alexey Kardashevskiy wrote: > At the moment object_get_canonical_path_component() crashes on assert() > if the object does not have a parent. Usually it is not called for > orphan objects but various HMP/QMP commands can do that (info mtree, > qom-get). > > This adds few more

[Qemu-devel] [PATCH qemu v2 2/2] object: Handle objects with no parents

2018-04-29 Thread Alexey Kardashevskiy
At the moment object_get_canonical_path_component() crashes on assert() if the object does not have a parent. Usually it is not called for orphan objects but various HMP/QMP commands can do that (info mtree, qom-get). This adds few more tests in object_get_canonical_path() to prevent QEMU from cra