diff options
author | Cédric Le Goater <clg@redhat.com> | 2023-12-22 08:55:23 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-01-05 21:25:20 +0100 |
commit | c2ab3a6f7411c895e538e8350fee8948ac07c1a0 (patch) | |
tree | 45e839426b429dbea9bda5653cd1e2efe579bd78 /backends | |
parent | c817e5a377a334241eed149e35760aca58bdeb34 (diff) |
backends/iommufd: Remove check on number of backend users
QOM already has a ref count on objects and it will assert much
earlier, when INT_MAX is reached.
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/iommufd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/backends/iommufd.c b/backends/iommufd.c index ba58a0eb0d..393c0d9a37 100644 --- a/backends/iommufd.c +++ b/backends/iommufd.c @@ -80,11 +80,6 @@ int iommufd_backend_connect(IOMMUFDBackend *be, Error **errp) int fd, ret = 0; qemu_mutex_lock(&be->lock); - if (be->users == UINT32_MAX) { - error_setg(errp, "too many connections"); - ret = -E2BIG; - goto out; - } if (be->owned && !be->users) { fd = qemu_open_old("/dev/iommu", O_RDWR); if (fd < 0) { |