Skip to content

Conversation

@russell-islam
Copy link
Contributor

Summary of the PR

This patch adds the support the enlarge the atomic bitmap.
Some use cases in cloud-Hypervisor needs to enlarge the bitmap on-demand.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

@russell-islam russell-islam changed the title atomic_bitmap: support resizing the bitmap atomic_bitmap: support enlarging the bitmap Oct 1, 2024
@russell-islam russell-islam force-pushed the muislam/enlarge branch 3 times, most recently from 6496f59 to beb4b05 Compare October 2, 2024 23:38
roypat
roypat previously approved these changes Oct 3, 2024
@russell-islam russell-islam force-pushed the muislam/enlarge branch 2 times, most recently from 4c6f582 to 88d487c Compare October 3, 2024 19:08
@russell-islam
Copy link
Contributor Author

@roypat @rbradford Please take another look to see the changes make sense now!!

Copy link
Contributor

@rbradford rbradford left a comment

Choose a reason for hiding this comment

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

I think this is a good change.

self.size
}

/// Get the size in bytes i.e how many bytes the bitmap can represent, one bit per page sage.
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo - last word in this comment?

Keeping the byte_size in the struct gives freedom
to the caller to use it for any processing at
their end.This field can be used by the caller
in case of enlarging the bitmap.

Signed-off-by: Muminul Islam <[email protected]>
This patch adds the support the enlarge the atomic bitmap.
Some use cases in cloud-Hypervisor needs to enlarge the bitmap
on-demand.

Signed-off-by: Muminul Islam <[email protected]>
Add one test case to validate the enlarge function
of the AtomicBitmap struct.

Signed-off-by: Muminul Islam <[email protected]>
@roypat roypat merged commit 29e165e into rust-vmm:main Oct 7, 2024
2 checks passed
@roypat roypat mentioned this pull request Oct 7, 2024
4 tasks
TimePrinciple pushed a commit to TimePrinciple/vm-memory that referenced this pull request Oct 7, 2024
To incorporate:

- [[rust-vmm#287](rust-vmm#287)] Support for
  RISC-V 64-bit platform.
- [[rust-vmm#299](rust-vmm#299)]
  atomic_bitmap: support enlarging the bitmap.

Signed-off-by: Ruoqing He <[email protected]>
TimePrinciple pushed a commit to TimePrinciple/vm-memory that referenced this pull request Oct 9, 2024
To incorporate:

- [[rust-vmm#287](rust-vmm#287)] Support for RISC-V 64-bit platform.
- [[rust-vmm#299](rust-vmm#299)] atomic_bitmap: support enlarging the bitmap.

Signed-off-by: Ruoqing He <[email protected]>
roypat pushed a commit that referenced this pull request Oct 9, 2024
To incorporate:

- [[#287](#287)] Support for RISC-V 64-bit platform.
- [[#299](#299)] atomic_bitmap: support enlarging the bitmap.

Signed-off-by: Ruoqing He <[email protected]>
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.

3 participants