On 02/16/2012 08:00 PM, Andreas Färber wrote:
Am 17.02.2012 02:47, schrieb Andreas Färber:
Since QOM'ification, qdev_try_create() uses object_new() internally,
which asserts "type != NULL" when the type is not registered.
This was revealed by the combination of kvmclock's kvm_enabled() check
and
Am 17.02.2012 02:47, schrieb Andreas Färber:
> Since QOM'ification, qdev_try_create() uses object_new() internally,
> which asserts "type != NULL" when the type is not registered.
> This was revealed by the combination of kvmclock's kvm_enabled() check
> and early QOM type registration.
>
> Check
Since QOM'ification, qdev_try_create() uses object_new() internally,
which asserts "type != NULL" when the type is not registered.
This was revealed by the combination of kvmclock's kvm_enabled() check
and early QOM type registration.
Check whether the class exists before calling object_new(), so