Message ID | 20171101211623.71496-18-brijesh.singh@amd.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Herbert Xu |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3D0D6603B5 for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 1 Nov 2017 22:07:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EA7F283FF for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 1 Nov 2017 22:07:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2368928C18; Wed, 1 Nov 2017 22:07:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C74D6283FF for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 1 Nov 2017 22:07:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933527AbdKAWGM (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Wed, 1 Nov 2017 18:06:12 -0400 Received: from mail-bn3nam01on0043.outbound.protection.outlook.com ([104.47.33.43]:12256 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933526AbdKAVRH (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Wed, 1 Nov 2017 17:17:07 -0400 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; bh=3xJFXz76RXQq/fMyCD8ozZqIwHbUR+E7WsbQ6rs1eLg=; b=xfCrvboPy/lZlSnCkq+eFxqtDSDp57utJnBn6yDv+FLwRNurTSMc6/sUHzHZwelqQPCeUGfxTALBLlufvlMyhqbIugP7T4ndKNvxuPa0N9qnZNpsg7REb9djTdMoq5oxZ/nJv95KKdsU6BUZktwdcQ3fFMYRltl8LJlaSZG7eWk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Wed, 1 Nov 2017 21:16:47 +0000 From: Brijesh Singh <brijesh.singh@amd.com> To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bp@alien8.de, Brijesh Singh <brijesh.singh@amd.com>, Paolo Bonzini <pbonzini@redhat.com>, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= <rkrcmar@redhat.com>, Borislav Petkov <bp@suse.de>, Herbert Xu <herbert@gondor.apana.org.au>, Gary Hook <gary.hook@amd.com>, Tom Lendacky <thomas.lendacky@amd.com>, linux-crypto@vger.kernel.org Subject: [Part2 PATCH v7 17/38] crypto: ccp: Implement SEV_PDH_GEN ioctl command Date: Wed, 1 Nov 2017 16:16:02 -0500 Message-Id: <20171101211623.71496-18-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171101211623.71496-1-brijesh.singh@amd.com> References: <20171101211623.71496-1-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM5PR06CA0064.namprd06.prod.outlook.com (2603:10b6:3:37::26) To DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5657b6df-4106-4304-3f36-08d5216ddc79 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(2017052603199); SRVR:DM2PR12MB0155; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 3:iRNiuTY71BC1T/veUnJQJl25q+Am4LJvFWlfjaKsHD/qxGK4mez5EODgqwO0DQC/w6htGp6TSokYOZaKY+V6ldD6iSpDV9NMYgqsiXtefSBbPvAsQw6SaKhWt9lHtwoPdQk8wX0QfNZ1Syk2tHufrTlb7dUi8TZwIlynlqNMtsJFWux1aJEnS5Ka3U3cud2PjFwmJZECtu4ePwlwLNL70XT6BStFBOSNCO5B5c3H29W+eHpkBly0sNP38uERH3KO; 25:igP2SaEI2xyQfbHhW1uvheHcMyrm+ms2o8IQpT3GwmZy/7Q8zaaMHov00jDSNMcDS/ZPbGrZzl8qLYrCl1tAE+Z9e9+IZ8ihXKrhEg/eYvRBzth+wR9l2BjiK7/BmD3EA8JCR6Qa2F3utiyXAkM+1wQz2XlBB3HfMzvbXFr15ADucQyQoYG5Ep/khiPtaF6NBUcwc5YX0vW9sM+p4kNtuSnSvXrUhSgmui9j37QZMjnTTioBKC8BXsDW0bW2vjXULs8PCD4j6791WKNyq1hGNSVWQ9B92Nf3rdif5xdOZaZViVZq8uLqJ2dzZzfZRa1zZROIxgvTSmtdW8w2Ccr3Gg==; 31:CKAgvk1zQgBCWIUhhnrv/hOLhl0pVfgUUSDJFbTujP1Iak8M7A+dhW/lnvOd1U35acytGytNBjUBHqVA9ajcJNJHHN/kB7Z4CkSv1DPKldgMs03jOnTs271UEH3zdjbAoAzoOoDVOBtAsMKGSfqakfIL7PpH92XLzTMCEelMIanmWM979PznDgtE3JxomDJArZpI0bjIDfYr4FgtEpM6G+vOG16PI6/snVMPI7NAGoU= X-MS-TrafficTypeDiagnostic: DM2PR12MB0155: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 20:aJdaG8RINEEOObCIsmjeAyBavqiOpoktFs6z2ViQrBuLSVOjDN49pATgCUOszzlfu0DYtUiixQh43b6cPEWfB6UZduyrE5IIEte0Mc5a+464A1V3935CSXV9kGJW+MngilBYgkL/pUMnbznXoKPmOCHo+fzfNgZUt96lrnLS+9jUmGPiAvXvASLpjLxzhICYo+HAZLxpKyQUuFObsLAUu0LS3FJZkgVza8qOxZuQi0inIIwxsRRM3vhMiQdoZ04Cxzr8OfFj/+0wb4WyRC9mT9kQhZBid8dedAY5utXVtLYWg9bh2k44VF2cVmvv6RujHCoOizFox1V/VFBDXLjbislq9U4DdkpakJiGpJk2CbQnl0taThBn3v/c2Xw+GbaAdr/GYSgqc5jSFr3zmfNTYwVljcddAilyxGfp0NX5KlXfbN6BolGv4o35ZxZgjZ7bNfMKhopYESCeHP65gl2Y3548TUu6/RRgtr/MEL8lcjKnbIwQuWYYpbyCTRhuzpjg; 4:OjpYObserSNA//m9Ujg+t5w22LNvjMR/rIkBftio2Xpo3Imj24oiQ1R8yZuQF6NnAG+nB/mHFCJcIc4A2ywhJlNkVS65TiMi0efzvzSeCTGNUStZEXwXaRf5drw6vSqPYCIoiF+6N9SyojDN6tnj0+qXsQuAIYvPnWTQG7dUeI/C0rYA8V5nuP44xWAQRBUdfUOWMxDoGn61f9O0Xieh1RG6XtGdJNnuZJgRBmsqVdekD+zL9HIzQ0YrLiFxo/9S7QV65+ftCEkVXQBe/n6Bkln4bZO3kcuNx/VOOfOJKcx30AW0BZPeI0t63EptzvM42NO6RIRqUzz4v2gIO3UfzQ== X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(767451399110); X-Microsoft-Antispam-PRVS: <DM2PR12MB015599132A7BBD90BE7552F2E55F0@DM2PR12MB0155.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3231020)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR12MB0155; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR12MB0155; X-Forefront-PRVS: 0478C23FE0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(189002)(199003)(1076002)(6116002)(97736004)(66066001)(50466002)(3846002)(25786009)(4326008)(54906003)(316002)(8676002)(47776003)(36756003)(23676003)(50986999)(478600001)(81156014)(81166006)(105586002)(53416004)(53936002)(189998001)(106356001)(2906002)(16526018)(2870700001)(76176999)(33646002)(305945005)(7736002)(86362001)(5660300001)(6486002)(101416001)(50226002)(68736007)(8936002)(2950100002)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0155; H:wsp141597wss.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjEyTUIwMTU1OzIzOmo3aXdoc2xtSVBwLzFSQWpBN0VIY0ZUTktw?= =?utf-8?B?bDYxTHE2UDJzWTdHUDNDY2ljVVlmUWUveHZ1TDAyUVdwVVZXbWY0U04wRUs1?= =?utf-8?B?ZXVGdTUxTEw4SGxHcm1wekNIS2pLV2ZjZm96MTdyQzhkMGU1MUNISmZrRlZV?= =?utf-8?B?NnlOb2o2cnJZazdZNGQ1dmRr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oEHGslmNTVLlchY+7BH3JqYPbhPnn86qNnDguP/9DxVTBDyQ3drfWbN6aCbmYoIzK5d7YvXi0fdwvP7no3CVIS+hUo=; 7:4Y+ZOZdjHqj+82FIRcTEWqhCrgjDSrG9v+3ntkOIaZwKKXamIYYpN6vJVoNRJ3FaeSjVFkaNQ0rD/zDzl1XEi5yKzLg6Elp/tGAokBq2OuQCX0NO0qkzYbIDCXVumnAqWEJFzErLGZJNT4wD7uB5stBBDDCO3OI1emgYFu2rzxrhBZi+L0vt53tkP1X41b/qOOHW2Mpin4aZKQxRcH1DZFEAAb7YOUkzUwmDDQmaFJfyfP3AMcWY5bF/vnZMc0xT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 20:UkzgXB2hGvR7LG7bl91F75Z1qdXKQr0uW7O2E3j9+zSYoWTYhgouplEHS9IBEpe2AnF/VOKsnLFj6GsMSb3ip+SBWOyoaTYLlZ3J9HbUHOZY8Ypt1GnFvh25vH59vI191iMi9sEJAUg4NszluudUn6TywNZcTNnk6TKr7ZVivrBS3wb4fqDsJgQT6CZmOQ9u4b9SdDpX7/RItP6GJNNJMe3YqVe1cWCTmlsKfumuR0xUzVLI7GiKZRfOWX3cKrsG X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2017 21:16:47.3128 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5657b6df-4106-4304-3f36-08d5216ddc79 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0155 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c index 2c28c36d7ae8..42991c2e9085 100644 --- a/drivers/crypto/ccp/psp-dev.c +++ b/drivers/crypto/ccp/psp-dev.c @@ -329,6 +329,9 @@ static long sev_ioctl(struct file *file, unsigned int ioctl, unsigned long arg) case SEV_PEK_GEN: ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PEK_GEN, &input); break; + case SEV_PDH_GEN: + ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PDH_GEN, &input); + break; default: ret = -EINVAL; goto out;