intel-iommu: introduce Intel IOMMU (VT-d) emulation

Add support for emulating Intel IOMMU according to the VT-d specification for
the q35 chipset machine. Implement the logics for DMAR (DMA remapping) without
PASID support. The emulation supports register-based invalidation and primary
fault logging.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Le Tan 2014-08-16 13:55:38 +08:00 committed by Michael S. Tsirkin
parent 8d7b8cb9c2
commit 1da12ec4c8
4 changed files with 1680 additions and 0 deletions

1257
hw/i386/intel_iommu.c Normal file

File diff suppressed because it is too large Load diff