|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH net-next v2 2/9] xen-netback: Change TX path from grant copy to mapping
On 17/12/13 21:49, Konrad Rzeszutek Wilk wrote: On Thu, Dec 12, 2013 at 11:48:10PM +0000, Zoltan Kiss wrote: Yep, schedule_timeout() would be nicer indeed But then what would you answer to the guest? You can't shoot the shared ring until there is an outstanding slot. On the other hand, doing a copy would just move the memory leak into the backend, which could be problematic if a guest figures out how to make a packet which can get stucked somewhere in the backend.+ if (unmap_timeout > 9 && + net_ratelimit()) + netdev_err(vif->dev, + "Page still granted! Index: %x\n", i); + } + } + + free_xenballooned_pages(MAX_PENDING_REQS, vif->mmap_pages);How about just stashing those pages on a 'I can't free them' list that will keep them forever. And if that list gets truly large then switch back to grant_copy? Zoli _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |