From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIkja-00016d-CO for qemu-devel@nongnu.org; Wed, 17 Nov 2010 11:19:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIkjY-0007Fb-GE for qemu-devel@nongnu.org; Wed, 17 Nov 2010 11:19:46 -0500 Received: from mtagate7.uk.ibm.com ([194.196.100.167]:36842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIkjY-0007FH-8o for qemu-devel@nongnu.org; Wed, 17 Nov 2010 11:19:44 -0500 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id oAHGJhsH023841 for ; Wed, 17 Nov 2010 16:19:43 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oAHGJfAu3629244 for ; Wed, 17 Nov 2010 16:19:42 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 oAHGJgsE003078 for ; Wed, 17 Nov 2010 09:19:42 -0700 From: Stefan Hajnoczi Date: Wed, 17 Nov 2010 16:19:29 +0000 Message-Id: <1290010769-11217-5-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1290010769-11217-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1290010769-11217-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 4/4] docs: Document virtio PCI -device ioeventfd=on|off List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , "Michael S. Tsirkin" Signed-off-by: Stefan Hajnoczi --- docs/qdev-device-use.txt | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt index f252c8e..85feda7 100644 --- a/docs/qdev-device-use.txt +++ b/docs/qdev-device-use.txt @@ -97,15 +97,17 @@ The -device argument differs in detail for each kind of drive: * if=virtio - -device virtio-blk-pci,drive=DRIVE-ID,class=C,vectors=V + -device virtio-blk-pci,drive=DRIVE-ID,class=C,vectors=V,ioeventfd=IOEVENTFD This lets you control PCI device class and MSI-X vectors. + IOEVENTFD controls whether or not ioeventfd is used for virtqueue notify. It + can be set to on (default) or off. + As for all PCI devices, you can add bus=PCI-BUS,addr=DEVFN to control the PCI device address. * if=pflash, if=mtd, if=sd, if=xen are not yet available with -device - For USB devices, the old way is actually different: -usbdevice disk:format=FMT:FILENAME @@ -240,6 +242,9 @@ For PCI devices, you can add bus=PCI-BUS,addr=DEVFN to control the PCI device address, as usual. The old -net nic provides parameter addr for that, it is silently ignored when the NIC is not a PCI device. +For virtio-net-pci, you can control whether or not ioeventfd is used for +virtqueue notify by setting ioeventfd= to on (default) or off. + -net nic accepts vectors=V for all models, but it's silently ignored except for virtio-net-pci (model=virtio). With -device, only devices that support it accept it. -- 1.7.2.3