[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: [PATCH] minios: allocate machine contiguous pages



Rolf Neugebauer, le Thu 12 Mar 2009 19:43:57 +0000, a écrit :
> +#define MAX_CONTIG_ORDER 9 /* 2MB */
> +unsigned long alloc_contig_pages(int order, unsigned int addr_bits)
> +{
> +    unsigned long in_frames[1<<MAX_CONTIG_ORDER], out_frames, mfn;
> +    multicall_entry_t call[(1UL << MAX_CONTIG_ORDER)];

Mmm, can't we assume we have a C99 compiler that can just use order
instead of MAX_CONTIG_ORDER?

> +    /* set up arguments for exchange hyper call */
> +    set_xen_guest_handle(exchange.in.extent_start, in_frames);
> +     set_xen_guest_handle(exchange.out.extent_start, &out_frames);

There are mixed tabs and spaces here.

Samuel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.