Re: How to trap a real interrupt to EL2 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
CPSR.I is 1 , but I do not think I can just clear it, if that what you mean...
 
Chrtistoph

You deactivate traps in kvm_vcpu_return( called from el1_irq).  
Does it mean we cannot exit-enter the hypervisor when hcr_el2.IMO is enabled ?

thx



   

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

[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux