]> xenbits.xensource.com Git - people/liuw/stubdom.git/commit
libxc: reorganize domain builder guest memory allocator
authorJuergen Gross <jgross@suse.com>
Thu, 12 Nov 2015 13:43:28 +0000 (14:43 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 16 Nov 2015 13:18:51 +0000 (13:18 +0000)
commite9de1edf24c944f2339428f7a86800442d2a436e
treed6bc43fbdfe915d83dad1458f23eb0a1940ba2b8
parent917103194c420cec8193bd4afb87dd138f4a4a33
libxc: reorganize domain builder guest memory allocator

Guest memory allocation in the domain builder of libxc is done via
virtual addresses only. In order to be able to support preallocated
areas not virtually mapped reorganize the memory allocator to keep
track of allocated pages globally and in allocated segments.

This requires an interface change of the allocate callback of the
domain builder which currently is using the last mapped virtual
address as a parameter. This is no problem as the only user of this
callback is stubdom/grub/kexec.c using this virtual address to
calculate the last used pfn.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
grub/kexec.c