Message ID | 20171205010438.5773-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 87DC760327 for <patchwork-linux-crypto@patchwork.kernel.org>; Tue, 5 Dec 2017 01:13:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B1DF28BA1 for <patchwork-linux-crypto@patchwork.kernel.org>; Tue, 5 Dec 2017 01:13:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F5EA294F6; Tue, 5 Dec 2017 01:13:23 +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 E64DD28BA1 for <patchwork-linux-crypto@patchwork.kernel.org>; Tue, 5 Dec 2017 01:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752727AbdLEBMx (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Mon, 4 Dec 2017 20:12:53 -0500 Received: from mail-by2nam03on0083.outbound.protection.outlook.com ([104.47.42.83]:22016 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752464AbdLEBFi (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Mon, 4 Dec 2017 20:05:38 -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; bh=tjBYWUye66/LIIrzJq5Db35aTptEltQlhPq1G80Xx3s=; b=kW8tbcgMHyjTLsuWcpHWLPaOzvs+A4SvKVexD64Sv0bjZ6C6Fx0us9CRNG46V1n63GpYSxjKlW16dFK1ZcsLV49R+ye0YnYRI55WSfNhkXB69hRlJtnM3S2sV+t6nPi/cvPHsgb0pC6MlabiZFgNNlSUX4g0CohO6d44fvO3yi0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by CY1PR12MB0149.namprd12.prod.outlook.com (10.161.173.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Tue, 5 Dec 2017 01:05:09 +0000 From: Brijesh Singh <brijesh.singh@amd.com> To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@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 v9 17/38] crypto: ccp: Implement SEV_PDH_GEN ioctl command Date: Mon, 4 Dec 2017 19:04:17 -0600 Message-Id: <20171205010438.5773-18-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171205010438.5773-1-brijesh.singh@amd.com> References: <20171205010438.5773-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: CY4PR0601CA0087.namprd06.prod.outlook.com (52.132.96.156) To CY1PR12MB0149.namprd12.prod.outlook.com (10.161.173.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 465be7bd-b5a5-4dc2-a9bb-08d53b7c3b70 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603286); SRVR:CY1PR12MB0149; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0149; 3:QGY2AOE4M7+bVYeXvhYVszx27MvNy/Lk1JvPECHR1CaQu8L6dm8wO15Mn8Lij0W7ncCCtp/7ofaOMCXTPaaiwMkbZt95ypko7yYJnSIpk+0accaxVYUpRyw8s6rktaOLP10CO/vr9DWd6hQV/g6EKDck7UkwllOymUfqk1/A5JTiSOUYcG2/UNqBUXNZcdAoQJO/H3y/wMQMBLSAEPLQQc4NQhrtODYPTgPwJ3T8jekHGuv5193ulW6zLXBPh4Z1; 25:VoAqhyxYCirOVLkhaabK9a9wDfWHLra0yXNsYxf9LQQaXQYISJt/K8acArhN6B2kAQhdf2k5ZSUUo90SAa+rUtrt+c1nFXhnWiGq8FhBMKLLse/WD7p/1A2pLe+92805waOf6vi5esXV6SMG7NxX8qensaeOQczbpzoPvAJAFYIzl1zIgbKv7ORSC9euBvVMu4w8rkqM6Sjnv+VI6Ogwuhlmh9fi4G+n1BqGxDnGQVQS9xvgQKTVIGfx2XblwC8/U8iEdAAlyi2kz8tsanjK+ICTethfNiPxZ6aSVI6Lg26smasWTrDimgxYDupRQ0BMBZ+Y4YFYSvabyJNHEBP6Ag==; 31:Kiz4ol0fWly9f6dzoo7k++4HV6RP6ruf7vWdRE45yILcEvb+RfKxjLLA+syWFDPokfq0uTUd/tx8N9e5sqmt6c9O4oS2KZx1TKiKmIzwJT92kBEci5VJ2qvFPu1hPzdh1M0DiRbVF+Ocd9R7eEfpvx0dgV/9YsV95KPJXPTaI2+RwmkmohukD04XuZDTGNM/GsqtbbcfIRfuVPbeqmyl1fJ2CGLvGLnCwFFABZZZsRA= X-MS-TrafficTypeDiagnostic: CY1PR12MB0149: X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0149; 20:NF+uMiuq6tWwrIG7SIeIBsgEQAtCEeToJt5Ggz1OX/A1vOaBkPfi6nJ2XamDusIpQbx2KqlKl9dkUqLN7B74nWj3r8Y3ndjhuCNyMTx23kauATPODPPaEjejOoHsV4S8P7bbR+vDUTpSZ0xRYMRMqeXMW6ONygUhQfys4f/nlpyCYaAMHqAkMTux5qDHeY041n7qlhxpr0denE/zXMOtlUfdK75IzDJ3BGmKA5syeKawRtcRIsl4Q8saHSv5p3v8ELwpWpfE8QMIZBqSOH9XXLtI3g4anllsbXq+Fxf9T6klD4L5oF95YQHa65eaNhevW8Hkf7GqDoc3h79X6SmMaD07JGcFgKqD83xZsIp2arLETf5uO0txVuOH+KCOnQ2CfrVeWLwxJ3kJTxYOeX/MKx1jVLaviEMyR/Dg46rYq8mL/TdSC7pxjAXxDHOzkyHSkHXJhUpid6BUhv/Yt2uw52ugGzfteXhFPRh1ARFsfgVL4UV+uW1uVD+uTFc1gIsC; 4:9wfmGvOehyG+MF3zPDGcFIac4o0i+mOXNSHN59ktRLjh7ohcdD6Ia7CjvMkwepWy9jHIIT2cF/x+ggVO+VyQxuxUJxVARUELdxAH8JN9A5IJcTRQnw/c9PrIUx8Kq8JQVBbdVkE18EL4azNT+Ym5FF707tnnFYGE2r+8EBU4HIQVbXreoe/uWDqvyGSSZV359JUkUIz2R9mEyVSNsxUD22qFkVBCgixZ3O/JyI6tQwhdhLqiRtMartdQLhf00rnj+MqOH9OJi8j0UsTHPgqf6+wnRA3FSrrrtlwknIfyF9TCidZR4HeXF/H5ooDHHU7x6hFBqlBesIlX79wSB+Xvew== X-Microsoft-Antispam-PRVS: <CY1PR12MB014990149D54BD259712C2C3E53D0@CY1PR12MB0149.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231022)(6055026)(6041248)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011); SRVR:CY1PR12MB0149; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR12MB0149; X-Forefront-PRVS: 0512CC5201 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(366004)(39860400002)(346002)(376002)(189002)(199003)(16526018)(189998001)(106356001)(478600001)(2870700001)(101416001)(23676004)(52116002)(97736004)(86362001)(575784001)(7696005)(33646002)(54906003)(25786009)(105586002)(76176011)(316002)(2950100002)(6666003)(7736002)(2906002)(6486002)(50226002)(81166006)(81156014)(8936002)(53936002)(8676002)(4326008)(1076002)(305945005)(66066001)(6116002)(53416004)(5660300001)(47776003)(68736007)(3846002)(50466002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0149; 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?MTtDWTFQUjEyTUIwMTQ5OzIzOktaUjNtYllwdkpZbUlqMjFLNDZ4UElvbVJK?= =?utf-8?B?ZzlvYjhaQXZNTlZreGIxMDlwRXlnMng4WVZiVERiT3daUm9Wa0dxYVpreEdh?= =?utf-8?B?Z3dncTdPVzlyd0JFTUVMMHQ2Y0hjS21yUDd2d2xqYmxaVG9FYjRoay9WV2Jv?= =?utf-8?B?alY3MnJXVzYvZ2VrRkNMbnFWWUoyQjRmVGJoQUNZaVV6MjltOEd2WGUxcWFy?= =?utf-8?B?NXBnUVhVSTNSZW8rRUYyRnoxbHhrTjVJL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dmMcSnrY2/m1iMxCTAWHtWLMdH6u+ccj6ZGYMlKkSbhiIRfyxzsnedVCOk=; 7:4xpFNQX5ir5idX1ny2GPLJ53hmDyxgkmE6d1gh+0Ii9woCfJAgY5JhfJPSLfuNUT1cAP/w9rv/b1UI078yuZ5MH8Brd4ilS8J+1mQdkgpHnaHOWcMBKnviPsEh3zp+iNxM/q4C9RE/6SDq/g4Dwjx6z7haU13jCLAs6LDGrIsQlMjxN5+N+Q4/2u9yvw1lmVyFWeFYjm7jJk3BpcvRoQXthvYdoleGb+qx6xPNE19z/3orEjM5BwoNt/ik8idnRh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0149; 20:Mm70gqf5myYcW8WSqLg5ZE5b1hBg2wqtW+r//WRyG5g8kSq5DPGzbixBsbII185aA07Rz/LQltNAfY9iObzx7O7ChveWSE1fA5n/0smOL+7jRFY72mZlEEgTkwrXAHIQSyKZ8tYyonRt8Ju9wpTV0jTtv5YdmnSC+kmU7q0uKDk4NHcK+3AIsmbzOdSCNcxieLiEkifMd63oxwXuo2620WaJRpoHW5F+DJCoqhlDHB31ikOWzhDrl1r0y27UkZyC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2017 01:05:09.5297 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 465be7bd-b5a5-4dc2-a9bb-08d53b7c3b70 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0149 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 8aa8036023e0..fd3daf0a1176 100644 --- a/drivers/crypto/ccp/psp-dev.c +++ b/drivers/crypto/ccp/psp-dev.c @@ -333,6 +333,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;