amd_iommu: Add support for pass though mode
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Fri, 27 Sep 2024 17:29:10 +0000 (12:29 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Nov 2024 21:03:24 +0000 (16:03 -0500)
commitc1f46999ef506d9854534560a94d02cf3cf9edd1
tree47b1a8b78eee9678b241e3857ba0e0d83434bec2
parent2e6f051cfc58e69dcb392cd245d8f01b0c2e963f
amd_iommu: Add support for pass though mode

Introduce 'nodma' shared memory region to support PT mode
so that for each device, we only create an alias to shared memory
region when DMA-remapping is disabled.

Reviewed-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Santosh Shukla <santosh.shukla@amd.com>
Message-Id: <20240927172913.121477-3-santosh.shukla@amd.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/amd_iommu.c
hw/i386/amd_iommu.h