Skip to content

Commit 9dd4af9

Browse files
committed
fixes
Signed-off-by: Simon Davies <[email protected]>
1 parent a9d6744 commit 9dd4af9

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

src/hyperlight_host/src/hypervisor/hyperv_linux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ impl HypervLinuxDriver {
409409
})?;
410410

411411
Self::setup_initial_sregs(&mut vcpu_fd, pml4_ptr.absolute()?)?;
412-
412+
413413
// get/clear the dirty page bitmap, mshv sets all the bit dirty at initialization
414414
// if we dont clear them then we end up taking a complete snapsot of memory page by page which gets
415415
// progressively slower as the sandbox size increases
@@ -444,7 +444,7 @@ impl HypervLinuxDriver {
444444
sig_rt_min_offset: config.get_interrupt_vcpu_sigrtmin_offset(),
445445
dropped: AtomicBool::new(false),
446446
});
447-
447+
448448
#[allow(unused_mut)]
449449
let mut hv = Self {
450450
_mshv: mshv,

src/hyperlight_host/src/mem/bitmap.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
Copyright 2025 The Hyperlight Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
116
use std::cmp::Ordering;
217

318
use hyperlight_common::mem::{PAGE_SIZE_USIZE, PAGES_IN_BLOCK};

src/hyperlight_host/src/sandbox/mem_mgr.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,6 @@ impl MemMgrWrapper<ExclusiveSharedMemory> {
107107
layout.write_init_data(shared_mem, user_memory)?;
108108
Ok(())
109109
}
110-
111-
// #[instrument(err(Debug), skip_all, parent = Span::current(), level= "Trace")]
112-
// pub (super) fn start_tracking_dirty_pages(
113-
// &mut self,
114-
// ) -> Result<crate::mem::dirty_page_tracking::DirtyPageTracker> {
115-
// let mgr = self.unwrap_mgr_mut();
116-
// let shared_mem = mgr.get_shared_mem_mut();
117-
// shared_mem.start_tracking_dirty_pages()
118-
// }
119-
120-
// #[instrument(err(Debug), skip_all, parent = Span::current(), level= "Trace")]
121-
// pub (super) fn stop_tracking_dirty_pages(
122-
// &mut self,
123-
// tracker: crate::mem::dirty_page_tracking::DirtyPageTracker,
124-
// ) -> Result<()> {
125-
// let mgr = self.unwrap_mgr_mut();
126-
// let shared_mem = mgr.get_shared_mem_mut();
127-
// shared_mem.stop_tracking_dirty_pages(tracker)?;
128-
// Ok(())
129-
// }
130110
}
131111

132112
impl MemMgrWrapper<HostSharedMemory> {

0 commit comments

Comments
 (0)