From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUjZ7-00078h-Nh for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:21:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUjZ6-000783-UN for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:21:25 -0500 Received: from [199.232.76.173] (port=48096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUjZ6-00077v-R4 for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:21:24 -0500 Received: from mail-qy0-f20.google.com ([209.85.221.20]:51496) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUjZ6-0005fJ-Nq for qemu-devel@nongnu.org; Wed, 04 Feb 2009 10:21:24 -0500 Received: by qyk13 with SMTP id 13so4881546qyk.10 for ; Wed, 04 Feb 2009 07:21:23 -0800 (PST) Message-ID: <4989B25F.6000100@codemonkey.ws> Date: Wed, 04 Feb 2009 09:21:03 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch 18/18] qemu: PCI device, disk and host network hot-add / hot-remove References: <20090204133303.113145633@localhost.localdomain> <20090204133924.976199377@localhost.localdomain> <20090204143843.GA26946@redhat.com> In-Reply-To: <20090204143843.GA26946@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: Marcelo Tosatti Daniel P. Berrange wrote: > On Wed, Feb 04, 2009 at 11:33:21AM -0200, Marcelo Tosatti wrote: > >> Add monitor command to hot-add PCI devices (nic and storage). >> >> Syntax is: >> >> pci_add pcibus nic|storage params >> >> It returns the bus slot and function for the newly added device on success. >> >> It is possible to attach a disk to a device after PCI initialization via >> the drive_add command. If so, a manual scan of the SCSI bus on the guest >> is necessary. >> >> Save QEMUMachine necessary for drive_init. >> >> Add monitor command to hot-remove devices, remove device data on _EJ0 notification. >> > > Does this allow for hot-add of host TAP devices passing a open > file descriptor across with SCM_RIGHTS (man 7 unix) on the UNIX > domain socket connection to the monitor ? This ability is > critical for libvirt, because we need to be able to allocate the > TAP devices ourselves & do various configuration tasks before giving > them to QEMU - the external script capability isn't suitable /flexible > enough for this. > It doesn't support this today but additional patches to enable that are certainly welcome. The best way would be a generic mechanism to send a file descriptor to QEMU that could then be used anywhere fd= is valid. For instance: (qemu) receivefd unix:foo.sock,server fd=5 (qemu) closefd 5 Regards, Anthony Liguori > Regards, > Daniel >