aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-02-19 10:49:53 +0100
committerJan Beulich <jbeulich@suse.com>2013-02-19 10:49:53 +0100
commitfb034f42648ecac835a1666def468f673edd2725 (patch)
treeb8cd2374d3fe0e45a86580bed0545b71aac05eb5 /Config.mk
parentd551606308f3cbcce58a32a0850d1c4a8f6d2088 (diff)
downloadxen-fb034f42648ecac835a1666def468f673edd2725.tar.gz
xen-fb034f42648ecac835a1666def468f673edd2725.tar.bz2
xen-fb034f42648ecac835a1666def468f673edd2725.zip
xmalloc: make close-to-PAGE_SIZE allocations more efficient
Rather than bumping their sizes to slightly above (a multiple of) PAGE_SIZE (in order to store tracking information), thus requiring a non-order-0 allocation even when no more than a page is being requested, return the result of alloc_xenheap_pages() directly, and use the struct page_info field underlying PFN_ORDER() to store the actual size (needed for freeing the memory). This leverages the fact that sub-allocation of memory obtained from the page allocator can only ever result in non-page-aligned memory chunks (with the exception of zero size allocations with sufficiently high alignment being requested, which is why zero-size allocations now get special cased). Use the new property to simplify allocation of the trap info array for PV guests on x86. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'Config.mk')
0 files changed, 0 insertions, 0 deletions