From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbUk9-0001Ke-1Q for qemu-devel@nongnu.org; Tue, 07 Oct 2014 09:24:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbUk2-0006SE-7R for qemu-devel@nongnu.org; Tue, 07 Oct 2014 09:23:56 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57785 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbUk1-0006RO-VV for qemu-devel@nongnu.org; Tue, 07 Oct 2014 09:23:50 -0400 Message-ID: <5433E961.6010207@suse.de> Date: Tue, 07 Oct 2014 15:23:45 +0200 From: =?windows-1252?Q?Andreas_F=E4rber?= 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> In-Reply-To: <20141007141018.546296f2@nial.usersys.redhat.com> Content-Type: text/plain; charset=windows-1252 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: Igor Mammedov , Zhu Guihua Cc: pbonzini@redhat.com, Peter Crosthwaite , qemu-devel@nongnu.org, Bharata B Rao Am 07.10.2014 um 14:10 schrieb Igor Mammedov: > On Tue, 7 Oct 2014 19:59:51 +0800 > Zhu Guihua wrote: >=20 >> On Thu, 2014-10-02 at 10:08 +0000, Igor Mammedov wrote: >>> device_add puts every device with 'id' inside of 'peripheral' >>> container using id's value as the last component name. >>> Use it by replacing recursive search on sysbus with path >>> lookup in 'peripheral' container, which could handle both >>> BUS and BUS-less device cases. >>> >> >> If I want to delete device without id inside of 'peripheral-anon' >> container, the command 'device_del' does not work.=20 >> My suggestion is deleting device by the last component name, is this >> feasiable? > So far device_del was designed to work only with id-ed devices. >=20 > What's a use-case for unplugging unnamed device from peripheral-anon? I can think of use cases where you may want to balloon memory or CPUs. But that seems orthogonal to this series. Regards, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg