diff options
author | John Garry <john.garry@huawei.com> | 2022-02-03 17:59:20 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-02-14 15:43:15 +0100 |
commit | 32e92d9f6f876721cc4f565f8369d542b6266380 (patch) | |
tree | 5bff28207f3a1b6108f3791914d8f2212d37f017 /certs/extract-cert.c | |
parent | 114a6f5015df8eda0cf37302914cb15a3da3f086 (diff) |
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>
Diffstat (limited to 'certs/extract-cert.c')
0 files changed, 0 insertions, 0 deletions