Re: [Xen-devel] [PATCH v11 25/34] ARM: vITS: handle MAPD command

2017-06-13 Thread Stefano Stabellini
On Fri, 9 Jun 2017, Andre Przywara wrote: > @@ -375,6 +390,131 @@ out_unlock: > return ret; > } > > +/* Must be called with the ITS lock held. */ > +static int its_discard_event(struct virt_its *its, > + uint32_t vdevid, uint32_t vevid) > +{ > +struct pending

[Xen-devel] [PATCH v11 25/34] ARM: vITS: handle MAPD command

2017-06-09 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