>>> Konrad Rzeszutek Wilk <konrad.w...@oracle.com> 04/14/16 12:03 AM >>>
>Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
>Suggested-by: Jan Beulich <jbeul...@suse.com>
>Acked-by: Julien Grall <julien.gr...@arm.com> [ARM]
>Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com>

Is that really the case? I think it was Andrew who suggested to not expose a
second variant of vfree(), as the address type can be inferred from the address.

>@@ -52,27 +55,30 @@ void *vm_alloc(unsigned int nr, unsigned int align)
     >else if ( align & (align - 1) )
         >align &= -align;
 >
>+    if ( !vm_base[t] )
>+        return NULL;

How about ASSERT()ing that t is in range before using it as an array index?

With the address/type parameter redundancy dropped at the very least from
the non-internal functions, I think everything else here is fine.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to