x86/dom0: use MEMF_no_scrub during Dom0 construction
authorSergey Dyasli <sergey.dyasli@citrix.com>
Thu, 22 Nov 2018 13:30:14 +0000 (14:30 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Nov 2018 13:30:14 +0000 (14:30 +0100)
commitb81b9b9bdbda2ea836b268f9f749663def2dcb25
tree630a23ccd317489f5080e223c3e8a5aedb8c33ac
parenta9400d630b341da544ff355405db779356fe8807
x86/dom0: use MEMF_no_scrub during Dom0 construction

Now that idle scrub is the default option, all memory is marked as dirty
and alloc_domheap_pages() will do eager scrubbing by default. This can
lead to longer Dom0 construction and potentially to a watchdog timeout,
especially on older H/W (e.g. Harpertown).

Pass MEMF_no_scrub to optimise this process since there is little point
in scrubbing memory for Dom0.

Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/hvm/dom0_build.c
xen/arch/x86/pv/dom0_build.c