ARM / OFFLINE REFERENCE

On this page
← Home

HVC

Hypervisor call

This instruction causes an exception to EL2. Software executing at EL1 can use this instruction to call the hypervisor to request a service.

The HVC instruction is UNDEFINED:

On executing an HVC instruction, the PE records the exception as a Hypervisor Call exception in ESR_ELx, using the EC syndrome value 0x16, and the value of the immediate argument.

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 1 0 1 0 1 0 0 0 0 0 imm16 0 0 0 1 0
opc op2 LL

Encoding

HVC #<imm>

Decode

if !HaveEL(EL2) then EndOfDecode(Decode_UNDEF); end;
let imm : bits(16) = imm16;

Assembler Symbols

<imm>

Is a 16-bit unsigned immediate, in the range 0 to 65535, encoded in the "imm16" field.

Operation

if PSTATE.EL == EL0 then Undefined(); end;
if PSTATE.EL == EL1 && !EL2Enabled() then Undefined(); end;
if !HaveEL(EL3) && HCR_EL2().HCD == '1' then Undefined(); end;
if HaveEL(EL3) && SCR_EL3().HCE == '0' then Undefined(); end;

AArch64_CallHypervisor(imm);

Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.