Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp798774imm; Wed, 17 Oct 2018 08:29:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV63kct+4qV+VUFNVAQ/cWXLVLzyl9nsl8ANjABTtMOr6F+x4o/DVB5sUvwqrKHkAVA/RgmLb X-Received: by 2002:a63:f252:: with SMTP id d18-v6mr24993043pgk.2.1539790163577; Wed, 17 Oct 2018 08:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539790163; cv=none; d=google.com; s=arc-20160816; b=XEom55RedmRqqMmnBBDOqsto2fOLPzBFdJgFxOwx5mVSTQgYcqfqJuyplJVMt9IR8r viWikiYAqWLctbF5+6EK2UeRewxqE4hq2hI/XlMjP5fQ/T51UpDGLssstr4U+isjpM/L joLhIMj4RRVmWKoXLh9Z181VgXj7KRl8Du3w1N5dewuoc5BWhbyGYxAVzT5EPOhcdf62 737XUqMiJXj5n+gwhJKjsRoI3WBxVBmc+qHLRNnKzjtKgnJWAijWnH3AiMYd5IPEoF/K skXFfrRd3RXVvb3RJYt0GL/YN0iKq9Xtnsw7ETZ0cuhUZje60nbENq+u/pG+DBtqliHQ a5EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=5wY9XnvfIsMlqLlozGChj1dxLgysdRCd07071InpV2I=; b=Md/XtPgpHGx8kqQQ7KSg+P+HEdshfObwIAjbzxeFVFGIa4zlDtpVsfoh+aIIhaDc/z Ak1QSisEN+iPmWsQljTXg9LhaNaEAVB5FOkbzZBGgwTeMFUEdVm7AdiMCWyLSU6lpodd m0C2t4o5iJhrCq6AH66SEBDBjOyNzkEWQgRBXQo3yVFLCmwjyn0BO1wbZ61EiMeXpFNY TKGS3mlEoK/HeWQrOxOZThgOtOdPP+TUPSVDtjqSUbflH/ZxAra8tdPTtZEZ+9lLN/qP AsvCnbkwEJQq8DB0AT0C4Fy8Fk1rU1iOhcDsTx+ARtGUDmijht9/Q03HTfmlTPILK00Q /66w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5-v6si17770401pgm.268.2018.10.17.08.29.07; Wed, 17 Oct 2018 08:29:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727517AbeJQXYp (ORCPT + 99 others); Wed, 17 Oct 2018 19:24:45 -0400 Received: from mga03.intel.com ([134.134.136.65]:60433 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727128AbeJQXYp (ORCPT ); Wed, 17 Oct 2018 19:24:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2018 08:28:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,392,1534834800"; d="scan'208";a="98245486" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 17 Oct 2018 08:28:31 -0700 Received: from hasmsx106.ger.corp.intel.com (10.184.198.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Oct 2018 08:28:31 -0700 Received: from HASMSX109.ger.corp.intel.com ([169.254.3.28]) by HASMSX106.ger.corp.intel.com ([169.254.10.144]) with mapi id 14.03.0319.002; Wed, 17 Oct 2018 18:28:28 +0300 From: "Winkler, Tomas" To: Nayna Jain CC: Jarkko Sakkinen , Jason Gunthorpe , Nayna Jain , "Usyskin, Alexander" , "Struk, Tadeusz" , "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Mimi Zohar Subject: RE: [PATCH v6 03/20] tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c Thread-Topic: [PATCH v6 03/20] tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c Thread-Index: AQHUZeXEAxkAvhY2ik6aE/XYedYfeaUjIkEAgAA4YJD///19gIAANIEg Date: Wed, 17 Oct 2018 15:28:27 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B9D9F49D7@hasmsx109.ger.corp.intel.com> References: <20181017064613.19746-1-tomas.winkler@intel.com> <20181017064613.19746-4-tomas.winkler@intel.com> <05fea3e6-91a3-b508-83c0-d8f06d6bbd5c@linux.ibm.com> <5B8DA87D05A7694D9FA63FD143655C1B9D9F4691@hasmsx109.ger.corp.intel.com> <650c00b1-d53e-27e8-3e1f-94e34c2ae2e9@linux.ibm.com> In-Reply-To: <650c00b1-d53e-27e8-3e1f-94e34c2ae2e9@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWRhOWVmNTQtYmJjOC00NWUyLWEyMDItMDJkOTcwMjJmYmZjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTGh4VkZEWkNuYVdXaTBxU2VmYmlRTGJySnRhV0lCa2IrWER0Qzk2ZE1qcTlLeGpcL21BVklNN3JuVVZvZU9oZVIifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.12.116.154] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IA0KPiANCj4gT24gMTAvMTcvMjAxOCAwNTo1NCBQTSwgV2lua2xlciwgVG9tYXMgd3JvdGU6 DQo+ID4+DQo+ID4+PiAgICAJb3JkaW5hbCA9IGJlMzJfdG9fY3B1KCooKF9fYmUzMiAqKSAoYnVm ICsgNikpKTsNCj4gPj4+IC0JcmMgPSBpMmNfbnV2b3Rvbl93YWl0X2Zvcl9kYXRhX2F2YWlsKGNo aXAsDQo+ID4+PiAtCQkJCQkgICAgIHRwbV9jYWxjX29yZGluYWxfZHVyYXRpb24oY2hpcCwNCj4g Pj4+IC0JCQkJCQkJCSAgICAgICBvcmRpbmFsKSwNCj4gPj4+IC0JCQkJCSAgICAgJnByaXYtPnJl YWRfcXVldWUpOw0KPiA+Pj4gKwlkdXJhdGlvbiA9IHRwbTFfY2FsY19vcmRpbmFsX2R1cmF0aW9u KGNoaXAsIG9yZGluYWwpOw0KPiA+Pg0KPiA+PiBUaGlzIHZlcnNpb24gb2YgdGhlIHBhdGNoIGRp ZG4ndCBhZGRyZXNzIG15IHByZXZpb3VzIGNvbW1lbnQgLSAiVGhlDQo+ID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