Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp183837imj; Thu, 14 Feb 2019 18:10:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IY8AUjHuRGhDGTAk5/jQdZswTlbC1OnBJU6OFBWKBePHN2ZH6Xvdt5QqCMf9tq+0aagxsaW X-Received: by 2002:a63:d444:: with SMTP id i4mr6834525pgj.237.1550196643137; Thu, 14 Feb 2019 18:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550196643; cv=none; d=google.com; s=arc-20160816; b=FyuxJ2bPJlCJY2u0sKWqDr+6vfIFvv/Gpwr/jAqh0d/ToXkHiBYWx0FiIRD5Y1K575 /kU/WbvMfxsOH0t6o2xCPHOqaMc+a5+k3yZqjolZNnKeQpCwuyOHU93w+xVQ3NdPGTC4 bjqQH+A9m016ikf1mJkpShkDlVqeI+QnQV7NJ5DLz771MNi+hnbuFTTpNw4oH+MqOVDu C/5iXbrcopuUpU4XCfpVcoGwOR+tX+KdmUmwdrOuZV6rZrprH7MVVlw6I5FV6vINJKap tc1wl34jmRpdygbIKGW7TD9UxNcKrLHA3TAG4M0LPpW6If0m3LaWllaprSY5qrhXfdrM IM0g== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=ZuMAU6SVeSARQ6TyVo1m0rRXsNPfdjZ9mT1eQmJ+t7M=; b=yqaWVrsn6OLTdzwkeiBH5fqhaXSlINNvaBzCmVFcwBKU+wU05j9Zdb0Shdv5Ybd0Eq zSLipIyj5GwZLK0QGeOvpq2h/ScMwETkyAoWTj5bLl2je+xkvgfnM+ShjBb/gPR5BNcw 2hTX7fBlGkVtZJkkCC2a79q+oU4z0TlSJDp5GFc1neyYQDaoqtvU1svv0oXI25IAptfQ dFZatPgtLwYHfmp0oy4stuwmdZfKqumZZqXEg8fabfYV+XSsYZvm1cQVBAU6s8fyzBV+ KNpet6MjmxTXJI+iXGLRpRrRjlwgumcTA/YYlMaxplnfBtmXa8nydyxt6IR9Wp4vP1SK bLUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=oLa7FlId; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n30si3868833pgb.406.2019.02.14.18.10.27; Thu, 14 Feb 2019 18:10:43 -0800 (PST) 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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=oLa7FlId; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439860AbfBNTdd (ORCPT + 99 others); Thu, 14 Feb 2019 14:33:33 -0500 Received: from mail-eopbgr720083.outbound.protection.outlook.com ([40.107.72.83]:19392 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730666AbfBNTdc (ORCPT ); Thu, 14 Feb 2019 14:33:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZuMAU6SVeSARQ6TyVo1m0rRXsNPfdjZ9mT1eQmJ+t7M=; b=oLa7FlIdkkvHuBPrQBduOio0HyqjjYhpyaRDahMF7CduSkWGOw83l0myrGZoDvi89laREx++g+eE6W7P62v2lQjjSzUuy7VEeI5LmCY3CRt+EPWj8FRFZ+veqIdSpjYrd5fpS86oSUwn5m+JJmgEviP6kU6w49sF1TbLjtCgAS4= Received: from DM6PR12MB2682.namprd12.prod.outlook.com (20.176.116.31) by DM6PR12MB2746.namprd12.prod.outlook.com (20.176.118.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.22; Thu, 14 Feb 2019 19:33:29 +0000 Received: from DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::2073:3d8a:bf05:4686]) by DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::2073:3d8a:bf05:4686%4]) with mapi id 15.20.1601.023; Thu, 14 Feb 2019 19:33:29 +0000 From: "Singh, Brijesh" To: Nathaniel McCallum CC: "Singh, Brijesh" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Natarajan, Janakarajan" , Herbert Xu , "Hook, Gary" , "Lendacky, Thomas" Subject: Re: [PATCH] crypto: ccp: introduce SEV_GET_ID2 command Thread-Topic: [PATCH] crypto: ccp: introduce SEV_GET_ID2 command Thread-Index: AQHUw9Gi5mJPt5RuVE6hmwMqm1xhOaXfhQiAgAArpAA= Date: Thu, 14 Feb 2019 19:33:29 +0000 Message-ID: References: <20190213192329.680-1-brijesh.singh@amd.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR04CA0108.namprd04.prod.outlook.com (2603:10b6:805:f2::49) To DM6PR12MB2682.namprd12.prod.outlook.com (2603:10b6:5:4a::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3a5aa94f-ca09-4bb2-729e-08d692b34bdc x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM6PR12MB2746; x-ms-traffictypediagnostic: DM6PR12MB2746: x-ms-exchange-purlcount: 2 x-microsoft-exchange-diagnostics: 1;DM6PR12MB2746;20:e7QlHmzukLdgjt0F3BEvbpG5VZxjrj3PibnJ/VSappXhaIuZs6oZliWjW87w+2EoyoQHy5uihXlu33WTkPH1q32E9M7m5s3Mirv9/uUIyan2QDldgeuJaI1yIMqN6pS26lxGVmoB9OmMMq+htBG7FhfTMkBjvSOCIvcTEtimhxJNa1et/E1kEGKO5sdIvmMlJedNcj7PMNaQK78qWRDVGDBiK9XO2zqpPMm02abP941Zs74EJAfNIxdXbDCaAmYJ x-microsoft-antispam-prvs: x-forefront-prvs: 09480768F8 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(39860400002)(136003)(366004)(396003)(199004)(189003)(3846002)(229853002)(446003)(52116002)(68736007)(26005)(316002)(11346002)(8676002)(2616005)(14444005)(486006)(476003)(6116002)(81156014)(36756003)(6436002)(76176011)(305945005)(4326008)(2906002)(256004)(186003)(54906003)(99286004)(102836004)(6506007)(386003)(6486002)(53546011)(7736002)(25786009)(106356001)(105586002)(478600001)(66066001)(14454004)(53936002)(8936002)(6916009)(31686004)(6512007)(6246003)(71190400001)(71200400001)(6306002)(81166006)(86362001)(31696002)(966005)(97736004)(2004002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2746;H:DM6PR12MB2682.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: B1Sxo2JH9XM4wB7bjPzt5xf1G0WMPueZPJO/HV+o3a4nL7inGbbmgq1fm0xXyZjoZYG1pmaNVLmDLa8OJi4vyySivu5SamX8pzBbCCmKuVX4a9Zq+HTpVdFzKtvEyjXMhRyCxFdrMIkAW/4yiyE8gEGRtoACHk6Wai7K4evrRahJNsy+ukTlaOokzeGFT1g2ifczdvm8H0OFBgr++roSJy9hRX+iCHQTjWN8RE27svIKFNQog8BTru30L24qOzLbpyBNDdHAvCR+gaI15mO7lwSbpPs3yjRV0HNkbpU1gDWc2XNyHVYlrYxjpXIBIIqqERLNr4e9ZcazLnc6OAsoNOivm8imXIws3NsvfbZHMFTRYvD7i/3uSuYmZHAFrdnX7X46NlBjcb2qrhDXkJ79GH7Jg2Idf/HQqjdMInjHiNw= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a5aa94f-ca09-4bb2-729e-08d692b34bdc X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2019 19:33:28.2929 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2746 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDIvMTQvMTkgMTA6NTcgQU0sIE5hdGhhbmllbCBNY0NhbGx1bSB3cm90ZToNCj4gSSdt IGEgbGl0dGxlIGNvbmNlcm5lZCB0aGF0IHRoaXMgaW1tZWRpYXRlbHkgZGlzYWJsZXMgU0VWX0dF VF9JRC4NCj4gSU1ITywgd2Ugc2hvdWxkIGNvbnRpbnVlIHRvIHN1cHBvcnQgYm90aCBmb3IgYSBw ZXJpb2Qgb2YgdGltZS4gT25lDQo+IGp1c3RpZmljYXRpb24gZm9yIGltbWVkaWF0ZSBkaXNhYmxl bWVudCB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3AtPmRhdGEsICZpbnB1dCwgc2l6ZW9mKGlu cHV0KSkpIHsNCj4+ICsgICAgICAgICAgICAgICByZXQgPSAtRUZBVUxUOw0KPj4gKyAgICAgICAg ICAgICAgIGdvdG8gZV9mcmVlOw0KPj4gKyAgICAgICB9DQo+PiArDQo+PiArICAgICAgIGlmIChp ZF9ibG9iKSB7DQo+PiArICAgICAgICAgICAgICAgaWYgKGNvcHlfdG9fdXNlcigodm9pZCBfX3Vz ZXIgKilpbnB1dC5hZGRyZXNzLA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg aWRfYmxvYiwgZGF0YS0+bGVuKSkgew0KPj4gICAgICAgICAgICAgICAgICAgICAgICAgIHJldCA9 IC1FRkFVTFQ7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBnb3RvIGVfZnJlZTsNCj4+ICsg ICAgICAgICAgICAgICB9DQo+PiAgICAgICAgICB9DQo+Pg0KPj4gLSAgICAgICBrZnJlZShtZW0p Ow0KPj4gK2VfZnJlZToNCj4+ICsgICAgICAga2ZyZWUoaWRfYmxvYik7DQo+PiArICAgICAgIGtm cmVlKGRhdGEpOw0KPj4NCj4+ICAgICAgICAgIHJldHVybiByZXQ7DQo+PiAgIH0NCj4+IEBAIC03 NjAsNiArNzgzLDEwIEBAIHN0YXRpYyBsb25nIHNldl9pb2N0bChzdHJ1Y3QgZmlsZSAqZmlsZSwg dW5zaWduZWQgaW50IGlvY3RsLCB1bnNpZ25lZCBsb25nIGFyZykNCj4+ICAgICAgICAgICAgICAg ICAgcmV0ID0gc2V2X2lvY3RsX2RvX3BkaF9leHBvcnQoJmlucHV0KTsNCj4+ICAgICAgICAgICAg ICAgICAgYnJlYWs7DQo+PiAgICAgICAgICBjYXNlIFNFVl9HRVRfSUQ6DQo+PiArICAgICAgICAg ICAgICAgLyogU0VWX0dFVF9JRCBpcyBkZXByZWNhdGVkICovDQo+PiArICAgICAgICAgICAgICAg cmV0ID0gLUVOT1RTVVBQOw0KPj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