|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Routing physical interrupts to EL1
Hello, On 07/07/2018 08:32 PM, Saeed Mirzamohammadi wrote: Thanks for your detailed reply.On Fri, Jul 6, 2018 at 6:13 AM, Julien Grall <julien.grall@xxxxxxx <mailto:julien.grall@xxxxxxx>> wrote: Do you include Dom0 in your "one guest domain"? If so, may I ask what is your end goal? Why not booting the OS on baremetal? But I still need Xen for my own hypercalls. I don't need the timer cause I pinned and don't need any vcpu scheduler. Well, Xen still needs interrupts for other things like UART and SMMU. It also needs interrupts to IPI other pCPU such as for softirq, unblocking another vCPU (waiting on an event for instance)... I don't think you can discard interrupts that easily in Xen without some cooperation with the guest. Let's imagine Xen IPIs another pCPU. If interrupts are routed to your guest, this guest will receive the IPIs and will not understand what to do. Based on my understanding, I can only disable the interrupts on ARM all together using the HCR_EL2 register and we can't pick one interrupt to not trap, right? Depends on your interrupts controller. On GICv4, you will be able to directly injected some LPIs (i.e MSI). If you want to route *all* the interrupts, you can map GICC and not GICV to your guest. So when the guest will read IAR, it will read the physical interrupts. SGIs register are already trapped by Xen. They are emulated by writing the corresponding interrupt to the LRs. However, SGIs are not the only interrupt generated by the hypervisor directly. There are also the event channel (a PPI) or any device emulated by the hypervisor (e.g PL011). Trying to remove interrupts from the hypervisor is more a pain compare to the benefits you will gain. You will be better at improving the latency when receiving interrupt (AFAIK this is already be good). Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |