Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5302099pxb; Sun, 7 Nov 2021 09:19:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJykPvCPewdoZzYQ7HH6kytBhrhKlobG7ofbLDMQcQ28IDJkvzEXI+0OaWbieuLH8Q+VbuJO X-Received: by 2002:a92:4b06:: with SMTP id m6mr19183400ilg.123.1636305550680; Sun, 07 Nov 2021 09:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636305550; cv=none; d=google.com; s=arc-20160816; b=P6qq3/dcGWc7Q7hrGpWOM0k4+nqY3B8maoC3nnvXV1launjRQbdunIYHDE5ZrCm6U8 ZQQiQ47+FzgrHJKhdLQJ/ybOreZfkwMbTQR7Q39DQOmqLssrPv3n5JFCEiBOKjXzkJzi 8wmR/l1cKa1xZ8OnsfTEJQOIgw+gDtrkrXc6b4toa72wNrdeKeQtsResJzcYs9W0uzlP VcKQT4OQvv18VLmUwY36QwlvuNByNJcEnIvzF5gvhGzi4b2XnV5f+XeAKj4iy5LQv0Yu zYy2LolSBt3AbuJxkX5oX/GggPGHOsJFOEzdVdSnPht7e7PFNv/7e+T++Dz8/GZfHYpU qsbg== 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=SpqU/F34x2bkmO8BrNJ8ykElLgpC+0fGtSc6RSoiaG0=; b=phWA7yZdS1tWZCwL3LZSzemE2dVDpqWPNq2m49Er6F2NZnmrdMTv5ocWG//kLOO7vL T/b+zbupjGXXmLWz31OzfV8bkS2/4iGySa7Ixi5if/an1eaufPFyzdP3yzyfVyRssnrU iootMEf9v2KoRUzZaK+apU5zdRVGaBCyDd5EG/Dv7hcT7UMz6EJ6AFeubuLMznzHuvO5 0Q8EZK0rORGTKKKiyqFxfTyOX/Q/dNHiD46msMjoOf/tdyV/FGI7B8WiK7EaqU1TcAwV z7dWEjOlctF63yvjq82T9Wt30o8Pf0KjCpYlfwFElNQjeevAsIYLLSec1WeFouJ9Fgdh 0OpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=sZCcLmGq; 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 h24si19929587ioe.67.2021.11.07.09.18.58; Sun, 07 Nov 2021 09:19:10 -0800 (PST) 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=sZCcLmGq; 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 S231475AbhKGNPv (ORCPT + 99 others); Sun, 7 Nov 2021 08:15:51 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:13449 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbhKGNPu (ORCPT ); Sun, 7 Nov 2021 08:15:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1636290789; x=1667826789; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=SpqU/F34x2bkmO8BrNJ8ykElLgpC+0fGtSc6RSoiaG0=; b=sZCcLmGqwnTJeVcCRwl7kIaxIdLSdeLJKUogJs1bZfN4fMwoMYYgGtdf Q5fDJyiAwbHkax6msxwAz+glWjOP0NEo4MqnnZgB+WcLqh8iS9VFfVE0X V1v+1YHtqRGv5N1MXasP60gxIlScOvKbnEuZoSg4ptx8V5fvYb2H/lmYQ U=; X-IronPort-AV: E=Sophos;i="5.87,216,1631577600"; d="scan'208";a="157790664" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-pdx-2a-39fdda15.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-33001.sea14.amazon.com with ESMTP; 07 Nov 2021 13:12:54 +0000 Received: from EX13D16EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2a-39fdda15.us-west-2.amazon.com (Postfix) with ESMTPS id 5E1E3417AF; Sun, 7 Nov 2021 13:12:52 +0000 (UTC) Received: from [192.168.0.248] (10.43.162.57) by EX13D16EUB003.ant.amazon.com (10.43.166.99) with Microsoft SMTP Server (TLS) id 15.0.1497.24; Sun, 7 Nov 2021 13:12:45 +0000 Message-ID: Date: Sun, 7 Nov 2021 15:12:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH v4 3/4] nitro_enclaves: Add KUnit tests setup for the misc device functionality Content-Language: en-US To: "Longpeng(Mike)" CC: , , , , , , , , , , References: <20211103140035.2001-1-longpeng2@huawei.com> <20211103140035.2001-4-longpeng2@huawei.com> From: "Paraschiv, Andra-Irina" In-Reply-To: <20211103140035.2001-4-longpeng2@huawei.com> X-Originating-IP: [10.43.162.57] X-ClientProxiedBy: EX13D47UWA002.ant.amazon.com (10.43.163.30) 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.kern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