virt: sevguest: Rename the sevguest dir and files to sev-guest
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 20 Apr 2022 14:14:14 +0000 (09:14 -0500)
committerBorislav Petkov <bp@suse.de>
Wed, 27 Apr 2022 11:29:56 +0000 (13:29 +0200)
Rename the drivers/virt/coco/sevguest directory and files to sev-guest
so as to match the driver name.

  [ bp: Rename Documentation/virt/coco/sevguest.rst too, as reported by sfr:
    https://lore.kernel.org/r/20220427101059.3bf55262@canb.auug.org.au ]

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/2f5c9cb16e3a67599c8e3170f6c72c8712c47d53.1650464054.git.thomas.lendacky@amd.com
Documentation/virt/coco/sev-guest.rst [moved from Documentation/virt/coco/sevguest.rst with 100% similarity]
Documentation/virt/index.rst
drivers/virt/Kconfig
drivers/virt/Makefile
drivers/virt/coco/sev-guest/Kconfig [moved from drivers/virt/coco/sevguest/Kconfig with 87% similarity]
drivers/virt/coco/sev-guest/Makefile [moved from drivers/virt/coco/sevguest/Makefile with 50% similarity]
drivers/virt/coco/sev-guest/sev-guest.c [moved from drivers/virt/coco/sevguest/sevguest.c with 98% similarity]
drivers/virt/coco/sev-guest/sev-guest.h [moved from drivers/virt/coco/sevguest/sevguest.h with 100% similarity]

index 40ad0d20032e486189fc2ab0619ea9bc123bfe33..492f0920b9885c828a6be62461315b3bdb9ce5cb 100644 (file)
@@ -13,7 +13,7 @@ Linux Virtualization Support
    guest-halt-polling
    ne_overview
    acrn/index
-   coco/sevguest
+   coco/sev-guest
 
 .. only:: html and subproject
 
index 7d3273cfab27626ecf11c744e685fd65c45f93c1..0c1bba7c5c66b851d59e66c9e868de4c3f6e23c8 100644 (file)
@@ -48,6 +48,6 @@ source "drivers/virt/nitro_enclaves/Kconfig"
 
 source "drivers/virt/acrn/Kconfig"
 
-source "drivers/virt/coco/sevguest/Kconfig"
+source "drivers/virt/coco/sev-guest/Kconfig"
 
 endif
index 7b87a7ba1972a73c5eae09177e189526a0de637b..b2e6e864ebbe32cca48c518b0d3ee500e4e6407c 100644 (file)
@@ -9,4 +9,4 @@ obj-y                           += vboxguest/
 
 obj-$(CONFIG_NITRO_ENCLAVES)   += nitro_enclaves/
 obj-$(CONFIG_ACRN_HSM)         += acrn/
-obj-$(CONFIG_SEV_GUEST)                += coco/sevguest/
+obj-$(CONFIG_SEV_GUEST)                += coco/sev-guest/
similarity index 87%
rename from drivers/virt/coco/sevguest/Kconfig
rename to drivers/virt/coco/sev-guest/Kconfig
index 74ca1fe09437ca655e0fd41b77d3f3a296968323..f9db0799ae67c3431c70290e1c8b05167805882f 100644 (file)
@@ -11,4 +11,4 @@ config SEV_GUEST
          userspace interface to communicate with the PSP to request the
          attestation report and more.
 
-         If you choose 'M' here, this module will be called sevguest.
+         If you choose 'M' here, this module will be called sev-guest.
similarity index 50%
rename from drivers/virt/coco/sevguest/Makefile
rename to drivers/virt/coco/sev-guest/Makefile
index b1ffb2b4177b8db68e7ffd27bdd7a3022af6f67b..63d67c27723a6060a329d2aea5794ba118df6c11 100644 (file)
@@ -1,2 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_SEV_GUEST) += sevguest.o
+obj-$(CONFIG_SEV_GUEST) += sev-guest.o
similarity index 98%
rename from drivers/virt/coco/sevguest/sevguest.c
rename to drivers/virt/coco/sev-guest/sev-guest.c
index 18c3231a816df20222d948ef9d8450fba71afb1a..90ce16b6e05f91e9f29173d9def568ab4075f863 100644 (file)
@@ -25,7 +25,7 @@
 #include <asm/svm.h>
 #include <asm/sev.h>
 
-#include "sevguest.h"
+#include "sev-guest.h"
 
 #define DEVICE_NAME    "sev-guest"
 #define AAD_LEN                48
@@ -724,9 +724,9 @@ static int __exit sev_guest_remove(struct platform_device *pdev)
 }
 
 /*
- * This driver is a common SEV guest interface driver and meant to support
- * any SEV guest API. As such, even though it has been introduced along with
- * the SEV-SNP support, it is named "sev-guest".
+ * This driver is meant to be a common SEV guest interface driver and to
+ * support any SEV guest API. As such, even though it has been introduced
+ * with the SEV-SNP support, it is named "sev-guest".
  */
 static struct platform_driver sev_guest_driver = {
        .remove         = __exit_p(sev_guest_remove),