All of lore.kernel.org
 help / color / mirror / Atom feed
* virtio indirect with lots of descriptors
@ 2013-07-10  1:46 ` Dave Airlie
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Airlie @ 2013-07-10  1:46 UTC (permalink / raw)
  To: Rusty Russell, LKML, qemu-devel

Hi Rusty,

playing with my virtio gpu, I started hitting the qemu
error_report("Too many read descriptors in indirect table");

Now I'm not sure but this doesn't seem to be a virtio limit that the
guest catches from what I can see, since my host dies quite quickly,
when I'm doing transfers in/out of a 5MB object with an sg entry per
page.

Just wondering if you can confirm if this is only a qemu limitation or
if I should just work around it at a bit of a higher level in my
driver/device?

Dave.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] virtio indirect with lots of descriptors
@ 2013-07-10  1:46 ` Dave Airlie
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Airlie @ 2013-07-10  1:46 UTC (permalink / raw)
  To: Rusty Russell, LKML, qemu-devel

Hi Rusty,

playing with my virtio gpu, I started hitting the qemu
error_report("Too many read descriptors in indirect table");

Now I'm not sure but this doesn't seem to be a virtio limit that the
guest catches from what I can see, since my host dies quite quickly,
when I'm doing transfers in/out of a 5MB object with an sg entry per
page.

Just wondering if you can confirm if this is only a qemu limitation or
if I should just work around it at a bit of a higher level in my
driver/device?

Dave.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: virtio indirect with lots of descriptors
  2013-07-10  1:46 ` [Qemu-devel] " Dave Airlie
@ 2013-07-10  2:12   ` Rusty Russell
  -1 siblings, 0 replies; 4+ messages in thread
From: Rusty Russell @ 2013-07-10  2:12 UTC (permalink / raw)
  To: Dave Airlie, LKML, qemu-devel

Dave Airlie <airlied@gmail.com> writes:
> Hi Rusty,
>
> playing with my virtio gpu, I started hitting the qemu
> error_report("Too many read descriptors in indirect table");
>
> Now I'm not sure but this doesn't seem to be a virtio limit that the
> guest catches from what I can see, since my host dies quite quickly,
> when I'm doing transfers in/out of a 5MB object with an sg entry per
> page.
>
> Just wondering if you can confirm if this is only a qemu limitation or
> if I should just work around it at a bit of a higher level in my
> driver/device?

You're not allowed to place more descriptors in a single request than
there are elements in the ring *even* if you use indirects, which are
seen as an optimization (thus you can always fall back to direct
descriptors if OOM).

We could change this rule in the 1.0 spec if required, or even make a
special rule for your device, but for the moment that's how it is.

Hope that helps,
Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] virtio indirect with lots of descriptors
@ 2013-07-10  2:12   ` Rusty Russell
  0 siblings, 0 replies; 4+ messages in thread
From: Rusty Russell @ 2013-07-10  2:12 UTC (permalink / raw)
  To: Dave Airlie, LKML, qemu-devel

Dave Airlie <airlied@gmail.com> writes:
> Hi Rusty,
>
> playing with my virtio gpu, I started hitting the qemu
> error_report("Too many read descriptors in indirect table");
>
> Now I'm not sure but this doesn't seem to be a virtio limit that the
> guest catches from what I can see, since my host dies quite quickly,
> when I'm doing transfers in/out of a 5MB object with an sg entry per
> page.
>
> Just wondering if you can confirm if this is only a qemu limitation or
> if I should just work around it at a bit of a higher level in my
> driver/device?

You're not allowed to place more descriptors in a single request than
there are elements in the ring *even* if you use indirects, which are
seen as an optimization (thus you can always fall back to direct
descriptors if OOM).

We could change this rule in the 1.0 spec if required, or even make a
special rule for your device, but for the moment that's how it is.

Hope that helps,
Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-10  2:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-10  1:46 virtio indirect with lots of descriptors Dave Airlie
2013-07-10  1:46 ` [Qemu-devel] " Dave Airlie
2013-07-10  2:12 ` Rusty Russell
2013-07-10  2:12   ` [Qemu-devel] " Rusty Russell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.