#
7861ecd1 |
| 19-Aug-2024 |
Andrew Turner <andrew@FreeBSD.org> |
arm64/vmm: Teach the switcher about new registers
To support booting the kernel in EL2 some of the EL0 and EL1 registers are changed to point to an EL2 version. To get access to the EL0/EL1 version
arm64/vmm: Teach the switcher about new registers
To support booting the kernel in EL2 some of the EL0 and EL1 registers are changed to point to an EL2 version. To get access to the EL0/EL1 version of these registers we need to use the new EL02 and EL12 registers, e.g. to access elr_el1 from the host we would use elr_el12.
Add macros that can be different on VHE vs non-VHE code so these registers can be accessed in the correct way.
Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46078
show more ...
|
#
4b6c9f84 |
| 19-Aug-2024 |
Andrew Turner <andrew@FreeBSD.org> |
arm64/vmm: Move nVHE-only code to the new file
There are some functions that are only needed in non-VHE mode. These are used to handle hypervisor calls from the kernel, and to manage the page tables
arm64/vmm: Move nVHE-only code to the new file
There are some functions that are only needed in non-VHE mode. These are used to handle hypervisor calls from the kernel, and to manage the page tables in EL2. As these won't be used by the VHE code we can move them to the non-VHE specific files.
Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46073
show more ...
|
#
3d61bcf1 |
| 19-Aug-2024 |
Andrew Turner <andrew@FreeBSD.org> |
arm64/vmm: Start to extract code not needed by VHE
We can share some of the vmm code between VHE and non-VHE modes. To support this create new files that include the common code and create macros to
arm64/vmm: Start to extract code not needed by VHE
We can share some of the vmm code between VHE and non-VHE modes. To support this create new files that include the common code and create macros to name what will be the common functions.
Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46072
show more ...
|