All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 0/4] Block DMA helpers (v2)
Date: Sat, 07 Feb 2009 17:50:29 -0600	[thread overview]
Message-ID: <498E1E45.3000307@us.ibm.com> (raw)
In-Reply-To: <498DFA41.3010202@redhat.com>

Avi Kivity wrote:
> Anthony Liguori wrote:
>>>
>>> This requires that the generic layer be able to tell where a request 
>>> ends; don't know if that's the case now.
>>
>> Maybe create a sub QEMUSGList from another QEMUSGList.  The other 
>> option is passing an offset and size to anything that takes a 
>> QEMUSGList.  You could potentially get smart with how sub SG lists 
>> were managed by making them just store an internal offset/size.  
>> Although things start to get overly complex at some stage.
>
> Lifetime issues will kill us.  I note that something resembling this 
> sort of cleverness is holding up copyless networking -- different 
> parts of an skb have different lifetimes.

Yup.

> But I thought of something simpler: have virtio call virtio-* to 
> inquire whether a ring entry terminates a request.  This would also 
> simplify the virtio device emulations somewhat.

I don't know that I follow what you mean by "terminates a request".  I'm 
not sure I know what problem you're talking about solving.

Regards,

Anthony Liguori

  reply	other threads:[~2009-02-07 23:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05  9:33 [Qemu-devel] [PATCH 0/4] Block DMA helpers (v2) Avi Kivity
2009-02-05  9:33 ` [Qemu-devel] [PATCH 1/4] Add a scatter-gather list type and accessors Avi Kivity
2009-02-05  9:33 ` [Qemu-devel] [PATCH 2/4] Add qemu_iovec_reset() Avi Kivity
2009-02-05  9:33 ` [Qemu-devel] [PATCH 3/4] Introduce block dma helpers Avi Kivity
2009-02-05  9:33 ` [Qemu-devel] [PATCH 4/4] Convert IDE to use new " Avi Kivity
2009-02-05 21:25 ` [Qemu-devel] Re: [PATCH 0/4] Block DMA helpers (v2) Anthony Liguori
2009-02-06  8:52   ` Avi Kivity
2009-02-06 15:12     ` Anthony Liguori
2009-02-07 21:16       ` Avi Kivity
2009-02-07 23:50         ` Anthony Liguori [this message]
2009-02-08  9:30           ` Avi Kivity
2009-02-08 17:59             ` Anthony Liguori
2009-02-08 18:04               ` Avi Kivity
2009-02-08 19:04                 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=498E1E45.3000307@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.