Message ID | ff480c5e688eb0a72a4db0a29c7b1bb54c45bfd4.1667594253.git.crobinso@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp631395wru; Fri, 4 Nov 2022 13:51:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IPF2u2KErImeGjEEpdUds2Ypa7S7Q0zXHElE461rvC3NVtY8A2qPhS+Wu3s6Z3W3iZoc9 X-Received: by 2002:a17:902:d4ce:b0:188:5340:4a3a with SMTP id o14-20020a170902d4ce00b0018853404a3amr10714871plg.79.1667595060340; Fri, 04 Nov 2022 13:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667595060; cv=none; d=google.com; s=arc-20160816; b=ZIMazxDg/Uqobk3K+jrsIDhWPtHBK01V2MTXwPcMfwDndL61JDeVBLKsqT/CpLsGwq oasEF3QSiwNIfMdpRDfP8KEOWk2NA/qZwDL21lgLxln3qUDIsif9HS3pusNVwNa6kU9d l7TDEmSvPKgO3+1v59Et5LeNCYqyS8AM7x7orJYQ6p738ZB6+1NkuvbI6NqHCVCiz6Ij fXepxnUENdrLTM57GY47E+dpW7kQKNxTtSH3TOTaQxloNy4CX4lxwbg71qVo7MteHMj2 RfVBJiWhjCtbyvtdbnsQYWJl3duKWmYdmqOyjJwxW7FM6Cx4WYCLpze6VQvEO3qHBX8L OTDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QLfNlA1GCQXJ7R842kayw5n0l6+Ih1F81EObg8YgABk=; b=PQ8jUyux4zYSF1+7jJUHGLq+VoGcPsCWrrXvaF6cagO9IblYQpKtM85eZVrvNeDj+0 AO/EhPZCAZpH+CPCvJD3IByjd1HysjnLfnblphXGUJpdmXbXX4O/+uKVhPxqVtkz0QZ2 1vc/aMbCwLuIDcYUjhYa+/mciMF/94lCPhn/baHk0k+xLN9godzHPsBHXS8ji8jwKVVO pnU+lewVI6tHq4G3kvXn0erEGA30cAD9vmY2z4IwTffiUt+JIMUIOXg8P3jl7gUgOoCN 26V5Pqzav+a6YSSBcaMUYUl0HLg5Cj8WD/WOnC3usBfCnWWcAnyELPq5EgWFtHG4qjVN WdJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YOHPgMoe; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a170902ce0900b001868a61d507si616308plg.180.2022.11.04.13.50.47; Fri, 04 Nov 2022 13:51:00 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=YOHPgMoe; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230082AbiKDUoK (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Fri, 4 Nov 2022 16:44:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbiKDUoI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Nov 2022 16:44:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5935945EF9 for <linux-kernel@vger.kernel.org>; Fri, 4 Nov 2022 13:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667594585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QLfNlA1GCQXJ7R842kayw5n0l6+Ih1F81EObg8YgABk=; b=YOHPgMoeOnSvtI/xX+6Tc4NHv0ohd7kAJdJLRYKqPahpW6M7LrFDlbMo+lbETSgsiOL30i uJ6IRX899fse/C2LmwZ8M4qIzXbvTg4oTu4mVtPkUaXes16tFNK4lIqnil3GWxhu+sGyQC 4kDDShDWa5vDwi8kFNDrtXSRo/wtb6A= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-350-FrGLllYoPnO_hKdqC4zyTw-1; Fri, 04 Nov 2022 16:43:02 -0400 X-MC-Unique: FrGLllYoPnO_hKdqC4zyTw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ADAFC29AB41F; Fri, 4 Nov 2022 20:43:01 +0000 (UTC) Received: from worklaptop.redhat.com (unknown [10.22.10.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6605D492B0D; Fri, 4 Nov 2022 20:43:01 +0000 (UTC) From: Cole Robinson <crobinso@redhat.com> To: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Cc: thomas.lendacky@amd.com, brijesh.singh@amd.com, bp@suse.de, Cole Robinson <crobinso@redhat.com> Subject: [PATCH] virt: sev-guest: Add MODULE_ALIAS Date: Fri, 4 Nov 2022 16:42:45 -0400 Message-Id: <ff480c5e688eb0a72a4db0a29c7b1bb54c45bfd4.1667594253.git.crobinso@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748600158324693095?= X-GMAIL-MSGID: =?utf-8?q?1748600158324693095?= |
Series |
virt: sev-guest: Add MODULE_ALIAS
|
|
Commit Message
Cole Robinson
Nov. 4, 2022, 8:42 p.m. UTC
This fixes driver autoloading
Fixes: fce96cf04430 ("virt: Add SEV-SNP guest driver")
Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
drivers/virt/coco/sev-guest/sev-guest.c | 1 +
1 file changed, 1 insertion(+)
Comments
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?
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? Thanks, Cole
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 >
On 11/4/22 15:42, Cole Robinson wrote: > This fixes driver autoloading > > Fixes: fce96cf04430 ("virt: Add SEV-SNP guest driver") > Signed-off-by: Cole Robinson <crobinso@redhat.com> Acked-by: Tom Lendacky <thomas.lendacky@amd.com> > --- > drivers/virt/coco/sev-guest/sev-guest.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/virt/coco/sev-guest/sev-guest.c b/drivers/virt/coco/sev-guest/sev-guest.c > index f422f9c58ba7..4c426dbcd166 100644 > --- a/drivers/virt/coco/sev-guest/sev-guest.c > +++ b/drivers/virt/coco/sev-guest/sev-guest.c > @@ -744,3 +744,4 @@ MODULE_AUTHOR("Brijesh Singh <brijesh.singh@amd.com>"); > MODULE_LICENSE("GPL"); > MODULE_VERSION("1.0.0"); > MODULE_DESCRIPTION("AMD SEV Guest Driver"); > +MODULE_ALIAS("platform:sev-guest");
diff --git a/drivers/virt/coco/sev-guest/sev-guest.c b/drivers/virt/coco/sev-guest/sev-guest.c index f422f9c58ba7..4c426dbcd166 100644 --- a/drivers/virt/coco/sev-guest/sev-guest.c +++ b/drivers/virt/coco/sev-guest/sev-guest.c @@ -744,3 +744,4 @@ MODULE_AUTHOR("Brijesh Singh <brijesh.singh@amd.com>"); MODULE_LICENSE("GPL"); MODULE_VERSION("1.0.0"); MODULE_DESCRIPTION("AMD SEV Guest Driver"); +MODULE_ALIAS("platform:sev-guest");