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

openhcl: refactor shared pool to general purpose page pool #260

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

chris-oo
Copy link
Member

@chris-oo chris-oo commented Nov 7, 2024

Refactor the shared visibility pool to a more general purpose page pool. This is in preparation for additional changes to support save restore, and private allocations.

Add a new new_private_pool method to support future private memory page pools.

Add additional tracking of allocations with device_ids and device names, which will be used for save restore. This can also help track current allocations. Update NvmeManager to hand out per-device allocators, which better helps allocations per device.

In the future, it would be good to additionally update the VfioDmaBuffer trait to have additional tagging, as today all allocations are just tagged as "vfio dma" which isn't very helpful when inspecting.

@chris-oo chris-oo requested review from a team as code owners November 7, 2024 18:11
Cargo.lock Outdated Show resolved Hide resolved
@chris-oo chris-oo marked this pull request as ready for review November 15, 2024 19:09
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.

5 participants