commit | 5a13c34b2ad3b975b473fd60258de60ea8fe2b14 | [log] [tgz] |
---|---|---|
author | Raghu Krishnamurthy <raghu.ncstate@icloud.com> | Sat Feb 13 15:49:29 2021 -0800 |
committer | Olivier Deprez <olivier.deprez@arm.com> | Fri Sep 17 10:49:44 2021 +0200 |
tree | 0b8f754dea8ff09d00b24802aeefed71ad57b59e | |
parent | 785d52fae04c99627824ee1b9f2159dfd2ea930b [diff] |
VHE: Update cpu code to allow for el0 partition execution To run a el0 partitions vcpu the following changes are required: 1) HCR_EL2.TGE bit always needs to be set. 2) SPSR needs to be set to EL0t mode. 3) ttbr0_el2 needs to switched to the appropriate table. To do this a new vcpu field for ttbr0_el2 is added. For normal VM's, ttbr0_el2 is the same as the hypervisor page tables and for el0 partition's, the appropriate page table and asid are used. ttbr0_el2 is now loaded on every exit from el2. Change-Id: I92a44874d820080a8e9a66dc0b6a628bf94d0b9d Signed-off-by: Raghu Krishnamurthy <raghu.ncstate@gmail.com>
Hafnium is a hypervisor, initially supporting aarch64 (64-bit Armv8 CPUs).
Get in touch and keep up-to-date at hafnium@lists.trustedfirmware.org. See feature requests and bugs on our bug dashboard.
To jump in and build Hafnium, follow the getting started instructions.
If you want to contribute to the project, see details of how we accept contributions.
More documentation is available on: