>>> On 02.06.16 at 00:31, <andrew.coop...@citrix.com> wrote: > On 01/06/2016 23:24, Julien Grall wrote: >> free_xenheap_pages already tolerates NULL (even if an order != 0). Is >> there any reason to not do the same for free_domheap_pages? > > The xenheap allocation functions deal in terms of plain virtual > addresses, while the domheap functions deal in terms of struct page_info *. > > Overall, this means that the domheap functions have a more restricted > input/output set than their xenheap variants. > > As there is already precedent with xenheap, making domheap tolerate NULL > is probably fine, and indeed the preferred course of action.
I disagree, for the very reason you mention above. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel