From f478b9115ea15f7ddeacf4997a49a669bd784738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 13 Apr 2023 07:06:36 +0200 Subject: [PATCH] clh: tdx: Update timeouts for confidential guest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Booting up TDX takes more time than booting up a normal VM. Those values are being already used as part of the CCv0 branch, and we're just bringing them to the `main` branch as well. Signed-off-by: Fabiano FidĂȘncio --- src/runtime/virtcontainers/clh.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/virtcontainers/clh.go b/src/runtime/virtcontainers/clh.go index 1cf40c4d2..6ae99d673 100644 --- a/src/runtime/virtcontainers/clh.go +++ b/src/runtime/virtcontainers/clh.go @@ -73,12 +73,12 @@ const ( // Values based on: clhTimeout = 10 clhAPITimeout = 1 - clhAPITimeoutConfidentialGuest = 10 + clhAPITimeoutConfidentialGuest = 20 // Timeout for hot-plug - hotplug devices can take more time, than usual API calls // Use longer time timeout for it. clhHotPlugAPITimeout = 5 clhStopSandboxTimeout = 3 - clhStopSandboxTimeoutConfidentialGuest = 5 + clhStopSandboxTimeoutConfidentialGuest = 10 clhSocket = "clh.sock" clhAPISocket = "clh-api.sock" virtioFsSocket = "virtiofsd.sock"