Re: [Qemu-devel] [PATCH v6 16/18] intel_iommu: do replay when context invalidate

2017-02-07 Thread Peter Xu
On Tue, Feb 07, 2017 at 02:16:15PM +0800, Jason Wang wrote: > > > On 2017年02月03日 16:22, Peter Xu wrote: > >Before this one we only invalidate context cache when we receive context > >entry invalidations. However it's possible that the invalidation also > >contains a domain switch (only if cache-m

Re: [Qemu-devel] [PATCH v6 16/18] intel_iommu: do replay when context invalidate

2017-02-06 Thread Jason Wang
On 2017年02月03日 16:22, Peter Xu wrote: Before this one we only invalidate context cache when we receive context entry invalidations. However it's possible that the invalidation also contains a domain switch (only if cache-mode is enabled for vIOMMU). In that case we need to notify all the regist

[Qemu-devel] [PATCH v6 16/18] intel_iommu: do replay when context invalidate

2017-02-03 Thread Peter Xu
Before this one we only invalidate context cache when we receive context entry invalidations. However it's possible that the invalidation also contains a domain switch (only if cache-mode is enabled for vIOMMU). In that case we need to notify all the registered components about the new mapping. Si