* [Qemu-devel] [PATCH] virtio spec: add virtio-blk max sectors feature
@ 2009-12-03 8:42 Avishay Traeger1
2009-12-03 9:58 ` [Qemu-devel] " Avi Kivity
0 siblings, 1 reply; 5+ messages in thread
From: Avishay Traeger1 @ 2009-12-03 8:42 UTC (permalink / raw)
To: kvm, qemu-devel
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 <avishay@il.ibm.com>
--- 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
\begin_layout Section*
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [PATCH] virtio spec: add virtio-blk max sectors feature
2009-12-03 8:42 [Qemu-devel] [PATCH] virtio spec: add virtio-blk max sectors feature Avishay Traeger1
@ 2009-12-03 9:58 ` Avi Kivity
2009-12-08 5:48 ` Rusty Russell
0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2009-12-03 9:58 UTC (permalink / raw)
To: Avishay Traeger1; +Cc: Rusty Russell, qemu-devel, kvm, virtualization
On 12/03/2009 10:42 AM, Avishay Traeger1 wrote:
> 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.
>
>
Copying Rusty and virtualization@.
> Thank you,
> Avishay
>
> Signed-off-by: Avishay Traeger<avishay@il.ibm.com>
>
> --- 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
>
> \begin_layout Section*
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [PATCH] virtio spec: add virtio-blk max sectors feature
2009-12-03 9:58 ` [Qemu-devel] " Avi Kivity
@ 2009-12-08 5:48 ` Rusty Russell
2009-12-08 9:44 ` Avishay Traeger1
0 siblings, 1 reply; 5+ messages in thread
From: Rusty Russell @ 2009-12-08 5:48 UTC (permalink / raw)
To: Avi Kivity; +Cc: Avishay Traeger1, qemu-devel, kvm, virtualization
On Thu, 3 Dec 2009 08:28:38 pm Avi Kivity wrote:
> On 12/03/2009 10:42 AM, Avishay Traeger1 wrote:
> > 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.
> >
> >
>
> Copying Rusty and virtualization@.
Thanks Avi...
Avishay; this would be the total sectors in an I/O, as separate from SIZE_MAX
(maximum size of any single scatterlist entry) and SEG_MAX (maximum number of
scatterlist entries)?
Seems like a reasonable idea; esp if you need it.
Thanks!
Rusty.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [PATCH] virtio spec: add virtio-blk max sectors feature
2009-12-08 5:48 ` Rusty Russell
@ 2009-12-08 9:44 ` Avishay Traeger1
2009-12-08 9:50 ` Avi Kivity
0 siblings, 1 reply; 5+ messages in thread
From: Avishay Traeger1 @ 2009-12-08 9:44 UTC (permalink / raw)
To: Rusty Russell; +Cc: virtualization, Avi Kivity, kvm, qemu-devel
Rusty Russell <rusty@rustcorp.com.au> wrote on 12/08/2009 07:48:00 AM:
> Avishay; this would be the total sectors in an I/O, as separate from
SIZE_MAX
> (maximum size of any single scatterlist entry) and SEG_MAX (maximum
number of
> scatterlist entries)?
Correct. In the guest virtblk driver, it changes the call to
blk_queue_max_sectors().
> Seems like a reasonable idea; esp if you need it.
I do.
> Thanks!
> Rusty.
Sure. Avi - do you want me to resubmit the kvm and qemu patches?
Thanks,
Avishay
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-08 9:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 8:42 [Qemu-devel] [PATCH] virtio spec: add virtio-blk max sectors feature Avishay Traeger1
2009-12-03 9:58 ` [Qemu-devel] " Avi Kivity
2009-12-08 5:48 ` Rusty Russell
2009-12-08 9:44 ` Avishay Traeger1
2009-12-08 9:50 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).