From 73dc43e03f2ac874f18bf65d92651c23fc283737 Mon Sep 17 00:00:00 2001 From: "Hui, Chunyang" Date: Tue, 2 Mar 2021 07:06:47 +0000 Subject: [PATCH] Ignore AESM status for simulation mode --- tools/occlum | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/occlum b/tools/occlum index d26401fc..3944e1b8 100755 --- a/tools/occlum +++ b/tools/occlum @@ -108,6 +108,10 @@ check_has_run() { } check_aesm_service() { + # Ignore AESM service status for simulation mode + if [ "$(cat $instance_dir/.sgx_mode 2>/dev/null)" != "HW" ]; then + return + fi for i in $(seq 1 3); do pgrep "aesm_service" > /dev/null && return || sleep 5 done