These are already arch specific, so just use the appropriate
interfaces (as determined by looking at the xc_memalign backend).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
size_t size = npages * XC_PAGE_SIZE;
void *p;
- p = xc_memalign(xcall, XC_PAGE_SIZE, size);
- if (!p)
+ ret = posix_memalign(&p, XC_PAGE_SIZE, size);
+ if ( ret != 0 || !p )
return NULL;
if ( mlock(p, size) < 0 )
void *osdep_alloc_hypercall_buffer(xencall_handle *xcall, size_t npages)
{
- return xc_memalign(xcall, XC_PAGE_SIZE, npages * XC_PAGE_SIZE);
+ return memalign(XC_PAGE_SIZE, npages * XC_PAGE_SIZE);
}
void osdep_free_hypercall_buffer(xencall_handle *xcall, void *ptr,