Received: from eggs.gnu.org ([209.51.188.92]:37841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEt3K-000178-OJ for qemu-devel@nongnu.org; Fri, 12 Apr 2019 06:05:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEt3J-0003vO-Pj for qemu-devel@nongnu.org; Fri, 12 Apr 2019 06:04:58 -0400 From: Eric Auger Date: Fri, 12 Apr 2019 12:03:33 +0200 Message-Id: <20190412100354.6409-7-eric.auger@redhat.com> In-Reply-To: <20190412100354.6409-1-eric.auger@redhat.com> References: <20190412100354.6409-1-eric.auger@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC v3 06/27] memory: add IOMMU_ATTR_MSI_TRANSLATE IOMMU memory region attribute List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger.pro@gmail.com, eric.auger@redhat.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org Cc: alex.williamson@redhat.com, mst@redhat.com, jean-philippe.brucker@arm.com, peterx@redhat.com, yi.l.liu@intel.com, vincent.stehle@arm.com We introduce a new IOMMU Memory Region attribute, IOMMU_ATTR_MSI_TRANSLAT= E which tells whether the virtual IOMMU translates MSIs. ARM SMMU will expose this attribute since, as opposed to Intel DMAR, MSIs are translated as any other DMA requests. Signed-off-by: Eric Auger --- include/exec/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/exec/memory.h b/include/exec/memory.h index e4ee1d8b9b..ac4d06379f 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -206,6 +206,7 @@ struct MemoryRegionOps { enum IOMMUMemoryRegionAttr { IOMMU_ATTR_SPAPR_TCE_FD, IOMMU_ATTR_VFIO_NESTED, + IOMMU_ATTR_MSI_TRANSLATE, }; =20 /** --=20 2.20.1