From patchwork Thu Dec 3 08:42:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avishay Traeger1 X-Patchwork-Id: 40136 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 47FDAB7C04 for ; Thu, 3 Dec 2009 19:43:39 +1100 (EST) Received: from localhost ([127.0.0.1]:59069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG7Hj-00056U-4S for incoming@patchwork.ozlabs.org; Thu, 03 Dec 2009 03:43:35 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NG7HE-00056D-Ec for qemu-devel@nongnu.org; Thu, 03 Dec 2009 03:43:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NG7H9-00055T-Ar for qemu-devel@nongnu.org; Thu, 03 Dec 2009 03:43:03 -0500 Received: from [199.232.76.173] (port=51091 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG7H9-00055J-7P for qemu-devel@nongnu.org; Thu, 03 Dec 2009 03:42:59 -0500 Received: from mtagate4.de.ibm.com ([195.212.17.164]:47850) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NG7H8-0004PM-ML for qemu-devel@nongnu.org; Thu, 03 Dec 2009 03:42:58 -0500 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.1/8.13.1) with ESMTP id nB38gq59030026 for ; Thu, 3 Dec 2009 08:42:52 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nB38gqAO1118376 for ; Thu, 3 Dec 2009 09:42:52 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id nB38gqiE028029 for ; Thu, 3 Dec 2009 09:42:52 +0100 Received: from d12mc102.megacenter.de.ibm.com (d12mc102.megacenter.de.ibm.com [9.149.167.114]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id nB38gq8d028024; Thu, 3 Dec 2009 09:42:52 +0100 X-KeepSent: 38B713F7:02DD66D1-C2257681:002F3CAD; type=4; name=$KeepSent To: kvm@vger.kernel.org, qemu-devel@nongnu.org X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008 Message-ID: From: Avishay Traeger1 Date: Thu, 3 Dec 2009 10:42:52 +0200 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 8.5|December 05, 2008) at 03/12/2009 10:42:51 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Subject: [Qemu-devel] [PATCH] virtio spec: add virtio-blk max sectors feature 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 I previously submitted a patch to have the guest virtio-blk driver get the value for the maximum I/O size from the host bdrv, rather than assume that there is no limit. Avi requested that I first patch the virtio spec (http://ozlabs.org/~rusty/virtio-spec/). Below is that patch. Please CC me on replies, as I am not subscribed. Thank you, Avishay Signed-off-by: Avishay Traeger \begin_layout Section* --- virtio-spec-0.8.2.lyx 2009-11-30 16:34:16.000000000 +0200 +++ virtio-spec-0.8.2-mod.lyx 2009-12-01 16:04:36.000000000 +0200 @@ -3999,6 +3999,20 @@ \end_inset . +\change_inserted 0 1259672174 + +\end_layout + +\begin_layout Description + +\change_inserted 0 1259672252 +VIRTIO_BLK_F_SECTOR_MAX +\begin_inset space ~ +\end_inset + +(10) Maximum sectors in an I/O. +\change_unchanged + \end_layout \end_deeper @@ -4068,6 +4082,17 @@ \begin_layout Plain Layout u32 blk_size; +\change_inserted 0 1259672274 + +\end_layout + +\begin_layout Plain Layout + +\change_inserted 0 1259672305 + + u32 sectors_max; +\change_unchanged + \end_layout \begin_layout Plain Layout @@ -4107,6 +4132,18 @@ \begin_layout Enumerate If the VIRTIO_BLK_F_RO feature is set by the device, any write requests will fail. +\change_inserted 0 1259672345 + +\end_layout + +\begin_layout Enumerate + +\change_inserted 0 1259672454 +If the VIRTIO_BLK_F_SECTOR_MAX feature is negotiated, the sectors_max field + should be read to determine the maximum I/O size for the driver to use. + No requests should be submitted which go beyond this limit. +\change_unchanged + \end_layout