From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbmCF-00061a-Se for qemu-devel@nongnu.org; Wed, 08 Oct 2014 04:02:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbmC6-0000CU-SB for qemu-devel@nongnu.org; Wed, 08 Oct 2014 04:02:07 -0400 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:40285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbmC6-0000CC-MD for qemu-devel@nongnu.org; Wed, 08 Oct 2014 04:01:58 -0400 Received: by mail-wg0-f50.google.com with SMTP id a1so11159510wgh.9 for ; Wed, 08 Oct 2014 01:01:57 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5434EF71.8@redhat.com> Date: Wed, 08 Oct 2014 10:01:53 +0200 From: Paolo Bonzini MIME-Version: 1.0 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> In-Reply-To: <1412740148.9352.7.camel@G08FNSTD140041> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Zhu Guihua , Igor Mammedov Cc: Peter Crosthwaite , Bharata B Rao , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , qemu-devel@nongnu.org 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. > > So I execute the command as followings: > object_add memory-backend-ram,id=ram0,size=128M > device_add pc-dimm,memdev=ram0 > > Now it is impossible to delete the pc-dimm, because it has no id, and it > is inside of 'peripheral-anon' container. Sure; but that was an explicit choice when you issued device_add. Paolo