diff options
author | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2011-12-01 15:35:02 +0000 |
---|---|---|
committer | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2011-12-01 15:35:02 +0000 |
commit | de869779a0b7c411a69b787ec01b485492b40f32 (patch) | |
tree | f1fb58a194fbb928a560b40f9c8b58b09daa470a /tools/libxc/xenctrl.h | |
parent | 3a313ac80e9e0316393c8034a32aae34e8f3373c (diff) | |
download | xen-de869779a0b7c411a69b787ec01b485492b40f32.tar.gz xen-de869779a0b7c411a69b787ec01b485492b40f32.tar.bz2 xen-de869779a0b7c411a69b787ec01b485492b40f32.zip |
tools/libxc: introduce xc_memalign in xc_{minios,linux,solaris,netbsd}.c
Move (page aligned) buffer allocations in {os}_privcmd_alloc_hypercall_buffer
into a global function xc_memalign. This API is also used by Remus
compression code to allocate compression caches that need to be page aligned.
Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Brendan Cully <brendan@cs.ubc.ca>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrl.h')
-rw-r--r-- | tools/libxc/xenctrl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 9e2a4373f4..ee482f28ab 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -1156,6 +1156,8 @@ int xc_lockprof_query(xc_interface *xch, uint64_t *time, xc_hypercall_buffer_t *data); +void *xc_memalign(xc_interface *xch, size_t alignment, size_t size); + /** * Memory maps a range within one domain to a local address range. Mappings * should be unmapped with munmap and should follow the same rules as mmap |