You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/hyperlight_host/src/hypervisor/hyperv_windows.rs
+3-15Lines changed: 3 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,12 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
-
use core::ffi::c_void;
18
17
use std::fmt;
19
18
use std::fmt::{Debug,Formatter};
20
19
use std::string::String;
21
20
use std::sync::Arc;
22
21
use std::sync::atomic::{AtomicBool,Ordering};
23
22
24
-
use hyperlight_common::mem::PAGE_SIZE_USIZE;
25
23
use log::LevelFilter;
26
24
use tracing::{Span, instrument};
27
25
use windows::Win32::System::Hypervisor::{
@@ -55,10 +53,8 @@ use crate::{Result, debug, new_error};
55
53
56
54
/// A Hypervisor driver for HyperV-on-Windows.
57
55
pub(crate)structHypervWindowsDriver{
58
-
size:usize,// this is the size of the memory region, excluding the 2 surrounding guard pages
59
56
processor:VMProcessor,
60
57
_surrogate_process:SurrogateProcess,// we need to keep a reference to the SurrogateProcess for the duration of the driver since otherwise it will dropped and the memory mapping will be unmapped and the surrogate process will be returned to the pool
61
-
source_address:*mutc_void,// this points into the first guard page
// Print out the time it took to get the process if its greater than 150ms (this is just to allow us to see that threads are blocking on the process queue)
0 commit comments