John Garry 32e92d9f6f iommu/iova: Separate out rcache init
Currently the rcache structures are allocated for all IOVA domains, even if
they do not use "fast" alloc+free interface. This is wasteful of memory.

In addition, fails in init_iova_rcaches() are not handled safely, which is
less than ideal.

Make "fast" users call a separate rcache init explicitly, which includes
error checking.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/1643882360-241739-1-git-send-email-john.garry@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2022-02-14 15:43:15 +01:00
..
2021-11-06 14:36:12 -07:00
2021-04-07 10:54:29 +02:00
2022-01-31 16:49:54 +01:00
2020-11-23 14:16:55 +00:00
2022-01-31 16:49:54 +01:00
2022-02-14 15:43:15 +01:00
2021-08-12 13:15:02 +02:00
2021-02-01 11:31:19 +00:00
2022-01-31 16:49:54 +01:00