|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [xen-devel][vNUMA v2][PATCH 3/8] Basic cpumap utilities
Dulloor wrote: Implement basic utility functions to manipulate bitmasks. Used in later patches. -dulloor Signed-off-by : Dulloor <dulloor@xxxxxxxxx> In general this looks OK, although a bit too sophisticated for my personal taste. Only some minor comments: It seems that these functions are somewhat generic, so it may be worth to create a generic interface instead and somehow tie the connection to xenctl_cpumap later with the instantiation. The generic functions could be prefixed with xc_bitmap_*. QEMU is about to also get a generic bitmap library: http://lists.gnu.org/archive/html/qemu-devel/2010-08/msg00517.html maybe one could leverage this. Shouldn't we observe the special case with different source length here?
If one bitmap contains garbage after it's end, then the result would be
bogus. I think the bitmap or'ing should be stopped after both input
bitmaps came to an end. I think xc_cpumap_setall() does it correct.
We should stop counting after hitting the maximum specified length,
otherwise possible garbage bits would be counted in.
Isn't that line redundant? + sep = ","; + } + return len; +} Regards, Andre. -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448-3567-12 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |