]> git.proxmox.com Git - mirror_qemu.git/commit
intel-iommu: add IOTLB using hash table
authorLe Tan <tamlokveer@gmail.com>
Sat, 16 Aug 2014 05:55:44 +0000 (13:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Aug 2014 21:10:22 +0000 (23:10 +0200)
commitb5a280c00840f4ebc2f40afb4f74e37e34d19f7c
treec087ab3c5467136fad9c072b090af88cc1e64b35
parentd92fa2dc6e42e8bd8470e69d85141176f98feaea
intel-iommu: add IOTLB using hash table

Add IOTLB to cache information about the translation of input-addresses. IOTLB
use a GHashTable as cache. The key of the hash table is the logical-OR of gfn
and source id after left-shifting.

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>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_internal.h
include/hw/i386/intel_iommu.h