[tip:,x86/sev] virt/sev-guest: Add a MODULE_ALIAS

Message ID 166792000609.4906.10929281276330288769.tip-bot2@tip-bot2
State New
Headers
Series [tip:,x86/sev] virt/sev-guest: Add a MODULE_ALIAS |

Commit Message

tip-bot2 for Thomas Gleixner Nov. 8, 2022, 3:06 p.m. UTC
  The following commit has been merged into the x86/sev branch of tip:

Commit-ID:     2874529b3513bdc90299c90f40713602da685e35
Gitweb:        https://git.kernel.org/tip/2874529b3513bdc90299c90f40713602da685e35
Author:        Cole Robinson <crobinso@redhat.com>
AuthorDate:    Fri, 04 Nov 2022 16:42:45 -04:00
Committer:     Borislav Petkov <bp@suse.de>
CommitterDate: Tue, 08 Nov 2022 15:54:34 +01:00

virt/sev-guest: Add a MODULE_ALIAS

Autoload the driver when, for example, SNP init code creates the
corresponding platform device.

  [ bp: Rewrite commit message. ]

Fixes: fce96cf04430 ("virt: Add SEV-SNP guest driver")
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/ff480c5e688eb0a72a4db0a29c7b1bb54c45bfd4.1667594253.git.crobinso@redhat.com
---
 drivers/virt/coco/sev-guest/sev-guest.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/drivers/virt/coco/sev-guest/sev-guest.c b/drivers/virt/coco/sev-guest/sev-guest.c
index e9704ae..13911b9 100644
--- a/drivers/virt/coco/sev-guest/sev-guest.c
+++ b/drivers/virt/coco/sev-guest/sev-guest.c
@@ -742,3 +742,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");