Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2827206pxb; Sun, 3 Oct 2021 06:51:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX43QM7ESWu6IoywmiFlL+tdJb4H+TWDHRGfKrCff7cXgtTN0l/OeVn+Fgv6tjLwD6bYdQ X-Received: by 2002:a17:90a:19d2:: with SMTP id 18mr31244378pjj.122.1633269094658; Sun, 03 Oct 2021 06:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633269094; cv=none; d=google.com; s=arc-20160816; b=nKKwkPRx91y81/NDlqD0VOlnbtdqw6I2jWJzuDWISUSJ9FI+13JFVBS45GCgeVgo54 UAxkHu/NonOb0jNS57xCDggteoocg+sDl9I8euK7Yn3lhFIWWgN/0Qzg6I6r9iJF+/SI +MsE06blzYiw9ZkbGoDHUDLX5jcTUe4+kgFR3RTE7yMmhbATHcLALJsJnZVGs1tMex9Y oApYDP1T9PQnDr5d8dfVvPtz3vBUDG7QG7GAxOQPdzOb4e6OVQS3uZUM2a/QXSeBiklg uWLBgmp5H4pFDrkb5cNuqkDZ0YuKBBKhBXXISsE3TJ/+MkI2gTzCoEzV0JHP0cUHahK7 dLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DrcrXnE5d8uPecARdeB15sl1Dfs/EwEhidWj4O1EH7M=; b=iOcgNDK22NgPDbk+bohH7Ss9h0puBJ/jesXXZbPX94B+9HYFo20SbLPrfuP/j54IJz f7mXiPfrjteLOkx8+zGthAoBzqVKG4hKjOumc77fTAOyY1OG+Z5pPDK6hTma8KuyuMdf cc9v6DzpselxDbcV+ISmhps/a33drUNKkyh+sHDc87oVbIfwZLgx63GEYX9k66CYVQ+M v+T3u2QC+Jwj0QzEBmlK0qsve1dzSbi5NX2q1gIqIDr7xA1Ikl4Jy9J+10rK1SrVTPvP sT7+4A3m2Af0RT3mpBRuj9WAzirwyArYo7EtWkAXV+upTDLaDCNa36K/gn0aLjmHXwbz 57dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=c6wJYXWE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m125si14314405pfb.54.2021.10.03.06.51.21; Sun, 03 Oct 2021 06:51:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=c6wJYXWE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230220AbhJCNv6 (ORCPT + 99 others); Sun, 3 Oct 2021 09:51:58 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:44456 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbhJCNv6 (ORCPT ); Sun, 3 Oct 2021 09:51:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1633269011; x=1664805011; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=DrcrXnE5d8uPecARdeB15sl1Dfs/EwEhidWj4O1EH7M=; b=c6wJYXWEbHmQ7aMlIuqobXvl5k+/7i0hsJDdldImbqCY0HSY4UlgQqRC vLlMWqLBfju3VSU15xZQaRSH0+9riD7rI8OAbtKaUVYwRkViC6MbsC8uB 2t3/tLAEUVueseW9lXU/AwI//ApxXHOtXsJAVJvJOqPWMElJqMoic7neB k=; X-IronPort-AV: E=Sophos;i="5.85,343,1624320000"; d="scan'208";a="151403195" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-pdx-2a-11a39b7d.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-33001.sea14.amazon.com with ESMTP; 03 Oct 2021 13:50:10 +0000 Received: from EX13D16EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2a-11a39b7d.us-west-2.amazon.com (Postfix) with ESMTPS id 7BED342118; Sun, 3 Oct 2021 13:50:07 +0000 (UTC) Received: from [192.168.13.185] (10.43.160.106) by EX13D16EUB003.ant.amazon.com (10.43.166.99) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Sun, 3 Oct 2021 13:50:00 +0000 Message-ID: Date: Sun, 3 Oct 2021 16:49:54 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: [PATCH v2 3/4] nitro_enclaves: add test framework for the misc functionality Content-Language: en-US To: "Longpeng(Mike)" CC: , , , , , , , , , , References: <20210921151039.1502-1-longpeng2@huawei.com> <20210921151039.1502-4-longpeng2@huawei.com> From: "Paraschiv, Andra-Irina" In-Reply-To: <20210921151039.1502-4-longpeng2@huawei.com> X-Originating-IP: [10.43.160.106] X-ClientProxiedBy: EX13D02UWB001.ant.amazon.com (10.43.161.240) To EX13D16EUB003.ant.amazon.com (10.43.166.99) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgpPbiAyMS8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