Rolf Neugebauer
2009-Mar-12 19:43 UTC
[Xen-devel] [PATCH] minios: allocate machine contiguous pages
This is a port of XenLinux xen_alloc_contig_memory() to mini-os. A sufficiently privileged mini-os guest can exchange a small number of its pages with machine contiguous pages. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@netronome.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Samuel Thibault
2009-Mar-12 23:42 UTC
[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@lists.xensource.com http://lists.xensource.com/xen-devel