]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tools: add hint how to change kernel cmd line
authorDmitry Voytik <dmitry.voytik@huawei.com>
Tue, 4 Aug 2015 08:43:03 +0000 (10:43 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 12 Aug 2015 11:35:20 +0000 (13:35 +0200)
Add hint how to modify kernel command line when memmap reservation
is less than needed.

Signed-off-by: Dmitry Voytik <dmitry.voytik@huawei.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-config-create

index 1fc1f6deea67b47a05169db774a3d00885f6b9d8..3e653151a5b8f1b65422ee869a7e2e40cf9715ee 100755 (executable)
@@ -1023,7 +1023,8 @@ if ourmem is None:
     ourmem = alloc_mem(regions, total)
 elif (total > ourmem[1]):
     raise RuntimeError('Your memmap reservation is too small you need >="' +
-                       hex(total) + '"')
+                       hex(total) + '". Hint: your kernel cmd line needs '
+                       '"memmap=' + hex(total) + '$' + hex(ourmem[0]) + '"')
 
 hvmem[0] = ourmem[0]