]> git.proxmox.com Git - mirror_qemu.git/commit
intel-iommu: only do page walk for MAP notifiers
authorPeter Xu <peterx@redhat.com>
Fri, 18 May 2018 07:25:12 +0000 (15:25 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 11 Jul 2018 16:48:18 +0000 (11:48 -0500)
commit1e5b93f620868ec94a025e275d3dc9597ae42674
tree3569090aa16132bc5fc4c0210f08980e99120091
parent5cf61b56a41600f56357680b084b2f6b91274a78
intel-iommu: only do page walk for MAP notifiers

For UNMAP-only IOMMU notifiers, we don't need to walk the page tables.
Fasten that procedure by skipping the page table walk.  That should
boost performance for UNMAP-only notifiers like vhost.

CC: QEMU Stable <qemu-stable@nongnu.org>
Signed-off-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 4f8a62a933a79094e44bc1b16b63bb23e62d67b4)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/intel_iommu.c
include/hw/i386/intel_iommu.h