tools/dombuilder: Remove clear_page() from xc_dom_boot.c
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 12 Oct 2017 19:19:06 +0000 (20:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 2 Nov 2017 16:47:10 +0000 (16:47 +0000)
commit86cf189a957129ea1ad6468fe9a0887b9e2819f3
treeb3a96b1a8312b52a6030e2bcc89501bbe3a171b5
parent716273c94077e354194c7236623fe3dfa34572d3
tools/dombuilder: Remove clear_page() from xc_dom_boot.c

pfn 0 is a legitimate (albeit unlikely) frame to use, so skipping it is wrong.
This behaviour appears to exists simply to cover the fact that zero is the
default value of an uninitialised field in dom.

ARM already clears the frames at the point that the pfns are allocated,
meaning that the added clear_page() is wasteful.  Alter x86 to match ARM and
clear the page when it is allocated.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Tested-by: Julien Grall <julien.grall@arm.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
tools/libxc/xc_dom_arm.c
tools/libxc/xc_dom_boot.c
tools/libxc/xc_dom_x86.c