]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/intel_iommu.c
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 S. Tsirkin <mst@redhat.com>
Thu, 18 Jan 2018 19:52:38 +0000 (21:52 +0200)
commit92e5d85e8345a22e87eda940ffe0f6422eb45360
treebb4fbf0c20f257017a4bcd2f4129ea736addf77c
parent7de22778e1e25d974bad61fbd00757296e3e421e
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>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_internal.h
include/hw/i386/intel_iommu.h