From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWDSt-0002zx-7Y for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:29:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWDSr-0002zl-F2 for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:29:06 -0500 Received: from [199.232.76.173] (port=33383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWDSr-0002zi-9d for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:29:05 -0500 Received: from mx2.redhat.com ([66.187.237.31]:42844) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWDSq-00068j-SP for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:29:05 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n18HT4g9032134 for ; Sun, 8 Feb 2009 12:29:04 -0500 Date: Sun, 8 Feb 2009 15:28:45 -0200 From: Marcelo Tosatti Subject: Re: [Qemu-devel] [patch 2/2] qemu: PCI device, disk and host network hot-add / hot-remove Message-ID: <20090208172844.GA3854@amt.cnet> References: <20090206174406.589893548@amt.cnet> <20090206174840.681967121@amt.cnet> <498EAF22.1030902@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <498EAF22.1030902@redhat.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org, Markus Armbruster On Sun, Feb 08, 2009 at 12:08:34PM +0200, Avi Kivity wrote: > Marcelo Tosatti wrote: >> Add monitor command to hot-add PCI devices (nic and storage). >> Syntax is: >> pci_add pci_addr=[[:]:] nic|storage params >> It returns the domain, bus and slot for the newly added device on >> success > > Instead of returning something, how about > > pci_add pci_addr=...,name=blah > > and then > > pci_del blah > > 'info pci' could also output the name so that it could be associated > with the bus address. Sure that can be done. Like an alias. So you identify with a name. I can see it simplifies direct management of hotplug on the monitor. Markus, Daniel, any comments on that?