|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [kvm-devel] [PATCH RFC 2/3] Virtio draft III: example ne
To: |
Brian King <brking@xxxxxxxxxxxxxxxxxx> |
Subject: |
[Xen-devel] Re: [kvm-devel] [PATCH RFC 2/3] Virtio draft III: example net driver |
From: |
Christoph Hellwig <hch@xxxxxxxxxxxxx> |
Date: |
Mon, 25 Jun 2007 20:33:04 +0100 |
Cc: |
Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>, Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>, "jmk@xxxxxxxxxxxxxxxxxxx" <jmk@xxxxxxxxxxxxxxxxxxx>, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, kvm-devel <kvm-devel@xxxxxxxxxxxxxxxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, virtualization <virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx>, Christian Borntraeger <cborntra@xxxxxxxxxx>, Latchesar Ionkov <lionkov@xxxxxxxx>, Suzanne McIntosh <skranjac@xxxxxxxxxx>, Martin Schwidefsky <schwidefsky@xxxxxxxxxx> |
Delivery-date: |
Wed, 27 Jun 2007 10:01:24 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<467FDEAD.4030204@xxxxxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<1181217762.14054.192.camel@xxxxxxxxxxxxxxxxxxxxx> <1181999552.6237.255.camel@xxxxxxxxxxxxxxxxxxxxx> <1181999669.6237.257.camel@xxxxxxxxxxxxxxxxxxxxx> <1181999825.6237.260.camel@xxxxxxxxxxxxxxxxxxxxx> <467FDEAD.4030204@xxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Mutt/1.4.2.3i |
On Mon, Jun 25, 2007 at 10:26:37AM -0500, Brian King wrote:
> 1. The add_inbuf interface passes an sg list. This causes problems for
> ibmveth since its rx buffers cannot be scatterlists.
> 2. The user of this API does not have access to the sk_buf. This causes
> issues for ibmveth since it needs to reserve the first 8 bytes of the
> rx buffer for use by the firmware. It currently uses skb_reserve to do
> this.
>
> Would it be simpler to just pass an sk_buf rather than the scatterlist
> on these interfaces for virtio_net users?
It probably should pass the sk_buff. Then again the network layer really
should be using struct scaterrlist for skb fragments - on a lot of iommu
a dma_map_sg is a lot more efficient than a lot of dma_map_page calls,
not to mention the benefit of a common data structure for things like
network attached storage protocols that have to talk to both worlds.
And yes, this is getting a little out of scope for the virtualization
discussion.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH RFC 2/3] Virtio draft III: example net driver, (continued)
- [Xen-devel] Re: [PATCH RFC 3/3] Virtio draft III: example block driver, Avi Kivity
- [Xen-devel] Re: [PATCH RFC 3/3] Virtio draft III: example block driver, Rusty Russell
- [Xen-devel] Re: [PATCH RFC 3/3] Virtio draft III: example block driver, Avi Kivity
- [Xen-devel] Re: [PATCH RFC 3/3] Virtio draft III: example block driver, Rusty Russell
- [Xen-devel] Re: [PATCH RFC 3/3] Virtio draft III: example block driver, Avi Kivity
- [Xen-devel] Re: [PATCH RFC 2/3] Virtio draft III: example net driver, Brian King
- [Xen-devel] Re: [kvm-devel] [PATCH RFC 2/3] Virtio draft III: example net driver,
Christoph Hellwig <=
- [Xen-devel] Re: [kvm-devel] [PATCH RFC 2/3] Virtio draft III: example net driver, Avi Kivity
- [Xen-devel] Re: [kvm-devel] [PATCH RFC 2/3] Virtio draft III: example net driver, Brian King
- [Xen-devel] Re: [kvm-devel] [PATCH RFC 2/3] Virtio draft III: example net driver, Avi Kivity
- [Xen-devel] Re: [PATCH RFC 2/3] Virtio draft III: example net driver, Rusty Russell
- [Xen-devel] Re: [PATCH RFC 2/3] Virtio draft III: example net driver, Brian King
[Xen-devel] Re: [kvm-devel] [PATCH RFC 0/3] Virtio draft III, Avi Kivity
|
|
|
|
|