Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: ioremap the hypervisor firmware to any kernel address
At the moment the Linux driver maps the Jailhouse binary to JAILHOUSE_BASE. The underlying assumption is that Linux may map the firmware (in the Linux kernel space), to the same virtual address it has been built to run from. This assumption is unworkable on ARMv8 processors running in AArch64 mode. Kernel memory is allocated in a high address region, that is not addressable from EL2, where the hypervisor will run from. This patch removes the assumption, by introducing the JAILHOUSE_BORROW_ROOT_PT define, which signals the behavior of the current architectures. We also turn the entry point in the header, into an offset from the Jailhouse load address, so we can enter the image regardless of where it will be mapped. Signed-off-by: Antonios Motakis <antonios.motakis@huawei.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
- Loading branch information
1 parent
7287a5a
commit eda9305
Showing
4 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters