From 62e62506c8dff85205104d6ada887331dcfd3476 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Jun 2025 16:50:41 +0000 Subject: [PATCH] Make interrupt retry delay methods Linux-only Co-authored-by: danbugs --- src/hyperlight_host/src/sandbox/config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hyperlight_host/src/sandbox/config.rs b/src/hyperlight_host/src/sandbox/config.rs index b1391c084..dad3420bb 100644 --- a/src/hyperlight_host/src/sandbox/config.rs +++ b/src/hyperlight_host/src/sandbox/config.rs @@ -175,11 +175,13 @@ impl SandboxConfiguration { } /// Sets the interrupt retry delay + #[cfg(target_os = "linux")] pub fn set_interrupt_retry_delay(&mut self, delay: Duration) { self.interrupt_retry_delay = delay; } /// Get the delay between retries for interrupts + #[cfg(target_os = "linux")] pub fn get_interrupt_retry_delay(&self) -> Duration { self.interrupt_retry_delay }