From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNCa5-0004M3-Vv for qemu-devel@nongnu.org; Thu, 19 May 2011 19:24:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNCa4-0003QX-Rv for qemu-devel@nongnu.org; Thu, 19 May 2011 19:24:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNCa4-0003QT-IG for qemu-devel@nongnu.org; Thu, 19 May 2011 19:24:36 -0400 Date: Fri, 20 May 2011 02:24:00 +0300 From: "Michael S. Tsirkin" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCHv2 0/2] virtio-net: 64 bit features, event index List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Krishna Kumar , Carsten Otte , lguest@lists.ozlabs.org, Shirley Ma , kvm@vger.kernel.org, linux-s390@vger.kernel.org, habanero@linux.vnet.ibm.com, Rusty Russell , Heiko Carstens , virtualization@lists.linux-foundation.org, steved@us.ibm.com, Christian Borntraeger , Tom Lendacky , Martin Schwidefsky , linux390@de.ibm.com OK, here's a patch that implements the virtio spec update that I sent earlier. It supercedes the PUBLISH_USED_IDX patches I sent out earlier. Support is added in both userspace and vhost-net. If you see issues or are just curious, you can turn the new feature off. For example: -global virtio-net-pci.event_idx=on -global virtio-blk-pci.event_idx=off Also, it's possible to try both vhost-net and virtio-net. Another part is adding support for 64 bit features in place. The high bits are actually unused, to test hack qemu to set some high bit. linux code is here: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost-net-next-event-idx-v3 git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu-kvm.git virtio-net-event-idx-v3 Changes from v1: - unify used and avail ring handling in a single feature bit - copy avail event idx fix from vhost-net Michael S. Tsirkin (2): virtio/vhost: support 64 bit features virtio+vhost: event idx feature hw/qdev-properties.c | 39 +++++++++++++--- hw/qdev.h | 10 ++++ hw/s390-virtio-bus.c | 5 +- hw/s390-virtio-bus.h | 2 +- hw/syborg_virtio.c | 7 ++- hw/vhost_net.c | 14 ++++-- hw/vhost_net.h | 4 +- hw/virtio-9p.c | 2 +- hw/virtio-balloon.c | 2 +- hw/virtio-blk.c | 2 +- hw/virtio-blk.h | 2 +- hw/virtio-net.c | 11 +++-- hw/virtio-net.h | 34 +++++++------- hw/virtio-pci.c | 91 +++++++++++++++++++++++++++---------- hw/virtio-serial-bus.c | 2 +- hw/virtio.c | 116 ++++++++++++++++++++++++++++++++++++++++++------ hw/virtio.h | 24 +++++++--- 17 files changed, 275 insertions(+), 92 deletions(-) -- 1.7.5.53.gc233e