From: "Eric Trudeau" Subject: Re: [XenARM] XEN tools for ARM with Virtualization Extensions Date: Wed, 10 Jul 2013 15:33:18 +0000 Message-ID: References: <1372237802.18901.115.camel@zakaz.uk.xensource.com> <1372265106.7337.107.camel@zakaz.uk.xensource.com> <1372350862.8976.35.camel@zakaz.uk.xensource.com> <51CC9398.4060301@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Julien Grall , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org > > What functions should I call to implement XEN_DOMCTL_bind_pt_irq on > ARM? > > I think we would probably need to introduce a new hypercall because > neither PHYSDEVOP_map_pirq nor XEN_DOMCTL_bind_pt_irq fit our model > very well. > The first one creates the mapping (as in allows the guest to receive the > interrupt but only as an event channel notification), the second one > sets up the emulation. > For HVM guests on x86 we need to call both. For PV guests, just the > first one. > > On ARM we would need to introduce something similar to > PHYSDEVOP_map_pirq that instead of returning a pirq returns the guest > irq. > We could actually use PHYSDEVOP_map_pirq, if we mandate that on ARM pirq > means guest irq, but I wouldn't recommend it because it could lead to > confusion. Will I need to implement other PHYSDEVOP_* operations, like x86 which has PHYSDEVOP_eoi and PHYSDEVOP_irq_status_query?