Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1829430rwb; Mon, 7 Nov 2022 06:19:44 -0800 (PST) X-Google-Smtp-Source: AMsMyM6DbL6LCjy6Cgcke2dpU9/GYZIZqkbeWvrouxwkD+wwwrh9nA6fxqcqCBUIBpHUG5xGX7Ec X-Received: by 2002:a05:6402:298d:b0:451:5fc5:d423 with SMTP id eq13-20020a056402298d00b004515fc5d423mr48068766edb.102.1667830784013; Mon, 07 Nov 2022 06:19:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667830784; cv=pass; d=google.com; s=arc-20160816; b=zN7OpDV43F2YGB3t43+R04PDiqxAr8CwpNLg4RDBF6wAKNx0L/e4H1v+hMpGgkb2zT 2Nau7Ub9Hnquo/YovhTi8v02AaGbeIeCJqcMtZyzmsLyc3kEOFvbZZU7fWvYNrEcsp5a msN3GngpqIOUFVlsCId18u9Qoqd2ryaWdxsZH9WBcEIVTOgGzDhQW/Z5AzUo7G/UT7li nC34LTr+pApI/L5SKA8Ps6MRG81w6c7bExm1oWs1ARttRezHTNWBTP0md6YEKSAIqhIs PdnZHhLupDW14LQEIgxcW93Wh/aN3goLoXI+AHS2Fj1QjZ9uxrg7OnFo0HjRCfX8ZXwK /SfQ== 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:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=in9EP35SP0KbxWOYrvyEmZd9TZ/jc3DSp5dvJ7FLrOA=; b=Ni1+9ld724Uqjm3rSmVx+piazgTJpK6mMvUezNrgiUX6c34TYlUlqFXWu97KEys9fm 9UyjwQSM+OghOVQdx1N8RMLvuTZMDplnTJPUl6K6MVG3MqS/EAQeSQlkm20mOpsGKPpu jM+dy8sqgDx7oEUIiPA0bTqmoAS7Ab6FwjR2RKKJjfns7eQvSabJ+B4BATPOTbPtga+8 UhyO0ztEq4NYInDsQ7dw0jOyh1KVpy4rKR+bexNggnr0VGiuyQAXMNUvKJAUTH66FbP3 6Lu7MGJ11rWN9KAK8UAwbZNjyEu7bnmimWlC4bLP3POY7NjzSTkTclYYykEzF9wjVcty OTSQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=wkQickL0; 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 oz30-20020a1709077d9e00b0078d0a31f987si9436724ejc.755.2022.11.07.06.19.20; Mon, 07 Nov 2022 06:19:44 -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=wkQickL0; 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 S231875AbiKGOJQ (ORCPT + 93 others); Mon, 7 Nov 2022 09:09:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231899AbiKGOJN (ORCPT ); Mon, 7 Nov 2022 09:09:13 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2066.outbound.protection.outlook.com [40.107.223.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49FB71A382 for ; Mon, 7 Nov 2022 06:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=clyrkvXgFuDU96D0rmAgOUk55Vxls1L61GMJanj17SQcIo35KWfGXjdmJQOJh8Pe2gOZNgc8U8lNJ7cPRwij/l1zqGsFldpy20LLWfzPylIJW3fCdmaKtlaPnT3c/2umTgPP3UD2nddw0+Eljs/7dwjjQYejB8kvpKZ7ZWUjar4oGtykzrwsi6ta9ho0ZBAh3Y6VSJK5JhZar9dt31mKtBCzAe17+B+3HorzMjG2KLAt1hJrpZJA7r7+kHPTlgux6dAteAi2ibyMQtx15OtZ0x4aXT9ZLf+NzCKmYoDxDgmcaUcz84Nbl0d+xyjh9Jr3GubK9BFwPnI/HGNb6scGeg== 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=in9EP35SP0KbxWOYrvyEmZd9TZ/jc3DSp5dvJ7FLrOA=; b=Qfd1MzcNOXJRyLGmjRFaTpnJqWAP11hTDVzJcD17R6h247kJvOptnFI7FW/A2bDY+ojaVxuD0z5qZcV56YrAoG9YbIu4+sIkCHpIrXX2cn/X9aC1PW2SCCUm/uYjA3md1dDK8gY+EmjZRfwav0B4RmX6FxBLNYg7Pa93k+bd554fe2SxkeDJXvALIflGc88ixS53stny9OsNoWXk+2yhkkhuIwqUg4TORBng8XZ+OWzWr8x6XbYQ2lNZE0HepOwLR2lDEBFK+iplF2HIxKFth4l/3XLS8NA2Z0Y0ROUXxLB5mnAybA+mYwkyh/6rzntb4ZdJ//fl0+3f5USGP+0pCA== 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=in9EP35SP0KbxWOYrvyEmZd9TZ/jc3DSp5dvJ7FLrOA=; b=wkQickL0GoCVdreQOOqT1NXER9W14FyDC23o8Npr0Qx6r7/qR0VQn6HKguRS1KWFGf97B3nR27uOnURZtt1CSHfy9fPewvZAvpjCgaHIvG1htLxwtJxQB3gcJwl35VsvCoUu2UcodlTF9Sq927MIqP3cdhUfhfKhSGwPE5tAkUc= 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 SJ0PR12MB5504.namprd12.prod.outlook.com (2603:10b6:a03:3ad::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.26; Mon, 7 Nov 2022 14:09:10 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::4da8:e3eb:20eb:f00]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::4da8:e3eb:20eb:f00%2]) with mapi id 15.20.5791.026; Mon, 7 Nov 2022 14:09:10 +0000 Message-ID: Date: Mon, 7 Nov 2022 08:09:08 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] virt: sev-guest: Add MODULE_ALIAS To: Cole Robinson , Borislav Petkov Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, brijesh.singh@amd.com References: <91c2eaad-92fc-4251-f9e9-7d73cf2b5da5@redhat.com> Content-Language: en-US From: Tom Lendacky In-Reply-To: <91c2eaad-92fc-4251-f9e9-7d73cf2b5da5@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0363.namprd03.prod.outlook.com (2603:10b6:610:119::32) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB5229:EE_|SJ0PR12MB5504:EE_ X-MS-Office365-Filtering-Correlation-Id: 67480747-9488-44cd-5df0-08dac0c9a418 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 19rNX0Aaxh+d3Ml41a1J544lnOEHGL+cZovOwsh89veWw6rgvyo+Im5A4cDegxhqwURLy16wt4Gfp8MjQu7QveN/qQgjn3ZZJhVvaz9lbupOtTptUfirz7xlyA6KYzLHrSg4auLPVJ8gyKvvFV6o3kl9nx7HQafsJ+kKcXD/l+pZTsutOWa4flZJ2NJW/Lh2WGItRW+cDiO9BxQwjHW6pgTfL6ha+UMgfeYz2lJq7Z4qk3oXKUDK4+OjL1GmnG4+ipdSXUm40m2iLQvwkeiDq7BZnAz9X3EpRuTsnVJYw61TrMxM01LpXvxF8sVPCkBKbfy4NwAPsWTJ9O+3DJ6V9h3IcYTaimIEy+E1lL4+b0nyWBrwoKvobablY08RNwhr3s/b0/9xOsl4R8h6HCzxZE8Z6MLzsOXQv9iHB8Sbl9VRqfQPBQ/L5zAdGsZFQE/tH1ffVXEzoSRgp5x/1I5s9ZM9W8gOecyQwibbuKWmFuU2CfpN0BsglkmKHifdeYj4u1Ev0KLp6K605STcWNmazaoTdVSwHrS1acB2G+sb7liLw2yW40xFGXotHRDO8xit4ThiXg5Juo5UZfyj7HkHhooIJOUD8FbQNzf7XX/YS0bilEebUZF496co4+fSq+Cu+6XlXowVMw9Ow/bjv85AL5S8pAVUxsiQ7ypW8ZyIjgniF8ASEts85Fm7SkA4PyL3jAffwA57HzZuanWAPA3fTDgtMj1+g6LW7TsVMzgWeaArHVR6R8yRU5zz7hPtK1ozbTVNHdRDI2I6z56Fvim6plHNrNxKweitXSxj7iXnzxHM2grDCjtIKhvEq7vN9QuVSKZHjPRzVjrF1m91lHXCCQ== 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)(376002)(136003)(396003)(366004)(346002)(39860400002)(451199015)(53546011)(6512007)(26005)(2616005)(186003)(6506007)(4744005)(2906002)(110136005)(478600001)(966005)(6486002)(5660300002)(41300700001)(38100700002)(8936002)(4326008)(316002)(66946007)(66556008)(66476007)(8676002)(36756003)(31696002)(86362001)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QUZ0dThnVjFOMktwS2pSNGZ1RHFzaG5wSlZhK2pHb2UvR05yZ1NqZCtnS1d6?= =?utf-8?B?ZU4xR0FlMjlvWFBSV20vTmxJRWZyUTN4OHJTcjZsTkhhOEJtZlhtQUhNYnV1?= =?utf-8?B?NHVvbndQSDBKVEsvcXltMmViVmFaVFByaDdjQlJWSDNhSVQ4bzJzTXNTU3N5?= =?utf-8?B?RzBQRGRzYTB2cnZ0SEovRGlaUzJ2Y2lOZ2JJTTNLMGlxdmdxcXNkVW5xWEhQ?= =?utf-8?B?WnZuZngzeW15Y3pSQm8vWDJuUG9pVmdOSGxLVnE4TXVSaW03cXpxTjc3MGt1?= =?utf-8?B?UW40QnpHL0JTckM2WU8yMy9WSVl3UVdxWXVDYnBvVEtCSGxCZm5JRExjMDU3?= =?utf-8?B?VHNOTEtxcnU4QXRtSkxhZ1JJTzBxRkF5Tk9mY2k4S2l4Rzg4clFCb3luZ0Ji?= =?utf-8?B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Dlvd3gvemov?= =?utf-8?B?OUduVWtOZzRwN3c4STdBUnR0cWJsK3NVL1B5UFdoUjhtSlBPZmFvMFBUdExr?= =?utf-8?B?RkFuc1dyekRWdWZqeEtmK3dKQ2JvQ3V0dWZNVDZqd1VITGd3ZVRBVW16dk1p?= =?utf-8?B?bnRGRDRYalRLN056SHAvNnMxMXZYNExDU2g0NUs3N3hHZktoYjYvcmU5OXl3?= =?utf-8?B?N0xWZDRlNnpZc3ZqSjltZTE1VytPdHBGYWk2SzIwWm9WZTAyTXlPTmFtZXcr?= =?utf-8?B?QUkweWFJNWM5TGNLdU84YjZBdGE4a09JdjZZSW1KMEdXY29PYm10bXNtOTJp?= =?utf-8?B?clJGMlA3RUFmR0dVZEdtUlAyUmRMekNHTWdWVkxkeHNjWUorUW00ZlhZZnoz?= =?utf-8?B?aURiT202SldzdlMvNkd2UlJtQXZoWk9mN2pFY3Z1eTJOOHRIeU1nNnZTbE1h?= =?utf-8?B?YThjejNkRjkyREF2N1hpNStlMWwyVVE5NFExSGFUWUtuMUxvTXBxd3ZlR05a?= =?utf-8?B?QjRIeXhDdFB1TWc5WjNxZ2gvM0VRcE9QcUs3NEJISFBjelpQMXl1cVFoSEZr?= =?utf-8?B?SzFRSGxyYUVIUy8wRmlCa2U3a2dEZ3hydTA2TDF2L2txSWJBUEtNYVIvekhG?= =?utf-8?B?TFUvbVpKNmduQnIwODF4U1Z0eUFXTXEvWHRkR2o5dFpDUmpFMjMzeUpuQXN1?= =?utf-8?B?OFRrUGxCMEFtN2VweG9maGpQV0ZqV0huR3o0SmtrTm5lRUlxd0hkWk52dXQ1?= =?utf-8?B?bDdCejFRYk5GbFFGbHlXT0RIWHZLa2t5MENNYW5XZzBPdTM5SFlZZjNyQTM4?= =?utf-8?Q?Bw2RkV+dmvZygHwTbuHAojfjW?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67480747-9488-44cd-5df0-08dac0c9a418 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2022 14:09:10.1929 (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: s1Zkxxigg/dCsxjsJ1xdYOMEfXGT/V4/AevF/MU7BWmAb06JaYTl06/aTFEUEnAQfphaoaQQA23m4+rSxMIvmA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5504 X-Spam-Status: No, score=-2.1 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 11/5/22 11:08, Cole Robinson wrote: > On 11/4/22 4:53 PM, Borislav Petkov wrote: >> On Fri, Nov 04, 2022 at 04:42:45PM -0400, Cole Robinson wrote: >>> This fixes driver autoloading >> >> What is the scenario where this needs to be autoloaded? >> > > Any use case that needs /dev/sev-guest, I guess. Saves software from > having to do the modprobe manually. For example, nothing I can find in > https://github.com/AMDESE/sev-guest loads the driver, it expects > /dev/sev-guest to be there already > > Mostly I assumed lack of autoloading was an oversight. Was it > intentionally omitted? It probably was an oversight. To me, it makes sense to auto-load the module if the SNP support created the platform device as part of SNP initialization. Thanks, Tom > > Thanks, > Cole >