]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: map the zero page to the full hypervisor memory region
authorAntonios Motakis <antonios.motakis@huawei.com>
Thu, 28 Apr 2016 14:01:28 +0000 (16:01 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 28 Apr 2016 15:18:38 +0000 (17:18 +0200)
commit4a3317bb021881a1f8e96f4b7e3ba5c0be3ea70c
tree1e2749ef66abe63cd27959b0cdec8adbd825c626
parent268ed90e79b1c336f27e5e483ab2f6440385dd93
core: map the zero page to the full hypervisor memory region

During initialization, in init_early, the hypervisor maps the
memory used by the hypervisor with empty pages for the root cell.
However, if the root cell tries to access the region used by the
hypervisor, this is only safe if both sides agree on PAGE_SIZE.
It is a long shot to try to guess the granularity used by the
root cell; the safest bet is to map the full range that has been
allocated for the hypervisor to use.

Signed-off-by: Antonios Motakis <antonios.motakis@huawei.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/setup.c