-
Notifications
You must be signed in to change notification settings - Fork 48
[Feature]: Consider setting cache attributes on freed pages #1418
Copy link
Copy link
Open
Labels
state:needs-maintainer-feedbackNeeds more information from a maintainer to determine next stepsNeeds more information from a maintainer to determine next stepsstate:needs-ownerNeeds an issue owner to be assignedNeeds an issue owner to be assignedstate:needs-triageNeeds to triaged to determine next stepsNeeds to triaged to determine next stepstype:feature-requestA new feature proposalA new feature proposalurgency:lowLittle to no impactLittle to no impact
Metadata
Metadata
Assignees
Labels
state:needs-maintainer-feedbackNeeds more information from a maintainer to determine next stepsNeeds more information from a maintainer to determine next stepsstate:needs-ownerNeeds an issue owner to be assignedNeeds an issue owner to be assignedstate:needs-triageNeeds to triaged to determine next stepsNeeds to triaged to determine next stepstype:feature-requestA new feature proposalA new feature proposalurgency:lowLittle to no impactLittle to no impact
Feature Overview
When memory is freed via
free_pages, Patina sets certain attributes before freeing - preserving cache attributes and setting RP & XP.ref:
patina/patina_dxe_core/src/gcd/spin_locked_gcd.rs
Lines 2652 to 2656 in 4e014bd
patina/patina_dxe_core/src/gcd.rs
Lines 228 to 238 in 4e014bd
Solution Overview
Consider enforcing opinionated cache attributes on freed pages, in order to have a stronger guarantee on the state of the pages' attributes if allocated in the future, and to allow freed regions to coalesce together if cache attributes were changed while in use. This should be reasonable to do because platforms should not impose requirements on the cache attributes of pooled free memory.
Alternatives Considered
Urgency
Low
Are you going to implement the feature request?
Someone else needs to implement the feature
Do you need maintainer feedback?
Maintainer feedback requested
Anything else?
No response