]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
libxc: correct memory range check in domain builder
authorJuergen Gross <jgross@suse.com>
Mon, 8 Feb 2016 14:23:52 +0000 (15:23 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 8 Feb 2016 15:28:21 +0000 (15:28 +0000)
commitfe52f6a47ed09cf0e6a760e0858bdbb6bf71ceb2
treedaf44c4d1b338c0f7b725629ec39969115614129
parentfb24954e51e21583241f2ce93db40f4057823066
libxc: correct memory range check in domain builder

Commit 81a76e4b12961a9f54f5021809074196dfe6dbba ("libxc: rework of
domain builder's page table handler") introduced a regression with
checking the required memory size of the domain. The needed maximum pfn
of the initial kernel mapping was added to the currently last used pfn
resulting in doubling the estimated memory need.

Correct the calculation of the last needed pfn to enable booting of
small domains again.

Reported-by: Anthony Perard <anthony.perard@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_dom_x86.c