From patchwork Sun Dec 12 15:02:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 75250 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B2FCBB7082 for ; Mon, 13 Dec 2010 02:06:58 +1100 (EST) Received: from localhost ([127.0.0.1]:33490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRnVa-00086J-06 for incoming@patchwork.ozlabs.org; Sun, 12 Dec 2010 10:06:42 -0500 Received: from [140.186.70.92] (port=36225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRnRT-0005zE-Ce for qemu-devel@nongnu.org; Sun, 12 Dec 2010 10:02:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRnRR-0004TP-Aj for qemu-devel@nongnu.org; Sun, 12 Dec 2010 10:02:26 -0500 Received: from mail-wy0-f173.google.com ([74.125.82.173]:34052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRnRR-0004SR-6F for qemu-devel@nongnu.org; Sun, 12 Dec 2010 10:02:25 -0500 Received: by mail-wy0-f173.google.com with SMTP id 36so5558823wyg.4 for ; Sun, 12 Dec 2010 07:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=+cbwFeAjPCUEqjTynyNlNtcQEN/UPTa6Y7nZMzRLliM=; b=HX48lMzDOlnixJe68ZBR+Xw1LsiW5+VOoRAujiwNw2UNfzRG/X7mnmKNIuSgoFsyi+ XnBJb4qsY+aEmbcf0YDrL2oW0lNvHOdw3LNCnSmOJmiRVCg4uQxxAP38XSZjHKz3mRqv cCLGo3UNaGiiPIE2hL+34tgNLkHpG1v02xWbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=OmvRM6pEhNv2GkL03m55G5o2j1iVqTysO4dspyHadDjT4XR3i9s01e/3t5SYSSZaoa 24nmlPu3zIWc7YFQH+nQ/X5vlLLgfk+QGFlujyTjoZ7N+3mwytfhiiMKViNJiU9fgoGu g2syRhoqa+rUhcbAezCHXNLMJWb/t24DBFmLA= Received: by 10.216.160.148 with SMTP id u20mr3700648wek.66.1292166144723; Sun, 12 Dec 2010 07:02:24 -0800 (PST) Received: from localhost.localdomain ([109.224.133.37]) by mx.google.com with ESMTPS id m7sm2556987wer.42.2010.12.12.07.02.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Dec 2010 07:02:24 -0800 (PST) From: Stefan Hajnoczi To: Date: Sun, 12 Dec 2010 15:02:08 +0000 Message-Id: <1292166128-10874-5-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1292166128-10874-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1292166128-10874-1-git-send-email-stefanha@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Stefan Hajnoczi , "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCH v5 4/4] docs: Document virtio PCI -device ioeventfd=on|off X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Stefan Hajnoczi --- docs/qdev-device-use.txt | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt index f252c8e..84d0c82 100644 --- a/docs/qdev-device-use.txt +++ b/docs/qdev-device-use.txt @@ -97,10 +97,13 @@ 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. @@ -240,6 +243,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.