Skip to content

Commit e065c01

Browse files
authored
Remove outdated code (#1062)
- 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 41bf27b commit e065c01

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
44

55
## [Prerelease] - Unreleased
66

7+
### Removed
8+
* Remove outdated `is_supported_platform` (use `is_hypervisor_present` instead) and unused `ExtraAllowedSyscall` by @ludfjig in https://github.com/hyperlight-dev/hyperlight/pull/1062
9+
710

811
## [v0.11.0] - 2025-11-04
912

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)