Re: [Qemu-devel] [PATCH v12 13/27] intel_iommu: Add support for PCI MSI remap

2016-07-21 Thread Peter Xu
On Thu, Jul 21, 2016 at 08:45:30PM +0300, Michael S. Tsirkin wrote: > On Thu, Jul 14, 2016 at 01:56:22PM +0800, Peter Xu wrote: > > This patch enables interrupt remapping for PCI devices. > > > > To play the trick, one memory region "iommu_ir" is added as child region > > of the original iommu mem

Re: [Qemu-devel] [PATCH v12 13/27] intel_iommu: Add support for PCI MSI remap

2016-07-21 Thread Michael S. Tsirkin
On Thu, Jul 14, 2016 at 01:56:22PM +0800, Peter Xu wrote: > This patch enables interrupt remapping for PCI devices. > > To play the trick, one memory region "iommu_ir" is added as child region > of the original iommu memory region, covering range 0xfeeX (which is > the address range for APIC).

[Qemu-devel] [PATCH v12 13/27] intel_iommu: Add support for PCI MSI remap

2016-07-13 Thread Peter Xu
This patch enables interrupt remapping for PCI devices. To play the trick, one memory region "iommu_ir" is added as child region of the original iommu memory region, covering range 0xfeeX (which is the address range for APIC). All the writes to this range will be taken as MSI, and translation