Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1936651rwl; Mon, 26 Dec 2022 06:51:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxmFH92Wx6FmVXnFeVbdYzqpfFvcQXXKuFHEdNFu+TdVVqW6xZbLSSmF9ZdCMgCXIJTpPo X-Received: by 2002:a17:907:a708:b0:82e:a59a:5c3e with SMTP id vw8-20020a170907a70800b0082ea59a5c3emr21345272ejc.10.1672066308420; Mon, 26 Dec 2022 06:51:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672066308; cv=pass; d=google.com; s=arc-20160816; b=MMxAC0AFXPIZ8b3M/v9GoJWuOY1cVyTtVfpf8WUKMwI4h+zZMJQp5QPXoMieOdnIdF ma7pxYVZHQTqMtp4QzzuEbIKZPjtDFBifKgr/yLb1inqwST2pCR24ZElb3k0eOD0FJnH ybwAm6R1VKbQiuzfW0VJuF20YBtewhclWFJtHpu+OJzP/A+KJt/SleLwTTYiC2/Qt+a+ egBzP5Boe+djJOqGe8KwB2a9L27WToF4zq0hrMiezTRn2hyPqwD6JkvA9un8vd61gUkh 9PvWHPAzLtzT6loMjRekbJOQdmreOusp511NoRmy859lqxzeeAl45UofIqnhWxhhwqh6 Gzdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=eQtNR9NvGm+JMxSBZgO+HZlmZ6gdzpC/H5h15mXpmZ4=; b=hQoP7SMKMmTJrA66/APAf0azFHm/+uqEzuthkJhuAqN364+xyy97BbmlWyvlDxEjfy 2jsMzrUU/mWLmh0W1klLPmIq4W5frEqdx36EFJFVYxuoEH4qigjDVkfoTDz2tZr7vgKz IBGozRRWzXphGgfwl7FEi/0mti+souJkWlbOPPrLEieRetILML0j/vQAdAjy6WbP4mDj eR6JplIrU9B/KzAKZf/8qmnqysctEy4qw+W6xGwW/KAuCUQwXGSYXPRP2TnUSfL2xJm/ x3t1UV/CXoK9ipRTyMbO2yib78Spfe/keAuP6YLckGVu6nvygjqDkNNmnHYXpaBvFgs8 zOBA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SseGQ8jD; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di22-20020a170906731600b007ae5ccae236si9342336ejc.90.2022.12.26.06.51.32; Mon, 26 Dec 2022 06:51:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SseGQ8jD; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbiLZO31 (ORCPT + 67 others); Mon, 26 Dec 2022 09:29:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232257AbiLZO3C (ORCPT ); Mon, 26 Dec 2022 09:29:02 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2065.outbound.protection.outlook.com [40.107.223.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C6E6647A for ; Mon, 26 Dec 2022 06:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j6fp1zL7BtlD7TRlTuuhByCAJOwmCVOTzGyrta+qYgaK8cINfMM7XaL9+kFBY1xe+p2XxL4/L9mqlALIMowIxp0E7p/6r5AakWUDb2M7DlHvGack4I7onBG8LVBotijwuUK+oWSg3EIdI9a9XTpKckp3UPIJYq+RWAoe9cOWp+LbeO0/587ri19QZtzNB9NnpwcAdmKLts0bOY4gBZAjhVRef4FHgWTSnycsJ6YIQTomFExgcqiklDTe872cWwC255IL36R8Q+TtahcPeUOhYVkYO9fPdDHWEcYupMFeARXsqNXli4hZRZYudeFzqJj5tENBMAT0DKjhexWGwaI5lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eQtNR9NvGm+JMxSBZgO+HZlmZ6gdzpC/H5h15mXpmZ4=; b=a+FXJ5zVyCpOPQmatBOWpT/p9resbSuHYPWg1sImgN4gAcjPiCzB9cmHoqOFGvZdHRYmYYuhl3JAI2PA0Z/1YLcSdlvBX5FPnuqjZ8KngWdKDjWxC3CCidJKHvhFM6Bcu2MFn/wctq007QXlIsSj7R3tyfg/q6EEbA2K+wp6gGD568JHdTCKluYvMtF6u30TyTJXUzVF7CHUc8wl8YbZjX7vbIwUW4soJDgyr2M1fuhCs5X7fTGqco4WNkL8rTrpX6is7zqWzPlPUWunS3ZdYULLWJ9gsYgrznchpcm3Xef2AHHxnRIPnycV75aeZTS4ZcMPGugAec3MwawRZAlupg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eQtNR9NvGm+JMxSBZgO+HZlmZ6gdzpC/H5h15mXpmZ4=; b=SseGQ8jDxzHAZCHLfgu7ZJjbK8AGr8UM6mKF6dqmCrNkv20zM+hQWNcqjiOV5fqTHERGovnA5mYD11O77eiIHinDg2K98ZIsu5SatbF2JMWrXJKyUQH4zDsCR1x7BF+Xvnbx7LbY+g8k4mgJa8j2QURQyLZrnczyc7OiWl9lTII= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) by MN2PR12MB4222.namprd12.prod.outlook.com (2603:10b6:208:19a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.12; Mon, 26 Dec 2022 14:26:03 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::8200:4042:8db4:63d7]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::8200:4042:8db4:63d7%3]) with mapi id 15.20.5944.016; Mon, 26 Dec 2022 14:26:02 +0000 Message-ID: <9bffccfa-ed01-e1a0-8619-75670a340167@amd.com> Date: Mon, 26 Dec 2022 08:26:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v9 1/4] crypto: ccp - Name -1 return value as SEV_RET_NO_FW_CALL Content-Language: en-US To: Borislav Petkov , Dionna Glaze , Herbert Xu Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Peter Gonda , Paolo Bonzini , Joerg Roedel , Ingo Molnar , Andy Lutomirsky , John Allen , "David S. Miller" References: <20221207010210.2563293-1-dionnaglaze@google.com> <20221207010210.2563293-2-dionnaglaze@google.com> From: Tom Lendacky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DM5PR07CA0063.namprd07.prod.outlook.com (2603:10b6:4:ad::28) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB5229:EE_|MN2PR12MB4222:EE_ X-MS-Office365-Filtering-Correlation-Id: b05dcc79-4a5d-46e7-cadc-08dae74d1df3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: huA08iMvLxfkUCp5uhT+0+QLHOzqOn6IX2fqKw06462YWDPEeXi+ya50QJHV0LDJx0cDO3px5ON/VKgjY5FN59+d9veAm/1SSh96WPL8HaskJCI+h0m9sv7tTiy9kPcZoIjPtOukToLGdxZFFtihrz19bca7e1mIWxlAA50KfoXh+Df1N4jVsILKCsxqzVSGZSlylL/89sWRcUxOyEd37a0qqKHKKKqre8r2QIFODucGhpXT20m143gjpI+1Mw54DYraaBePC0IiE9zSG8w6T0dzs2KWI6YBukdHaB2JhHmUUhVJFArTXIzpInv6zW8nLZqcDEFN6JMWweIMyE6OtR9+ri3hhV0QWeMmfN5+IsI0sckqbdNZJbxFR+HDPLo6unQ7mJ+j5HE25otpJ6r38tBiKSlIlojyE9s9cn38bwCzrrAvFy9L/78KPjCsWjR27kda6oo4kkce7WhisZC/IiKHTkq753ayEjfrWn5iLpJvtmVovzVJwaOpIvoq+pW7oX+Qg+QxuboMJrZPMhJ3psvSumVZte+6VdudJe9Z1ba+Zm9iQVlXTXN/RwUhY1fmSHK+AGohJOCNr8dyQYajoVyZh0KWVm6T0IGAjcnEqNr0exB6oQ/9nvTER/u1tJuk5nOxv7jBLLDQKjoCwxWlzXEYeceLBGyf3Xai2PiMktr750ZOTMgkQEeivctWbZKu908e09tAia5MU478cFZUTOc+l5k47ZANnMYEIua2YSA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5229.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(396003)(39860400002)(366004)(451199015)(7416002)(5660300002)(41300700001)(8936002)(66946007)(83380400001)(8676002)(38100700002)(4326008)(66556008)(66476007)(31696002)(86362001)(2906002)(36756003)(6506007)(6486002)(478600001)(2616005)(31686004)(53546011)(54906003)(110136005)(6512007)(186003)(316002)(26005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dmZ5RWxjZHh2MmkwdkprUG5MN2grWVpVaWZOR25FbjI4YmJkOWlnMnA2RGl5?= =?utf-8?B?bS9uYlVrUCtwRFdTNUFsbVgwQXg2N2FKZTU0ZUIwUFJwcGcxQTJpYmdCeGVo?= =?utf-8?B?TTRnNE1EMVJNOEtOZDVUa3MxV2JWdGtOSVFnN3RxbmJrL3o2bnZVUXpDeWVz?= =?utf-8?B?VG54RXBPaVRHdFZqK2dtUWEvYXJHSFNkdi9qd09vMFp2VUI5ZnlYTEZ3OWtj?= =?utf-8?B?aUxKYm94WU5kam51bkxpZVA0MW1sM2YyczVHMU5UdXJYb2lxS3F1cCsxWjlk?= =?utf-8?B?N3VWdmkxNnNhc29VcVVrQ3hzNHJ2SjN1OUpDelJnYXZDUklzRDhHZEY2amNt?= =?utf-8?B?N1FIcFk4MkxCMWg2WDNkSE9TVGtJQkllYnpTb1I0TXhDUk1OVlJwSmJDMWhr?= =?utf-8?B?RHdZL21TcS8raTBHNk4xM3FXU0lhREUvMVVNTFpkcXBiSE1CYUI1U1dtQmZV?= =?utf-8?B?Y3VkTDhjTmY5WV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WxVSFNZN2lpUXJFakUxcFM5d3dLNmUvTUVVYkR5QldEdStzMmxadExG?= =?utf-8?B?UWkzWkpvT09Kam1OMGNvNWtmcU1KNWZYMTZNMVVtMlJGa29pZXN4bXR0Ym1K?= =?utf-8?B?Uy9rd2NLMDVWTWg5dVJ0QUNDdUlObno5VHFDVmV4aktuUTFHLzlGYkdyZEpV?= =?utf-8?B?cVlxZGVMckpMT1BpejI4N3VDZ3RzZWI5cm5Kc2ZnNTQ1WC9qQTM5SUUyZjJC?= =?utf-8?B?elgxbDF0UGlmMDJXeXpkVXFRZW1xMHBHR1h1VjR5eXZ2bDJOWGs0ekRCamFZ?= =?utf-8?B?V0lCckVtaDFvUUZISVdRQ3BNZ05SalptaHNoeUEvKzhyVkZzVTRoQURueDlR?= =?utf-8?B?WmYyRkw3c2hSQXFvYmNBN0cra3FlSkcrdXIvNzQ2OS9TeHNCTUowcGR6UFd0?= =?utf-8?B?SDh4c0cxRWJlSlZ0MCtEZ0xBNHJsZnJaU3NqcmwrcklEbC82TFozT3lzS3o5?= =?utf-8?B?N0dYQVZTV1dEVlJtZzZWK1M4R2NydGZMNlZRakdFZWhqYnU0QTZTdEVlcWx4?= =?utf-8?B?bnM1aXRtVEhJOWZydXdteW5LTTdFaVU1eitMdVVkZGIxZTRCTGYrcGpQQnhq?= =?utf-8?B?bXE2Q24wKzVkSzZnN0RiVHZ6UXdGMk9ybmpTcWx1R3NEQ21wemlSMzZSeGRC?= =?utf-8?B?V2M4MEdpcnB4NUhkcy9QOGJ1T1pTWXdQeVhZVTRUenNnTXp3K2FhMy9Hd2tq?= =?utf-8?Q?gXRjc5/bO1eVuHoktqLtmx9iR?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b05dcc79-4a5d-46e7-cadc-08dae74d1df3 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2022 14:26:02.8610 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fMJD2Gk3CTwZ1GKJhq/daT4mJKirE/AtVrE/iYgcsYD2r9WeSHIYdpEUDLTQifF6gu4gIXfft7ZPdMU1jKNwCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4222 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/22/22 09:31, Borislav Petkov wrote: > On Wed, Dec 07, 2022 at 01:02:07AM +0000, Dionna Glaze wrote: >> From: Peter Gonda >> >> The PSP can return a "firmware error" code of -1 in circumstances where >> the PSP is not actually called. To make this protocol unambiguous, the >> value is named SEV_RET_NO_FW_CALL. >> >> Cc: Thomas Lendacky >> Cc: Paolo Bonzini >> Cc: Joerg Roedel >> Cc: Ingo Molnar >> Cc: Andy Lutomirsky >> Cc: John Allen >> Cc: Herbert Xu >> Cc: "David S. Miller" >> Cc: Borislav Petkov >> >> Signed-off-by: Peter Gonda >> Signed-off-by: Dionna Glaze >> --- >> Documentation/virt/coco/sev-guest.rst | 2 +- >> drivers/crypto/ccp/sev-dev.c | 22 ++++++++++++++-------- >> include/uapi/linux/psp-sev.h | 7 +++++++ >> 3 files changed, 22 insertions(+), 9 deletions(-) > > Looks good, did some minor touch ups ontop, see below. > > @Tom: Ack/Rev-by? Acked-by: Tom Lendacky > > @Herbert: ok to carry this through tip? > > Thx. >