rust-vmm / vm-memory

Virtual machine's guest memory crate
Apache License 2.0
299 stars 97 forks source link

atomic_bitmap: add capability to reset bits range #270

Closed russell-islam closed 3 months ago

russell-islam commented 9 months ago

Currently, there is no implementation to reset a single bit or bit range for AtomicBitmap struct. This patch adds necessary function to reset a specific bit or a bit range. This use case is needed for Cloud-Hypervisor in managing page cache for Microsoft Hypervisor related to SEV-SNP guest. Rather than implementing a new one , it is helpful to add feature to this struct.

Summary of the PR

Please summarize here why the changes in this PR are needed.

Requirements

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

russell-islam commented 7 months ago

@00xc Could you please take another look into this PR?

russell-islam commented 7 months ago

@alexandruag @bonzini @jiangliu

russell-islam commented 3 months ago

Pinging again: @alexandruag @bonzini @jiangliu