Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-26 Thread Andre Przywara
Hi, On 25/05/17 21:44, Stefano Stabellini wrote: > On Thu, 25 May 2017, Julien Grall wrote: >> On 25/05/2017 19:55, Stefano Stabellini wrote: >>> On Wed, 24 May 2017, Andre Przywara wrote: Hi, On 24/05/17 10:56, Julien Grall wrote: > Hi Andre, > > On 05/24/2017 10:10 AM,

Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-25 Thread Stefano Stabellini
On Thu, 25 May 2017, Julien Grall wrote: > On 25/05/2017 19:55, Stefano Stabellini wrote: > > On Wed, 24 May 2017, Andre Przywara wrote: > > > Hi, > > > > > > On 24/05/17 10:56, Julien Grall wrote: > > > > Hi Andre, > > > > > > > > On 05/24/2017 10:10 AM, Andre Przywara wrote: > > > > > On 17/05/

Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-25 Thread Julien Grall
On 25/05/2017 19:55, Stefano Stabellini wrote: On Wed, 24 May 2017, Andre Przywara wrote: Hi, On 24/05/17 10:56, Julien Grall wrote: Hi Andre, On 05/24/2017 10:10 AM, Andre Przywara wrote: On 17/05/17 19:07, Julien Grall wrote: /* * Lookup the address of the Interrupt Translation Table

Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-25 Thread Stefano Stabellini
On Wed, 24 May 2017, Andre Przywara wrote: > Hi, > > On 24/05/17 10:56, Julien Grall wrote: > > Hi Andre, > > > > On 05/24/2017 10:10 AM, Andre Przywara wrote: > >> On 17/05/17 19:07, Julien Grall wrote: > /* > * Lookup the address of the Interrupt Translation Table associated >

Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-24 Thread Andre Przywara
Hi, On 24/05/17 10:56, Julien Grall wrote: > Hi Andre, > > On 05/24/2017 10:10 AM, Andre Przywara wrote: >> On 17/05/17 19:07, Julien Grall wrote: /* * Lookup the address of the Interrupt Translation Table associated with * that device ID. @@ -414,6 +429,133 @@ out_u

Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-24 Thread Julien Grall
Hi Andre, On 05/24/2017 10:10 AM, Andre Przywara wrote: On 17/05/17 19:07, Julien Grall wrote: /* * Lookup the address of the Interrupt Translation Table associated with * that device ID. @@ -414,6 +429,133 @@ out_unlock: return ret; } +/* Must be called with the ITS lock held. */ +

Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-24 Thread Andre Przywara
Hi, On 17/05/17 19:07, Julien Grall wrote: > Hi Andre, > > On 11/05/17 18:53, Andre Przywara wrote: >> The MAPD command maps a device by associating a memory region for >> storing ITEs with a certain device ID. Since it features a valid bit, >> MAPD also covers the "unmap" functionality, which we

Re: [Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-17 Thread Julien Grall
Hi Andre, On 11/05/17 18:53, Andre Przywara wrote: The MAPD command maps a device by associating a memory region for storing ITEs with a certain device ID. Since it features a valid bit, MAPD also covers the "unmap" functionality, which we also cover here. We store the given guest physical addre

[Xen-devel] [PATCH v9 19/28] ARM: vITS: handle MAPD command

2017-05-11 Thread Andre Przywara
The MAPD command maps a device by associating a memory region for storing ITEs with a certain device ID. Since it features a valid bit, MAPD also covers the "unmap" functionality, which we also cover here. We store the given guest physical address in the device table, and, if this command comes fro