From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web09.2405.1578531118282360983 for ; Wed, 08 Jan 2020 16:51:58 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: jiewen.yao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 16:51:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,412,1571727600"; d="scan'208";a="216128611" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 08 Jan 2020 16:51:57 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 8 Jan 2020 16:51:57 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.202]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.28]) with mapi id 14.03.0439.000; Thu, 9 Jan 2020 08:51:55 +0800 From: "Yao, Jiewen" To: Laszlo Ersek , Ard Biesheuvel CC: edk2-devel-groups-io , =?utf-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Subject: Re: [PATCH 4/4] ArmVirtPkg/ArmVirtQemu: add optional support for TPM2 measured boot Thread-Topic: [PATCH 4/4] ArmVirtPkg/ArmVirtQemu: add optional support for TPM2 measured boot Thread-Index: AQHVxjJGB+2Z9maeW0uYLVd8oS4yzafhf9cg Date: Thu, 9 Jan 2020 00:51:54 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503F8D6F2F@shsmsx102.ccr.corp.intel.com> References: <20200107094800.4488-1-ard.biesheuvel@linaro.org> <20200107094800.4488-5-ard.biesheuvel@linaro.org> <27a930b2-bbf8-a1d2-075f-6f33ce03b460@redhat.com> <6408f5c9-1759-5cd8-c570-5422fcff25e5@redhat.com> In-Reply-To: <6408f5c9-1759-5cd8-c570-5422fcff25e5@redhat.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWQ2OGFlYWEtMjQ2Yi00MGMxLThhZmQtNGI1ODljZjlkMmNhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUjhzMlJrMUxHRFAzNVhaOWpkTG05QVpManJLbEtoZzhpY0YwYVZaYnB6NVNcL3o0bHdHdVY2MkZiZ0ErNUZVREYifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: jiewen.yao@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkNCkNvbW1lbnQgZm9yIHRoZSB3YXJuaW5nOiANCj4gPiBXQVJOSU5HOiBUUE0yIEV2ZW50IGxv ZyBoYXMgSGFzaEFsZyB1bnN1cHBvcnRlZCBieSBQQ1IgYmFuayAoMHhDKQ0KPiA+IFdBUk5JTkc6 IFRQTTIgRXZlbnQgbG9nIGhhcyBIYXNoQWxnIHVuc3VwcG9ydGVkIGJ5IFBDUiBiYW5rICgweEQp DQoNClRoZSByZWFzb24gaXMgdGhhdDogVGhlIERTQyBhZGRlZCBhbGwgSEFTSCBh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