Hi,

I'm trying to route all the physical interrupts to the guest domain rather
than being trapped in the Xen. I would like to know what is the right way
to do that?

I know that HCR_IMO bit in the HCR_EL2 register is supposed to be for
routing the interrupts to the guest (Routing to EL1 instead of EL2).
link to the datasheet:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0500d/CIHJHAAG.html

So, I have tried doing the following in the leave_hypervisor_tail. I run a
simple hypercall and do the following lines before return (which is I guess
the last point of exit to the guest from hypervisor):
---------------------
*current->arch.hcr_el2 &= ~HCR_IMO;*
*WRITE_SYSREG(current->arch.hcr_el2, HCR_EL2);*
*isb();*
*----------------------*


*It looks like to be doing it right for all the vcpus but gets stuck after
return from leave_hypervisor_tail for the last vcpu.*

Any help is appreciated,
Thanks,


-- 
Saeed Mirzamohammadi
PhD Student
Department of Computer Science
University of California, Irvine
Irvine, CA 92617
sa...@uci.edu <smirz...@uci.edu>
http://www.ics.uci.edu/~saeed/ <http://www.ics.uci.edu/~smirzamo/>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to