From: Paolo Bonzini <pbonzini@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/4] introduce cpu_physical_memory_map_fast
Date: Mon, 06 Jun 2011 17:55:50 +0200 [thread overview]
Message-ID: <4DECF886.5090808@redhat.com> (raw)
In-Reply-To: <4DECF5CF.5040405@codemonkey.ws>
On 06/06/2011 05:44 PM, Anthony Liguori wrote:
>>
>> Not just that. If you had a memory block at say 1 GB - 2 GB, and another
>> at 2 GB - 3 GB, a DMA operation that crosses the two could be
>> implemented with cpu_physical_memory_map_fast; you would simply build a
>> two-element iovec in two steps, something the current API does not allow.
>
> You cannot assume RAM blocks are contiguous. This has nothing to do
> with PV or not PV but how the RAM API works today.
That's exactly why I said a *two-element* iovec.
> Virtio can handle all of this today because it uses
> cpu_physical_memory_rw for ring access and then calls map for SG
> elements. SG elements are usually 4k so it's never really an issue to
> get a partial mapping. We could be more robust about it but in
> practice, it's not a problem.
I know in practice it's not a problem, but I dislike not having an API
that can deal with it even in theory. For vmw_pvscsi it's like 5 lines
of code to allow it.
Paolo
next prev parent reply other threads:[~2011-06-06 15:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 16:49 [Qemu-devel] [PATCH 0/4] introduce cpu_physical_memory_map_fast Paolo Bonzini
2011-05-03 16:49 ` [Qemu-devel] [PATCH 1/4] exec: extract cpu_physical_memory_map_internal Paolo Bonzini
2011-05-03 16:49 ` [Qemu-devel] [PATCH 2/4] exec: introduce cpu_physical_memory_map_fast and cpu_physical_memory_map_check Paolo Bonzini
2011-05-03 16:49 ` [Qemu-devel] [PATCH 3/4] virtio: use cpu_physical_memory_map_fast Paolo Bonzini
2011-05-03 16:49 ` [Qemu-devel] [PATCH 4/4] milkymist: " Paolo Bonzini
2011-05-04 21:56 ` Michael Walle
2011-05-12 14:51 ` [Qemu-devel] [PATCH 0/4] introduce cpu_physical_memory_map_fast Paolo Bonzini
2011-05-31 9:16 ` Paolo Bonzini
2011-06-06 12:27 ` Paolo Bonzini
2011-06-06 12:56 ` Anthony Liguori
2011-06-06 13:09 ` Paolo Bonzini
2011-06-06 15:44 ` Anthony Liguori
2011-06-06 15:55 ` Paolo Bonzini [this message]
2011-05-12 15:32 ` Avi Kivity
2011-05-13 6:33 ` Paolo Bonzini
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=4DECF886.5090808@redhat.com \
--to=pbonzini@redhat.com \
--cc=anthony@codemonkey.ws \
--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.