On 11/01/2016 09:58 PM, Igor Mammedov wrote:


I mean, for example. if there are two devices, the first one is failed to be
realized, the second one is init-ed successfully, then can
nvdimm_plugged_device_list() get these two devices?

Based the code of pc_dimm_built_list(), i guess yes.
nope,
read qdev_device_add() end result:
 - on success device in QOM tree
 - on failure device is destroyed

Okay, pc_dimm_built_list let me mislead the failed case.
so this function also can be refined.

Reply via email to