Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iommufd: remove put_device_fd logic #18

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

birkelund
Copy link
Collaborator

An IOAS may have several devices attached, so devfd does not belong as a member within struct iommu_ioas. Remove it.

This member was used in put_device_fd, but the iommufd backend does not need such cleanup. It is enough to close the device file descriptor (which we do in vfio_pci_close).

@birkelund birkelund requested a review from minwooim August 23, 2024 06:39
@birkelund birkelund added the approved Approved for device testing label Aug 23, 2024
An IOAS may have several devices attached, so devfd does not belong as a
member within struct iommu_ioas. Remove it.

This member was used in put_device_fd, but the iommufd backend does not
need such cleanup. It is enough to close the device file descriptor
(which we do in vfio_pci_close).

Signed-off-by: Klaus Jensen <[email protected]>
@birkelund birkelund force-pushed the iommufd-remove-put_device_fd branch from c5e1dc4 to 1693cbe Compare August 23, 2024 06:42
@birkelund birkelund merged commit 158f409 into main Aug 23, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved for device testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant