]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel-iommu: Redefine macros to enable supporting 48 bit address width
authorPrasad Singamsetty <prasad.singamsetty@oracle.com>
Tue, 14 Nov 2017 23:13:49 +0000 (18:13 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:05 +0000 (20:45 -0500)
commitd45364e6d4b7125c9d2abac6f63eec509316195f
tree492ce06a8fcd84712a9921467dc7f7b5588894bc
parent7128bcb2216b2d7ea39e2374952f43b9e51461b2
intel-iommu: Redefine macros to enable supporting 48 bit address width

The current implementation of Intel IOMMU code only supports 39 bits
host/iova address width so number of macros use hard coded values based
on that. This patch is to redefine them so they can be used with
variable address widths. This patch doesn't add any new functionality
but enables adding support for 48 bit address width.

Signed-off-by: Prasad Singamsetty <prasad.singamsety@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 92e5d85e8345a22e87eda940ffe0f6422eb45360)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_internal.h
include/hw/i386/intel_iommu.h