 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] [linux-ppc-2.6] [XEN][POWERPC] Use a bitmap to manage the foreign page area
 Thanks for the watchful eye On Nov 9, 2006, at 4:49 PM, Muli Ben-Yehuda wrote: On Thu, Nov 09, 2006 at 12:02:45AM +0000, Xen patchbot-linux- ppc-2.6 wrote: ACK + if (bit >= foreign_map_pgs) + return NULL;I would print a message that the allocator has been exhausted here - it's a common source of bugs. I'd prefer that in the caller report this, like any other allocator. Also, tiny optimization, but perhaps you next fit rather than first fit? What is the optimization here? Some arches _do_ have different implementation for the 2, on PPC I would save a #define. If you are suggesting I try to find the "next" zero bit if the first attempt does not work, I was thinking of that and IMHO the optimization is just not worth even the that trivial complication since we are only allocating on dev/mod init and freeing on dev/mod fini. 
 ACK -JX _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |