xen/shim: modify shim_mem parameter behaviour
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 11 Jan 2018 11:41:20 +0000 (11:41 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 16 Jan 2018 18:34:05 +0000 (18:34 +0000)
commit4c543dc0a19400ae016c246f8999d1a6b7f38ddb
tree24584014809c75b127cd43e897d23f71a1f402ea
parentb2245acc60c3e637b6607983cc4817905d30053e
xen/shim: modify shim_mem parameter behaviour

shim_mem will now account for both the memory used by the hypervisor
loaded in memory and the free memory slack given to the shim for
runtime usage.

From experimental testing it seems like the total amount of MiB used
by the shim (giving it ~1MB of free memory for runtime) is:

memory/113 + 20

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
docs/misc/xen-command-line.markdown
xen/arch/x86/dom0_build.c
xen/arch/x86/pv/shim.c