Skip to content

Commit 5510668

Browse files
committed
Remove outdated code
- Removed outdated is_supported_platform because hyperlight does require a hypervisor to run - Remove ExtraAllowedSyscall since it's no longer used after having removed seccomp features Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 485f8e5 commit 5510668

File tree

1 file changed

+0
-20
lines changed
  • src/hyperlight_host/src/sandbox

1 file changed

+0
-20
lines changed

src/hyperlight_host/src/sandbox/mod.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,6 @@ pub use uninitialized::UninitializedSandbox;
5656
#[cfg(target_os = "windows")]
5757
use crate::hypervisor::windows_hypervisor_platform;
5858

59-
// In case its not obvious why there are separate is_supported_platform and is_hypervisor_present functions its because
60-
// Hyperlight is designed to be able to run on a host that doesn't have a hypervisor.
61-
// In that case, the sandbox will be in process, we plan on making this a dev only feature and fixing up Linux support
62-
// so we should review the need for this function at that time.
63-
64-
/// Determine if this is a supported platform for Hyperlight
65-
///
66-
/// Returns a boolean indicating whether this is a supported platform.
67-
#[instrument(skip_all, parent = Span::current())]
68-
pub fn is_supported_platform() -> bool {
69-
#[cfg(not(target_os = "linux"))]
70-
#[cfg(not(target_os = "windows"))]
71-
return false;
72-
73-
true
74-
}
75-
76-
/// Alias for the type of extra allowed syscalls.
77-
pub type ExtraAllowedSyscall = i64;
78-
7959
/// Determine whether a suitable hypervisor is available to run
8060
/// this sandbox.
8161
///

0 commit comments

Comments
 (0)