From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36898 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIkjY-00016G-9H for qemu-devel@nongnu.org; Wed, 17 Nov 2010 11:19:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIkjX-0007EB-1D for qemu-devel@nongnu.org; Wed, 17 Nov 2010 11:19:44 -0500 Received: from mtagate7.uk.ibm.com ([194.196.100.167]:36815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIkjW-0007DM-Pf for qemu-devel@nongnu.org; Wed, 17 Nov 2010 11:19:42 -0500 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id oAHGJeJO023820 for ; Wed, 17 Nov 2010 16:19:40 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oAHGJZVD3444888 for ; Wed, 17 Nov 2010 16:19:40 GMT Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oAHGJYGY002854 for ; Wed, 17 Nov 2010 09:19:34 -0700 From: Stefan Hajnoczi Date: Wed, 17 Nov 2010 16:19:25 +0000 Message-Id: <1290010769-11217-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 0/4] virtio: Use ioeventfd for virtqueue notify List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" The v4 version includes: * Simpler start/stop ioeventfd mechanism using bool ioeventfd_started state * Support for migration * Handle deassign race condition to avoid dropping a virtqueue kick * Add missing kvm_enabled() check to kvm_has_many_ioeventfds() * Documentation updates for qdev -device with ioeventfd=on|off Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify. On systems that support KVM, the ioeventfd mechanism can be used to make virtqueue notify a lightweight exit by deferring hardware emulation to the iothread and allowing the VM to continue execution. This model is similar to how vhost receives virtqueue notifies. The result of this change is improved performance for userspace virtio devices. Virtio-blk throughput increases especially for multithreaded scenarios and virtio-net transmit throughput increases substantially. Now that this code is in virtio-pci.c it is possible to explicitly enable devices for which virtio-ioeventfd should be used. Only virtio-blk and virtio-net are enabled at this time.