From mboxrd@z Thu Jan 1 00:00:00 1970 From: Or Gerlitz Subject: Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu Date: Thu, 28 Jan 2010 13:22:31 +0200 Message-ID: <4B617377.6080509@voltaire.com> References: <1264538423.24933.144.camel@w-sridhar.beaverton.ibm.com> <20100127094427.GE3476@redhat.com> <4B6047A7.2030408@codemonkey.ws> <201001272239.13383.arnd@arndb.de> <1264632990.20320.106.camel@w-sridhar.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Arnd Bergmann , Anthony Liguori , "Michael S. Tsirkin" , avi@redhat.com, markmc@redhat.com, kvm@vger.kernel.org, qemu-devel@vger.kernel.org To: Sridhar Samudrala Return-path: Received: from fwil.voltaire.com ([193.47.165.2]:26782 "EHLO exil.voltaire.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754613Ab0A1LWg (ORCPT ); Thu, 28 Jan 2010 06:22:36 -0500 In-Reply-To: <1264632990.20320.106.camel@w-sridhar.beaverton.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: Sridhar Samudrala wrote: > On Wed, 2010-01-27 at 22:39 +0100, Arnd Bergmann wrote: >> we already have -net socket,fd and any user that passes an fd into >> that already knows what he wants to do with it. Making it work with >> raw sockets is just a natural extension to this > Didn't realize that -net socket is already there and supports TCP and UDP sockets. I will look into extending -net socket to support AF_PACKET SOCK_RAW type sockets The original thought was that the -raw option will be integrated in a pass through manner, that is bypassing the qemu vlan (internal bridge). This will allow qemu to use the mac address of the SR-IOV (e.g HW VF, software macvlan) NIC as the mac delivered to the VM, in that sense it is pretty different from the -net socket option. Or.