Re: [Xen-devel] [PATCH v9 21/28] ARM: vITS: handle MAPTI command

2017-05-23 Thread Stefano Stabellini
On Tue, 23 May 2017, Andre Przywara wrote: > Hi, > > On 23/05/17 00:39, Stefano Stabellini wrote: > > On Thu, 11 May 2017, Andre Przywara wrote: > >> @@ -556,6 +583,93 @@ static int its_handle_mapd(struct virt_its *its, > >> uint64_t *cmdptr) > >> return ret; > >> } > >> > >> +static int

Re: [Xen-devel] [PATCH v9 21/28] ARM: vITS: handle MAPTI command

2017-05-23 Thread Andre Przywara
Hi, On 23/05/17 00:39, Stefano Stabellini wrote: > On Thu, 11 May 2017, Andre Przywara wrote: >> @@ -556,6 +583,93 @@ static int its_handle_mapd(struct virt_its *its, >> uint64_t *cmdptr) >> return ret; >> } >> >> +static int its_handle_mapti(struct virt_its *its, uint64_t *cmdptr) >> +{

Re: [Xen-devel] [PATCH v9 21/28] ARM: vITS: handle MAPTI command

2017-05-22 Thread Stefano Stabellini
On Thu, 11 May 2017, Andre Przywara wrote: > @@ -556,6 +583,93 @@ static int its_handle_mapd(struct virt_its *its, > uint64_t *cmdptr) > return ret; > } > > +static int its_handle_mapti(struct virt_its *its, uint64_t *cmdptr) > +{ > +uint32_t devid = its_cmd_get_deviceid(cmdptr); > +

Re: [Xen-devel] [PATCH v9 21/28] ARM: vITS: handle MAPTI command

2017-05-18 Thread Julien Grall
Hi Andre, On 11/05/17 18:53, Andre Przywara wrote: The MAPTI commands associates a DeviceID/EventID pair with a LPI/CPU pair and actually instantiates LPI interrupts. We connect the already allocated host LPI to this virtual LPI, so that any triggering LPI on the host can be quickly forwarded to

[Xen-devel] [PATCH v9 21/28] ARM: vITS: handle MAPTI command

2017-05-11 Thread Andre Przywara
The MAPTI commands associates a DeviceID/EventID pair with a LPI/CPU pair and actually instantiates LPI interrupts. We connect the already allocated host LPI to this virtual LPI, so that any triggering LPI on the host can be quickly forwarded to a guest. Beside entering the VCPU and the virtual LPI