Skip to content

iommufd_ioctls: Use *mut cast for IOMMU_IOAS_UNMAP#2

Merged
likebreath merged 1 commit intocloud-hypervisor:mainfrom
likebreath:1229/fix_iommu_ioas_unmap
Jan 2, 2026
Merged

iommufd_ioctls: Use *mut cast for IOMMU_IOAS_UNMAP#2
likebreath merged 1 commit intocloud-hypervisor:mainfrom
likebreath:1229/fix_iommu_ioas_unmap

Conversation

@likebreath
Copy link
Member

The kernel updates the length field to return the unmapped size, so the struct should be passed as a mutable pointer to the ioctl.

The kernel updates the length field to return the unmapped size, so the
struct should be passed as a mutable pointer to the ioctl.

Signed-off-by: Bo Chen <bchen@crusoe.ai>
Copy link

@up2wing up2wing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@likebreath likebreath merged commit 083c016 into cloud-hypervisor:main Jan 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants