]> rtime.felk.cvut.cz Git - jailhouse.git/commit
tools: config-create: exclude kernel-area from mem-allocation
authorBenjamin Block <bebl@mageta.org>
Fri, 7 Nov 2014 17:57:11 +0000 (18:57 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 12 Nov 2014 14:11:14 +0000 (15:11 +0100)
commit1e7e8f89183bc993b0158998595ad2043c46486e
tree393d44eea3048152379a80a817a4f685cf4dc533
parentaf04f8ff1facdbbdf3f3c68c9dd7f37747df4722
tools: config-create: exclude kernel-area from mem-allocation

When allocating memory for jailhouse, we currently don't look at where
the kernel lives on the system. In case our `memmap` overlaps with this
area, the kernel will just ignore the kernel-cmd-option and out generated
configuration will be invalid.

To fix this, the script now looks out for any kernel-region while
parsing the tree from /proc/iomem and splits the parent-region on the
kernels boundaries. This region will then not be considered anymore and
could additionally be handled special in other cases in the future. The
config will contain it as extra memory-region with all rights.

Signed-off-by: Benjamin Block <bebl@mageta.org>
Reviewed-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-config-create