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: 64460 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB38guYD009857 for ; Thu, 3 Dec 2009 08:42:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751736AbZLCImr (ORCPT ); Thu, 3 Dec 2009 03:42:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751617AbZLCImr (ORCPT ); Thu, 3 Dec 2009 03:42:47 -0500 Received: from mtagate2.de.ibm.com ([195.212.17.162]:38070 "EHLO mtagate2.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbZLCImr (ORCPT ); Thu, 3 Dec 2009 03:42:47 -0500 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.1/8.13.1) with ESMTP id nB38gr8G018844 for ; Thu, 3 Dec 2009 08:42:53 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 nB38gqmp1261580 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 nB38gqiG028029 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 Subject: [PATCH] virtio spec: add virtio-blk max sectors feature 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 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --- 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