]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core, driver: Pass rounded-up core size in hypervisor header
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 25 Jan 2016 17:20:37 +0000 (18:20 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 25 Jan 2016 17:23:51 +0000 (18:23 +0100)
commit84432e3aed420288f631182504d3776c18dac60c
treebee41e66aeffeff559e61c56863a1942cfbf1753
parent3f7b8249d8fa7069ddad882239292aae321caf0a
core, driver: Pass rounded-up core size in hypervisor header

Hypervisor and root kernel may have different ideas about PAGE_SIZE.
This will cause wrong hypervisor core size calculations as seen on arm64
with 64K Linux PAGE_SIZE.

Avoid this trap by moving the round-up into the hypervisor code, passing
a ready-to-be-used size value in the header.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
driver/main.c
hypervisor/hypervisor.lds.S
hypervisor/include/jailhouse/header.h
hypervisor/setup.c