From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1bZj-0007Se-DI for qemu-devel@nongnu.org; Tue, 01 Nov 2016 12:06:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1bZe-0007jy-GK for qemu-devel@nongnu.org; Tue, 01 Nov 2016 12:06:11 -0400 Received: from mga03.intel.com ([134.134.136.65]:8024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1bZe-0007fP-6N for qemu-devel@nongnu.org; Tue, 01 Nov 2016 12:06:06 -0400 References: <1477850917-1214-1-git-send-email-mst@redhat.com> <1477850917-1214-38-git-send-email-mst@redhat.com> <20161031104518.7e423640@nial.brq.redhat.com> <46de99b0-8845-b324-1e5c-06b737fb45a6@linux.intel.com> <20161031120937.36d000b5@nial.brq.redhat.com> <20161101113526.1396cdd4@nial.brq.redhat.com> <20161101145801.05d381ce@nial.brq.redhat.com> From: Xiao Guangrong Message-ID: <4f9c3a31-973c-bf94-7a3b-5d39c293f761@linux.intel.com> Date: Tue, 1 Nov 2016 23:57:55 +0800 MIME-Version: 1.0 In-Reply-To: <20161101145801.05d381ce@nial.brq.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 37/47] nvdimm acpi: introduce fit buffer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: "Michael S. Tsirkin" , Peter Maydell , Richard Henderson , qemu-devel@nongnu.org, Eduardo Habkost , Paolo Bonzini 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.