From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc2sd-0006fE-D3 for qemu-devel@nongnu.org; Wed, 08 Oct 2014 21:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xc2sW-0006nw-Ih for qemu-devel@nongnu.org; Wed, 08 Oct 2014 21:50:59 -0400 Received: from [59.151.112.132] (port=27793 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc2sW-0006nA-7G for qemu-devel@nongnu.org; Wed, 08 Oct 2014 21:50:52 -0400 Message-ID: <1412819414.4155.3.camel@G08FNSTD140041> From: Zhu Guihua Date: Thu, 9 Oct 2014 09:50:14 +0800 In-Reply-To: <5434EF71.8@redhat.com> References: <1411723721-20484-1-git-send-email-imammedo@redhat.com> <1412244525-7153-1-git-send-email-imammedo@redhat.com> <1412683191.18043.7.camel@G08FNSTD140041> <20141007141018.546296f2@nial.usersys.redhat.com> <5433E961.6010207@suse.de> <20141007155321.36f9a3a7@nial.usersys.redhat.com> <1412740148.9352.7.camel@G08FNSTD140041> <5434EF71.8@redhat.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 37/36] qdev: device_del: search for to be unplugged device in 'peripheral' container List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Igor Mammedov , Peter Crosthwaite , Bharata B Rao , Andreas =?ISO-8859-1?Q?F=E4rber?= , qemu-devel@nongnu.org On Wed, 2014-10-08 at 10:01 +0200, Paolo Bonzini wrote: > Il 08/10/2014 05:49, Zhu Guihua ha scritto: > > when device_add pc-dimm, only 'memdev' property is necessary, but the > > 'id' property is optional.=20 > >=20 > > So I execute the command as followings: > > object_add memory-backend-ram,id=3Dram0,size=3D128M > > device_add pc-dimm,memdev=3Dram0 > >=20 > > Now it is impossible to delete the pc-dimm, because it has no id, and i= t > > is inside of 'peripheral-anon' container.=20 >=20 > Sure; but that was an explicit choice when you issued device_add. Thanks for your patient explanation=E3=80=82 And I think it is better to make memory-devices without dev->id use auto-generated IDs. Regards, Zhu >=20 > Paolo