Page MenuHomeFreeBSD

x86/iommu: Update following VM_ALLOC_ZERO semantic change
AbandonedPublic

Authored by markj on Feb 19 2021, 8:19 PM.
Tags
None
Referenced Files
F82989143: D28806.diff
Sat, May 4, 9:19 PM
Unknown Object (File)
Wed, May 1, 3:32 PM
Unknown Object (File)
Wed, May 1, 2:36 PM
Unknown Object (File)
Wed, May 1, 8:38 AM
Unknown Object (File)
Dec 20 2023, 7:00 AM
Unknown Object (File)
Dec 11 2023, 4:46 AM
Unknown Object (File)
Dec 6 2023, 2:11 AM
Unknown Object (File)
Sep 7 2023, 2:36 AM
Subscribers

Details

Reviewers
kib
Summary

This function is a bit special because it may return a resident page
without zeroing it, so I added an assertion and made this diff separate.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37203
Build 34092: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 19 2021, 9:15 PM
alc added inline comments.
sys/x86/iommu/intel_utils.c
274–275

Why not now move the locking outside the loop since we're no longer trying to perform the zeroing without the object lock being held? There would be two fewer lines of code, plus one more if unnecessary braces around the first unlock were eliminated.