]> git.ipfire.org Git - thirdparty/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>
Thu, 21 Jun 2018 01:45:05 +0000 (20:45 -0500)
commit21962e6958b7e7e1001786e7f4e79eda33d93502
tree5307060d3fcd29b7b0d8d34193e0c935391a11a5
parent3585497e8669fae18b59bd6a6ee7954289015447
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