intel-iommu: only do page walk for MAP notifiers
commit4f8a62a933a79094e44bc1b16b63bb23e62d67b4
authorPeter Xu <peterx@redhat.com>
Fri, 18 May 2018 07:25:12 +0000 (18 15:25 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 23 May 2018 14:33:57 +0000 (23 17:33 +0300)
tree4b1488663090cc8f14e65e57b380a91395b8bdff
parent1d9efa73e12ddf361ea997c2d532cc4afa6674d1
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>
hw/i386/intel_iommu.c
include/hw/i386/intel_iommu.h