iommu/virtio: Add map/unmap_pages() callbacks implementation
authorTina Zhang <tina.zhang@intel.com>
Sun, 5 Jun 2022 16:11:52 +0000 (00:11 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 15 Jul 2022 08:09:27 +0000 (10:09 +0200)
commit7e62edd7a33accf02cb7abdc1bbe381d975b9b5a
treeb7d33cec96f4a6b79b35b9c2876713dc6275842a
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e
iommu/virtio: Add map/unmap_pages() callbacks implementation

Map/unmap_pags() allows map and unmap multiple pages of the same size
in one call, which can improve performance by reducing the numbers of
vmexits. With map/unmap_pages() implemented, the prior map/unmap()
callbacks are deprecated.

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20220605161152.3171-1-tina.zhang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/virtio-iommu.c