Skip to content

Commit 13ce55f

Browse files
committed
fixup! Snapshot only contains pages dirties since last snapshot was taken
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent e6b9d7c commit 13ce55f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/hyperlight_host/src/mem/shared_mem_snapshot.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
use std::{
18-
collections::{HashMap, HashSet},
19-
sync::Arc,
20-
};
17+
use std::collections::{HashMap, HashSet};
18+
use std::sync::Arc;
2119

2220
use hyperlight_common::mem::PAGE_SIZE_USIZE;
2321
use tracing::{Span, instrument};
2422

25-
use super::{bitmap::bit_index_iterator, shared_mem::SharedMemory};
23+
use super::bitmap::bit_index_iterator;
24+
use super::shared_mem::SharedMemory;
2625
use crate::Result;
2726

2827
/// A wrapper around a `SharedMemory` reference and a snapshot
@@ -209,9 +208,10 @@ impl SharedMemorySnapshot {
209208

210209
#[cfg(test)]
211210
mod tests {
212-
use hyperlight_common::mem::PAGE_SIZE_USIZE;
213211
use std::sync::Arc;
214212

213+
use hyperlight_common::mem::PAGE_SIZE_USIZE;
214+
215215
use crate::mem::shared_mem::ExclusiveSharedMemory;
216216

217217
#[test]

0 commit comments

Comments
 (0)