From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUR0V-000265-SX for qemu-devel@nongnu.org; Tue, 03 Feb 2009 14:32:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUR0U-00025l-9v for qemu-devel@nongnu.org; Tue, 03 Feb 2009 14:32:27 -0500 Received: from [199.232.76.173] (port=57494 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUR0U-00025i-6M for qemu-devel@nongnu.org; Tue, 03 Feb 2009 14:32:26 -0500 Received: from g4t0016.houston.hp.com ([15.201.24.19]:42871) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUR0T-0004CI-P0 for qemu-devel@nongnu.org; Tue, 03 Feb 2009 14:32:26 -0500 From: Alex Williamson Date: Tue, 03 Feb 2009 12:29:32 -0700 Message-ID: <20090203192932.19598.50925.stgit@kvm.aw> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/8] qemu:virtio-net: Add MAC and VLAN filtering Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws, qemu-devel@nongnu.org Cc: markmc@redhat.com, kvm@vger.kernel.org This series adds the ability for the guest to set the virtio-net device MAC address, a new control virtqueue for setting configuration data from the guest, and new interfaces making use of the control virtqueue for setting RX mode options, MAC filter table entries, and VLAN filter bits. The end result is that the virtio-net device has more of the features of a real hardware NIC and can be configured to drop packets the guest isn't interested in seeing. This version is based on revision 6501 of the qemu tree and matches v4 of the Linux guest virtio_net changes posted to the kvm and netdev mailing lists. The guest patch to support setting the MAC address (via config write) is currently in Rusty's patch queue. Note that this series adds some infrastructure around the virtio-net save/load functions and increments through a couple save revisions. It would probably be worthwile to synchronize virtio-net before applying this since a qemu rev 2 save image does not currently match a kvm rev 2 save image. Thanks, Alex --- Alex Williamson (8): qemu:virtio-net: Add VLAN filtering qemu:virtio-net: Add additional MACs via a filter table qemu:virtio-net: Enable filtering based on MAC, promisc, broadcast and allmulti qemu:virtio-net: Add promiscuous and all-multicast mode bits qemu:virtio-net: Add a virtqueue for control commands from the guest qemu:virtio-net: Define ETH_ALEN for use when manipulating MAC addresses qemu:virtio-net: Allow setting the MAC address via set_config qemu:virtio-net: Save status and add some save infrastructure hw/virtio-net.c | 275 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- hw/virtio-net.h | 67 +++++++++++++ 2 files changed, 332 insertions(+), 10 deletions(-) -- Alex Williamson