Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
Pulling out this one comment for the attention on the core Xen/Linux maintainers. On Thu, 2014-03-06 at 21:48 +, Zoltan Kiss wrote: [...] > @@ -343,8 +347,26 @@ struct xenvif *xenvif_alloc(struct device *parent, > domid_t domid, > vif->pending_prod = MAX_PENDING_REQS; > for (i =

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-13 Thread Ian Campbell
a > huge perfomance penalty. The classic kernel version of netback used grant > mapping, and to get notified when the page can be unmapped, it used page > destructors. Unfortunately that destructor is not an upstreamable solution. > Ian Campbell's skb fragment destructor patch seri

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-13 Thread Ian Campbell
perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series [1] tried to solve this problem

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
Pulling out this one comment for the attention on the core Xen/Linux maintainers. On Thu, 2014-03-06 at 21:48 +, Zoltan Kiss wrote: [...] @@ -343,8 +347,26 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, vif-pending_prod = MAX_PENDING_REQS; for (i = 0; i

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
]; /* Coalescing tx requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy. */ struct gnttab_copy tx_copy_ops[2*MAX_PENDING_REQS]; - + struct

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-13 Thread Ian Campbell
On Wed, 2014-03-12 at 15:40 +, Ian Campbell wrote: On Sat, 2014-03-08 at 18:57 -0500, David Miller wrote: From: Zoltan Kiss zoltan.k...@citrix.com Date: Sat, 8 Mar 2014 14:37:50 + Maybe you mixed up mine with that? But that's also not eligible to be applied yet. I can

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread David Vrabel
grant_tx_handle[MAX_PENDING_REQS]; /* Coalescing tx requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy. */ struct gnttab_copy tx_copy_ops[2*MAX_PENDING_REQS

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
pending_tx_info[MAX_PENDING_REQS]; + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; /* Coalescing tx requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread David Vrabel
[MAX_PENDING_REQS]; struct pending_tx_info pending_tx_info[MAX_PENDING_REQS]; + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; /* Coalescing tx requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Wei Liu
pending_cons; u16 pending_ring[MAX_PENDING_REQS]; struct pending_tx_info pending_tx_info[MAX_PENDING_REQS]; +grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; /* Coalescing tx requests before copying makes number of grant * copy ops greater

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Zoltan Kiss
On 13/03/14 10:17, Ian Campbell wrote: Pulling out this one comment for the attention on the core Xen/Linux maintainers. On Thu, 2014-03-06 at 21:48 +, Zoltan Kiss wrote: [...] @@ -343,8 +347,26 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, vif-pending_prod

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Zoltan Kiss
]; + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; /* Coalescing tx requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy. */ struct gnttab_copy tx_copy_ops[2

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
pending_tx_info[MAX_PENDING_REQS]; + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; /* Coalescing tx requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Zoltan Kiss
On 13/03/14 13:56, Ian Campbell wrote: On Thu, 2014-03-13 at 13:17 +, Zoltan Kiss wrote: On 13/03/14 10:33, Ian Campbell wrote: On Thu, 2014-03-06 at 21:48 +, Zoltan Kiss wrote: + netdev_err(vif-dev, + Page still

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-13 Thread Zoltan Kiss
NICs, and generally it's a huge perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-12 Thread Zoltan Kiss
On 12/03/14 15:40, Ian Campbell wrote: On Sat, 2014-03-08 at 18:57 -0500, David Miller wrote: From: Zoltan Kiss Date: Sat, 8 Mar 2014 14:37:50 + Maybe you mixed up mine with that? But that's also not eligible to be applied yet. I can always revert the series if there are major

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-12 Thread Ian Campbell
On Sat, 2014-03-08 at 18:57 -0500, David Miller wrote: > From: Zoltan Kiss > Date: Sat, 8 Mar 2014 14:37:50 + > > > Maybe you mixed up mine with that? But that's also not eligible to be > > applied yet. > > I can always revert the series if there are major objections. Zoltan -- does this

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-12 Thread Ian Campbell
On Sat, 2014-03-08 at 18:57 -0500, David Miller wrote: From: Zoltan Kiss zoltan.k...@citrix.com Date: Sat, 8 Mar 2014 14:37:50 + Maybe you mixed up mine with that? But that's also not eligible to be applied yet. I can always revert the series if there are major objections. Zoltan

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-12 Thread Zoltan Kiss
On 12/03/14 15:40, Ian Campbell wrote: On Sat, 2014-03-08 at 18:57 -0500, David Miller wrote: From: Zoltan Kiss zoltan.k...@citrix.com Date: Sat, 8 Mar 2014 14:37:50 + Maybe you mixed up mine with that? But that's also not eligible to be applied yet. I can always revert the series if

Re: [PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-03-10 Thread David Vrabel
On 27/02/14 15:55, Zoltan Kiss wrote: > (This is a continuation of "[PATCH v9] xen/grant-table: Avoid m2p_override > during mapping") > > The grant mapping API does m2p_override unnecessarily: only gntdev needs it, > for blkback and future netback patches it jus

Re: [PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-03-10 Thread Zoltan Kiss
David/Stefano, can you take a look, and ack if you are happy with this? I could build it on ARM and a backported version on 3.10 have seen quite a lot of testing recently. Zoli On 27/02/14 15:55, Zoltan Kiss wrote: (This is a continuation of "[PATCH v9] xen/grant-table: Avoid m2p_ove

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-10 Thread Wei Liu
On Sat, Mar 08, 2014 at 06:57:59PM -0500, David Miller wrote: > From: Zoltan Kiss > Date: Sat, 8 Mar 2014 14:37:50 + > > > Maybe you mixed up mine with that? But that's also not eligible to be > > applied yet. > > I can always revert the series if there are major objections. David, I

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-10 Thread Wei Liu
On Sat, Mar 08, 2014 at 06:57:59PM -0500, David Miller wrote: From: Zoltan Kiss zoltan.k...@citrix.com Date: Sat, 8 Mar 2014 14:37:50 + Maybe you mixed up mine with that? But that's also not eligible to be applied yet. I can always revert the series if there are major objections.

Re: [PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-03-10 Thread Zoltan Kiss
David/Stefano, can you take a look, and ack if you are happy with this? I could build it on ARM and a backported version on 3.10 have seen quite a lot of testing recently. Zoli On 27/02/14 15:55, Zoltan Kiss wrote: (This is a continuation of [PATCH v9] xen/grant-table: Avoid m2p_override

Re: [PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-03-10 Thread David Vrabel
On 27/02/14 15:55, Zoltan Kiss wrote: (This is a continuation of [PATCH v9] xen/grant-table: Avoid m2p_override during mapping) The grant mapping API does m2p_override unnecessarily: only gntdev needs it, for blkback and future netback patches it just cause a lock contention, as those pages

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-08 Thread David Miller
From: Zoltan Kiss Date: Sat, 8 Mar 2014 14:37:50 + > Maybe you mixed up mine with that? But that's also not eligible to be > applied yet. I can always revert the series if there are major objections. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-08 Thread Zoltan Kiss
NICs, and generally it's a huge perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-08 Thread Zoltan Kiss
a bottleneck with 10Gb NICs, and generally it's a huge perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-08 Thread David Miller
From: Zoltan Kiss zoltan.k...@citrix.com Date: Sat, 8 Mar 2014 14:37:50 + Maybe you mixed up mine with that? But that's also not eligible to be applied yet. I can always revert the series if there are major objections. -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-07 Thread David Miller
a > huge perfomance penalty. The classic kernel version of netback used grant > mapping, and to get notified when the page can be unmapped, it used page > destructors. Unfortunately that destructor is not an upstreamable solution. > Ian Campbell's skb fragment destructor patch seri

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-07 Thread David Miller
, and generally it's a huge perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series [1] tried

[PATCH net-next v7 5/9] xen-netback: Remove old TX grant copy definitons and fix indentations

2014-03-06 Thread Zoltan Kiss
These became obsolete with grant mapping. I've left intentionally the indentations in this way, to improve readability of previous patches. NOTE: if bisect brought you here, you should apply the series up until "xen-netback: Timeout packets in RX path", otherwise Windows guests

[PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-06 Thread Zoltan Kiss
This patch introduces grant mapping on netback TX path. It replaces grant copy operations, ditching grant copy coalescing along the way. Another solution for copy coalescing is introduced in "xen-netback: Handle guests with too many frags", older guests and Windows can broke before

[PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-06 Thread Zoltan Kiss
grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series [1] tried to solve this problem, however it seems to be very invasive on the network stack's code

[PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-06 Thread Zoltan Kiss
grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series [1] tried to solve this problem, however it seems to be very invasive on the network stack's code

[PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-06 Thread Zoltan Kiss
This patch introduces grant mapping on netback TX path. It replaces grant copy operations, ditching grant copy coalescing along the way. Another solution for copy coalescing is introduced in xen-netback: Handle guests with too many frags, older guests and Windows can broke before that patch

[PATCH net-next v7 5/9] xen-netback: Remove old TX grant copy definitons and fix indentations

2014-03-06 Thread Zoltan Kiss
These became obsolete with grant mapping. I've left intentionally the indentations in this way, to improve readability of previous patches. NOTE: if bisect brought you here, you should apply the series up until xen-netback: Timeout packets in RX path, otherwise Windows guests can't work properly

Re: [PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-05 Thread Zoltan Kiss
requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy. */ struct gnttab_copy tx_copy_ops[2*MAX_PENDING_REQS]; Forget to remove this? No, it is removed in the next

Re: [PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-05 Thread Wei Liu
On Tue, Mar 04, 2014 at 10:32:15PM +, Zoltan Kiss wrote: > This patch introduces grant mapping on netback TX path. It replaces grant copy > operations, ditching grant copy coalescing along the way. Another solution for > copy coalescing is introduced in patch #7, older guests and Wi

Re: [PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-05 Thread Wei Liu
On Tue, Mar 04, 2014 at 10:32:15PM +, Zoltan Kiss wrote: This patch introduces grant mapping on netback TX path. It replaces grant copy operations, ditching grant copy coalescing along the way. Another solution for copy coalescing is introduced in patch #7, older guests and Windows can

Re: [PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-05 Thread Zoltan Kiss
requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy. */ struct gnttab_copy tx_copy_ops[2*MAX_PENDING_REQS]; Forget to remove this? No, it is removed in the next

Re: [Xen-devel] [PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-04 Thread Konrad Rzeszutek Wilk
On Mar 4, 2014 5:32 PM, Zoltan Kiss wrote: > > This patch introduces grant mapping on netback TX path. It replaces grant > copy > operations, ditching grant copy coalescing along the way. Another solution > for > copy coalescing is introduced in patch #7, older guests and

[PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-04 Thread Zoltan Kiss
This patch introduces grant mapping on netback TX path. It replaces grant copy operations, ditching grant copy coalescing along the way. Another solution for copy coalescing is introduced in patch #7, older guests and Windows can broke before that patch applies. There is a callback

[PATCH net-next v6 5/10] xen-netback: Remove old TX grant copy definitons and fix indentations

2014-03-04 Thread Zoltan Kiss
These became obsolete with grant mapping. I've left intentionally the indentations in this way, to improve readability of previous patches. NOTE: if bisect brought you here, you should apply the series up until #9, otherwise Windows guests can't work properly and malicious guests can block other

[PATCH net-next v6 0/10] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-04 Thread Zoltan Kiss
grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series [1] tried to solve this problem, however it seems to be very invasive on the network stack's code

[PATCH net-next v6 0/10] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-04 Thread Zoltan Kiss
grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series [1] tried to solve this problem, however it seems to be very invasive on the network stack's code

[PATCH net-next v6 5/10] xen-netback: Remove old TX grant copy definitons and fix indentations

2014-03-04 Thread Zoltan Kiss
These became obsolete with grant mapping. I've left intentionally the indentations in this way, to improve readability of previous patches. NOTE: if bisect brought you here, you should apply the series up until #9, otherwise Windows guests can't work properly and malicious guests can block other

[PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-04 Thread Zoltan Kiss
This patch introduces grant mapping on netback TX path. It replaces grant copy operations, ditching grant copy coalescing along the way. Another solution for copy coalescing is introduced in patch #7, older guests and Windows can broke before that patch applies. There is a callback

Re: [Xen-devel] [PATCH net-next v6 4/10] xen-netback: Introduce TX grant mapping

2014-03-04 Thread Konrad Rzeszutek Wilk
On Mar 4, 2014 5:32 PM, Zoltan Kiss zoltan.k...@citrix.com wrote: This patch introduces grant mapping on netback TX path. It replaces grant copy operations, ditching grant copy coalescing along the way. Another solution for copy coalescing is introduced in patch #7, older guests

[PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-02-27 Thread Zoltan Kiss
(This is a continuation of "[PATCH v9] xen/grant-table: Avoid m2p_override during mapping") The grant mapping API does m2p_override unnecessarily: only gntdev needs it, for blkback and future netback patches it just cause a lock contention, as those pages never go to userspace.

[PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-02-27 Thread Zoltan Kiss
(This is a continuation of [PATCH v9] xen/grant-table: Avoid m2p_override during mapping) The grant mapping API does m2p_override unnecessarily: only gntdev needs it, for blkback and future netback patches it just cause a lock contention, as those pages never go to userspace. Therefore

Re: [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-24 Thread Zoltan Kiss
On 22/02/14 22:33, Zoltan Kiss wrote: On 18/02/14 17:40, Ian Campbell wrote: + */ +skb->pfmemalloc= false; } static int xenvif_get_extras(struct xenvif *vif, @@ -1372,7 +1341,7 @@ static bool tx_credit_exceeded(struct xenvif *vif, unsigned size) @@ -1581,7 +1535,11 @@

Re: [PATCH net-next v5 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-02-24 Thread Zoltan Kiss
NICs, and generally it's a huge perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-24 Thread Ian Campbell
On Fri, 2014-02-21 at 01:19 +, Zoltan Kiss wrote: > I don't know if the guest expects that slots for the same packet > comes back at the same time. I don't think the guest is allowed to assume that. In particular they aren't allowed to assume the the slots will be freed in the order they

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-24 Thread Ian Campbell
On Fri, 2014-02-21 at 01:19 +, Zoltan Kiss wrote: I don't know if the guest expects that slots for the same packet comes back at the same time. I don't think the guest is allowed to assume that. In particular they aren't allowed to assume the the slots will be freed in the order they were

Re: [PATCH net-next v5 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-02-24 Thread Zoltan Kiss
NICs, and generally it's a huge perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series

Re: [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-24 Thread Zoltan Kiss
On 22/02/14 22:33, Zoltan Kiss wrote: On 18/02/14 17:40, Ian Campbell wrote: + */ +skb-pfmemalloc= false; } static int xenvif_get_extras(struct xenvif *vif, @@ -1372,7 +1341,7 @@ static bool tx_credit_exceeded(struct xenvif *vif, unsigned size) @@ -1581,7 +1535,11 @@

Re: [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-22 Thread Zoltan Kiss
On 18/02/14 17:40, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch changes the grant copy on the TX patch to grant mapping Both this and the previous patch had a single sentence commit message (I count them together since they are split weirdly

Re: [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-22 Thread Zoltan Kiss
On 18/02/14 17:40, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch changes the grant copy on the TX patch to grant mapping Both this and the previous patch had a single sentence commit message (I count them together since they are split weirdly

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-20 Thread Zoltan Kiss
contains the new definitions necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem to be "generic helpers" or anything so it would be more normal to introduce these as they get used --

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread David Vrabel
here: >>>>>> use_ptemod = !xen_feature(XENFEAT_auto_translated_physmap); >>>>>> So I think we can't rely on kmap_ops to decide whether we should >>>>>> m2p_override >>>>>> or not. >>>>>> >>>>>&

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Stefano Stabellini
t;>>> or not. > >>>> > >>>>> Is it possible to realize if the mapping is a userspace mapping by > >>>>> checking for GNTMAP_application_map in map_ops? > >>>>> Otherwise I would keep the boolean and rename it to use

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread David Vrabel
> or not. >>>> >>>>> Is it possible to realize if the mapping is a userspace mapping by >>>>> checking for GNTMAP_application_map in map_ops? >>>>> Otherwise I would keep the boolean and rename it to user_mapping. >>>> So

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Stefano Stabellini
y > > > > checking for GNTMAP_application_map in map_ops? > > > > Otherwise I would keep the boolean and rename it to user_mapping. > > > Sounds better, but as far as I see gntdev set that flag in > > > find_grant_ptes, > > > which is called only &

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Zoltan Kiss
ted_physmap) we shouldn't need the m2p_override. So it's safe to assume that we need m2p_override only if kmap_ops != NULL, and we can avoid the extra bool parameter, is that correct? At least with the current users of grant mapping it seems to be true. In which case we don't need the wrappers

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Stefano Stabellini
On Mon, 17 Feb 2014, Zoltan Kiss wrote: > On 16/02/14 18:36, Stefano Stabellini wrote: > > On Wed, 12 Feb 2014, Zoltan Kiss wrote: > > > diff --git a/arch/arm/include/asm/xen/page.h > > > b/arch/arm/include/asm/xen/page.h > > > index e0965ab..4eaeb3f 100644 > > > ---

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-20 Thread Wei Liu
; >>>>This patch contains the new definitions necessary for grant mapping. > >>> > >>>Is this just adding a bunch of (currently) unused functions? That's a > >>>slightly odd way to structure a series. They don't seem to be "generic > >>&g

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-20 Thread Ian Campbell
>>>> This patch contains the new definitions necessary for grant mapping. > >>> > >>> Is this just adding a bunch of (currently) unused functions? That's a > >>> slightly odd way to structure a series. They don't seem to be "generic > >>>

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-20 Thread Ian Campbell
for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem to be generic helpers or anything so it would be more normal to introduce these as they get used -- it's a bit hard to review them out

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-20 Thread Wei Liu
necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem to be generic helpers or anything so it would be more normal to introduce these as they get used -- it's a bit hard to review them out of context

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Stefano Stabellini
On Mon, 17 Feb 2014, Zoltan Kiss wrote: On 16/02/14 18:36, Stefano Stabellini wrote: On Wed, 12 Feb 2014, Zoltan Kiss wrote: diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h index e0965ab..4eaeb3f 100644 --- a/arch/arm/include/asm/xen/page.h +++

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Zoltan Kiss
shouldn't need the m2p_override. So it's safe to assume that we need m2p_override only if kmap_ops != NULL, and we can avoid the extra bool parameter, is that correct? At least with the current users of grant mapping it seems to be true. In which case we don't need the wrappers for gnttab_[un]map_refs

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread David Vrabel
, is that correct? At least with the current users of grant mapping it seems to be true. In which case we don't need the wrappers for gnttab_[un]map_refs as well. Actually the most of m2p_add/remove_override takes effect only if there is a kmap_op parameter, but what about the rest of the code

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Stefano Stabellini
need the m2p_override. So it's safe to assume that we need m2p_override only if kmap_ops != NULL, and we can avoid the extra bool parameter, is that correct? At least with the current users of grant mapping it seems to be true. In which case we don't need the wrappers for gnttab_[un

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread Stefano Stabellini
m2p_override only if kmap_ops != NULL, and we can avoid the extra bool parameter, is that correct? At least with the current users of grant mapping it seems to be true. In which case we don't need the wrappers for gnttab_[un]map_refs as well. Actually the most of m2p_add/remove_override

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-20 Thread David Vrabel
!= NULL, and we can avoid the extra bool parameter, is that correct? At least with the current users of grant mapping it seems to be true. In which case we don't need the wrappers for gnttab_[un]map_refs as well. Actually the most of m2p_add/remove_override takes effect only

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-20 Thread Zoltan Kiss
contains the new definitions necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem to be generic helpers or anything so it would be more normal to introduce these as they get used -- it's a bit hard

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Zoltan Kiss
On 19/02/14 10:05, Ian Campbell wrote: On Tue, 2014-02-18 at 20:36 +, Zoltan Kiss wrote: On 18/02/14 17:06, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Zoltan Kiss
On 18/02/14 17:24, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: + spinlock_t dealloc_lock; + spinlock_t response_lock; Please add comments to both of these describing what bits of the datastructure they are locking. You might find it is clearer to

Re: [Xen-devel] [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-19 Thread David Vrabel
On 19/02/14 09:54, Ian Campbell wrote: > On Tue, 2014-02-18 at 18:46 +, David Vrabel wrote: >> On 18/02/14 17:40, Ian Campbell wrote: >>> On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: @@ -344,8 +346,26 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid,

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Ian Campbell
On Tue, 2014-02-18 at 20:36 +, Zoltan Kiss wrote: > On 18/02/14 17:06, Ian Campbell wrote: > > On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: > >> This patch contains the new definitions necessary for grant mapping. > > > > Is this just adding a bunch o

Re: [Xen-devel] [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-19 Thread Ian Campbell
On Tue, 2014-02-18 at 18:46 +, David Vrabel wrote: > On 18/02/14 17:40, Ian Campbell wrote: > > On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: > >> > >> @@ -344,8 +346,26 @@ struct xenvif *xenvif_alloc(struct device *parent, > >> domid_t domid, > >>vif->pending_prod =

Re: [PATCH net-next v5 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-02-19 Thread Ian Campbell
a > huge perfomance penalty. The classic kernel version of netback used grant > mapping, and to get notified when the page can be unmapped, it used page > destructors. Unfortunately that destructor is not an upstreamable solution. > Ian Campbell's skb fragment destructor patch seri

Re: [PATCH net-next v5 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-02-19 Thread Ian Campbell
perfomance penalty. The classic kernel version of netback used grant mapping, and to get notified when the page can be unmapped, it used page destructors. Unfortunately that destructor is not an upstreamable solution. Ian Campbell's skb fragment destructor patch series [1] tried to solve this problem

Re: [Xen-devel] [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-19 Thread Ian Campbell
On Tue, 2014-02-18 at 18:46 +, David Vrabel wrote: On 18/02/14 17:40, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: @@ -344,8 +346,26 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, vif-pending_prod = MAX_PENDING_REQS; for

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Ian Campbell
On Tue, 2014-02-18 at 20:36 +, Zoltan Kiss wrote: On 18/02/14 17:06, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's

Re: [Xen-devel] [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-19 Thread David Vrabel
On 19/02/14 09:54, Ian Campbell wrote: On Tue, 2014-02-18 at 18:46 +, David Vrabel wrote: On 18/02/14 17:40, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: @@ -344,8 +346,26 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid,

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Zoltan Kiss
On 18/02/14 17:24, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: + spinlock_t dealloc_lock; + spinlock_t response_lock; Please add comments to both of these describing what bits of the datastructure they are locking. You might find it is clearer to

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Zoltan Kiss
On 19/02/14 10:05, Ian Campbell wrote: On Tue, 2014-02-18 at 20:36 +, Zoltan Kiss wrote: On 18/02/14 17:06, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-18 Thread Zoltan Kiss
On 18/02/14 17:06, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem

Re: [Xen-devel] [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-18 Thread David Vrabel
On 18/02/14 17:40, Ian Campbell wrote: > On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: >> >> @@ -344,8 +346,26 @@ struct xenvif *xenvif_alloc(struct device *parent, >> domid_t domid, >> vif->pending_prod = MAX_PENDING_REQS; >> for (i = 0; i < MAX_PENDING_REQS; i++) >>

Re: [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-18 Thread Ian Campbell
On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: > This patch changes the grant copy on the TX patch to grant mapping Both this and the previous patch had a single sentence commit message (I count them together since they are split weirdly and are a single logical change to my eyes). Rea

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-18 Thread Ian Campbell
On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: > > + spinlock_t dealloc_lock; > + spinlock_t response_lock; Please add comments to both of these describing what bits of the datastructure they are locking. You might find it is clearer to group the locks and the things they

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-18 Thread Ian Campbell
On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: > This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem to be "generic helpers" o

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-18 Thread Ian Campbell
On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem to be generic helpers or anything so it would

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-18 Thread Ian Campbell
On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: + spinlock_t dealloc_lock; + spinlock_t response_lock; Please add comments to both of these describing what bits of the datastructure they are locking. You might find it is clearer to group the locks and the things they

Re: [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-18 Thread Ian Campbell
On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch changes the grant copy on the TX patch to grant mapping Both this and the previous patch had a single sentence commit message (I count them together since they are split weirdly and are a single logical change to my eyes). Really

Re: [Xen-devel] [PATCH net-next v5 2/9] xen-netback: Change TX path from grant copy to mapping

2014-02-18 Thread David Vrabel
On 18/02/14 17:40, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: @@ -344,8 +346,26 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, vif-pending_prod = MAX_PENDING_REQS; for (i = 0; i MAX_PENDING_REQS; i++)

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-18 Thread Zoltan Kiss
On 18/02/14 17:06, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch of (currently) unused functions? That's a slightly odd way to structure a series. They don't seem

Re: [PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-17 Thread Zoltan Kiss
On 16/02/14 18:36, Stefano Stabellini wrote: On Wed, 12 Feb 2014, Zoltan Kiss wrote: diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h index e0965ab..4eaeb3f 100644 --- a/arch/arm/include/asm/xen/page.h +++ b/arch/arm/include/asm/xen/page.h @@ -97,16 +97,15 @@

<    4   5   6   7   8   9   10   11   12   13   >