search for: hv_call_deposit_pages

Displaying 1 result from an estimated 1 matches for "hv_call_deposit_pages".

2020 Sep 15
0
[PATCH RFC v1 09/18] x86/hyperv: provide a bunch of helper functions
...gt; (b) ? (a) : (b)) > +#define MIN(a, b) ((a) < (b) ? (a) : (b)) Nit: include/linux/kernel.h defines min() and max() macros with type checking. > + > +/* > + * Deposits exact number of pages > + * Must be called with interrupts enabled > + * Max 256 pages > + */ > +int hv_call_deposit_pages(int node, u64 partition_id, u32 num_pages) > +{ > + struct page **pages; > + int *counts; > + int num_allocations; > + int i, j, page_count; > + int order; > + int desired_order; > + int status; > + int ret; > + u64 base_pfn; > + struct hv_deposit_memory *input_page...