HVC

Hypervisor Call 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 value 0x16, and the value of the immediate argument.

313029282726252423222120191817161514131211109876543210
11010100000imm1600010
opcop2LL

HVC #<imm>

if !HaveEL(EL2) then UNDEFINED; bits(16) imm = 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; if PSTATE.EL == EL1 && !EL2Enabled() then UNDEFINED; if !HaveEL(EL3) && HCR_EL2.HCD == '1' then UNDEFINED; if HaveEL(EL3) && SCR_EL3.HCE == '0' then UNDEFINED; AArch64.CallHypervisor(imm);


Internal version only: aarchmrs v2024-03_relA, pseudocode v2024-03_rel, sve v2024-03_rel ; Build timestamp: 2024-03-26T09:45

Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.