Skip to contentSkip to conversation

EL2\EL3 support for Aarch64

Qemu-devel Sergey Smolov 3 participants 3 messages May 18, 2017 – May 30, 2017

lore
Share & tools
lore
#0 lore raw

Hello, List!

Could you tell me, what is the current state for EL2\EL3 (Aarch64)?
Whether they are fully supported, or not?
Am I need to use any command line options to enable them for Aarch64 assembler programs simulation?

Thanks in advance!

Signature · 3 lines
Sincerely yours,
Sergey Smolov
Institute for System Programming of the Russian Academy of Sciences
#1 lore raw
Quoted 6 lines · Sergey Smolov

Hello, List!

Could you tell me, what is the current state for EL2\EL3 (Aarch64)? Whether they are fully supported, or not?
Am I need to use any command line options to enable them for Aarch64 assembler programs simulation?

Sure you can use both. To enable EL2 support:

  qemu-system-aarch64 ${QEMU_OPTS} \
    -machine gic-version=3 \
    -machine virtualization=true

To boot in secure mode you'll need to use -bios and boot a secure firmware (like OPTEE for example).

Quoted 2 lines

Thanks in advance!

--
Alex Bennée

#2 lore raw
Quoted 10 lines · Alex Bennée
Quoted 6 lines · Sergey Smolov

Hello, List!

Could you tell me, what is the current state for EL2\EL3 (Aarch64)? Whether they are fully supported, or not?
Am I need to use any command line options to enable them for Aarch64 assembler programs simulation?

Quoted 8 lines

Sure you can use both. To enable EL2 support:

  qemu-system-aarch64 ${QEMU_OPTS} \
    -machine gic-version=3 \
    -machine virtualization=true

To boot in secure mode you'll need to use -bios and boot a secure firmware (like OPTEE for example).

You also need -machine secure=true to turn on EL3 in the virt board.

NB that EL2 is currently only supported (1) for AArch64 EL2 and
(2) with GICv3, not for AArch32 EL2 or with GICv2.

thanks
-- PMM