Messages in this thread | | | Date | Tue, 17 Jul 2012 03:09:29 -0400 | From | Jon Masters <> | Subject | Re: [PATCH 00/36] AArch64 Linux kernel port |
| |
On 07/16/2012 04:24 AM, Avi Kivity wrote:
> Can the same kernel image run in both EL1 and EL2? I noticed some .if > ELs in the assembler files. I guess they could be compiled multiple > times and the correct version chosen at runtime, or patched up like x86 > does with alternative().
> One of the advantages kvm has to Linux distributors is that the same > kernel image can be used the hypervisor, guest, and bare metal. I'd > like to preserve that for arm64.
The idea is that you would always enter at EL2 and then drop privilege down to EL1 if you're not doing virt. That achieves effectively the same thing that you get on x86. The virtualization in AArch64 is designed more from the POV of separate hypervisors like Xen so we just need to make sure we always start with enough privilege.
Jon.
| |