|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH v18 13/14] memory backend: fill memory backend ram fields |
Date: | Tue, 25 Feb 2014 15:15:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Il 25/02/2014 11:20, Hu Tao ha scritto:
There is a problem that user_creatable_complete() is called before adding object to "/objects" (see object_create()), which triggers a assert failure when calling object_get_canonical_path() in ram_backend_memory_init(). Any ideas?
You can call object_property_add_child before calling user_creatable_complete, and then call object_unparent (in addition to object_unref) if creation fails.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |