Re: [Qemu-devel] [PULL v5 26/57] x86-iommu: introduce IEC notifiers

2016-07-31 Thread Peter Xu
On Sun, Jul 31, 2016 at 02:01:26PM +0200, Jan Kiszka wrote: [...] > Yes, there has to be a generic handle for each translation result an > IOMMU generated. This handle can be stored on the consumer side along > with the translation request. How a handle is generated should be > completely up to t

Re: [Qemu-devel] [PULL v5 26/57] x86-iommu: introduce IEC notifiers

2016-07-31 Thread Jan Kiszka
On 2016-07-31 05:59, Peter Xu wrote: > On Sat, Jul 30, 2016 at 09:52:48AM +0200, Jan Kiszka wrote: > > [...] > >>> +/** >>> + * x86_iommu_iec_notify_all - Notify IEC invalidations >>> + * @iommu: IOMMU device that sends the notification >>> + * @global: whether this is a global invalidation. If t

Re: [Qemu-devel] [PULL v5 26/57] x86-iommu: introduce IEC notifiers

2016-07-30 Thread Peter Xu
On Sat, Jul 30, 2016 at 09:52:48AM +0200, Jan Kiszka wrote: [...] > > +/** > > + * x86_iommu_iec_notify_all - Notify IEC invalidations > > + * @iommu: IOMMU device that sends the notification > > + * @global: whether this is a global invalidation. If true, @index > > + * and @mask are un

Re: [Qemu-devel] [PULL v5 26/57] x86-iommu: introduce IEC notifiers

2016-07-30 Thread Jan Kiszka
Sorry, only noticed this now in a discussion with David over the AMD IOMMU: On 2016-07-21 19:53, Michael S. Tsirkin wrote: > From: Peter Xu > > This patch introduces x86 IOMMU IEC (Interrupt Entry Cache) > invalidation notifier list. When vIOMMU receives IEC invalidate > request, all the regist

[Qemu-devel] [PULL v5 26/57] x86-iommu: introduce IEC notifiers

2016-07-21 Thread Michael S. Tsirkin
From: Peter Xu This patch introduces x86 IOMMU IEC (Interrupt Entry Cache) invalidation notifier list. When vIOMMU receives IEC invalidate request, all the registered units will be notified with specific invalidation requests. Intel IOMMU is the first provider that generates such a event. Signe