The entry woken in the vector is IRQ 64-bit EL1 ( same as el1_irq in kvn/hyp.S ).
ESR_EL2.EC = 0x16 -" HVC executed in EL2". It does not change.
Jintack ESR_EL2.EC = 0x16 -" HVC executed in EL2". It does not change.
CPSR.I is 1 , but I do not think I can just clear it, if that what you mean...
You deactivate traps in kvm_vcpu_return( called from el1_irq).
On Tue, Jul 4, 2017 at 11:12 AM, Christoffer Dall <cdall@xxxxxxxxxx> wrote:
On Mon, Jul 03, 2017 at 09:56:06PM +0000, Raz wrote:
> Hey
>
> I am trying to trap any real IRQ into EL2.
> I created a thin hypervisor with mmu enabled and set hcr_el2 as follows:
> hcr_el2= HCR_IMO | HCR_VM | HCR_RW.
>
>
> Now it seems that once I set hcr_el2 to the above value and then exit from
> EL2 I immediately jump back to EL2.
You could read the ESR_EL2 and figure out what caused the exception...
-Christoffer
--
_______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm