xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Routing physical interrupts to EL1
@ 2018-07-06  3:51 Saeed Mirzamohammadi
  2018-07-06 13:13 ` Julien Grall
  0 siblings, 1 reply; 6+ messages in thread
From: Saeed Mirzamohammadi @ 2018-07-06  3:51 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1144 bytes --]

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
saeed@uci.edu <smirzamo@uci.edu>
http://www.ics.uci.edu/~saeed/ <http://www.ics.uci.edu/~smirzamo/>

[-- Attachment #1.2: Type: text/html, Size: 4393 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-02 19:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06  3:51 Routing physical interrupts to EL1 Saeed Mirzamohammadi
2018-07-06 13:13 ` Julien Grall
2018-07-07 19:32   ` Saeed Mirzamohammadi
2018-07-07 21:25     ` Julien Grall
2018-08-02 19:14       ` Saeed Mirzamohammadi
2018-08-02 19:52         ` Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).