From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNs1L-00046o-2S for qemu-devel@nongnu.org; Mon, 06 Jul 2009 13:30:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNs1G-00044o-O2 for qemu-devel@nongnu.org; Mon, 06 Jul 2009 13:30:26 -0400 Received: from [199.232.76.173] (port=57309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNs1G-00044l-BB for qemu-devel@nongnu.org; Mon, 06 Jul 2009 13:30:22 -0400 Received: from mx2.redhat.com ([66.187.237.31]:45706) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNs1F-0008PP-78 for qemu-devel@nongnu.org; Mon, 06 Jul 2009 13:30:21 -0400 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 n66HUIZf001097 for ; Mon, 6 Jul 2009 13:30:18 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n66HUIHK021885 for ; Mon, 6 Jul 2009 13:30:18 -0400 Received: from [IPv6:::1] (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n66HUHP7003029 for ; Mon, 6 Jul 2009 13:30:17 -0400 From: Mark McLoughlin Content-Type: text/plain Date: Mon, 06 Jul 2009 18:30:01 +0100 Message-Id: <1246901401.12086.20.camel@blaa> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0/3] Allow host_net_add monitor command accept file descriptors Reply-To: Mark McLoughlin List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Hi, You can pass file descriptors to qemu via the command line using '-net tap,fd=' or '-net socket,tap='. However, you cannot currently do this via the monitor. libvirt always configures tap interfaces before passing them to qemu. One reason for this is to allow libvirtd to have privileges to /dev/net/tun without allowing qemu those privileges. Because of this, libvirt currently does not support NIC hotplug for qemu. The following three patches add support for passing a file descriptor to the monitor command by allowing file descriptors to be received over monitor commands on a unix socket. For reference: https://fedoraproject.org/wiki/Features/KVM_NIC_Hotplug https://fedoraproject.org/wiki/Features/VirtPrivileges Cheers, Mark.