From: sashiko-bot@kernel.org
To: "Jason Gunthorpe" <jgg@nvidia.com>, kvm@vger.kernel.org
Subject: Re: [PATCH tsm 4/4] attestation: Move AMD SEV Guest tsm_report driver
Date: Tue, 01 Dec 2026 01:00:13 +0000 [thread overview]
Message-ID: <sashiko-outbox-242304@kernel.org> (raw)
In-Reply-To: <4-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] attestation: sev-guest module rename breaks vmpck_id module
parameter ABI
- [Low] attestation: CONFIG_ATTESTATION_AMD_SEV_GUEST drops default m
from SEV_GUEST
--
commit ca861c491d1af0016726a054ada60dd92452cdc8
Author: Jason Gunthorpe <jgg@ziepe.ca>
attestation: Move AMD SEV Guest tsm_report driver
This commit moves the AMD SEV guest driver from
drivers/virt/coco/sev-guest/ to drivers/attestation/amd/ under the new
CONFIG_ATTESTATION_AMD_SEV_GUEST option.
> diff --git a/drivers/attestation/amd/Kconfig b/drivers/attestation/amd/Kconfig
> new file mode 100644
> index 0000000000000..c3203d2f184f0
> --- /dev/null
> +++ b/drivers/attestation/amd/Kconfig
> @@ -0,0 +1,15 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +config ATTESTATION_AMD_SEV_GUEST
> + tristate "AMD SEV Guest Attestation Driver"
> + depends on AMD_MEM_ENCRYPT
[Severity: Low]
Should ATTESTATION_AMD_SEV_GUEST preserve the "default m" that SEV_GUEST
had? Without it, existing configs with AMD_MEM_ENCRYPT and ATTESTATION
enabled will disable the SEV guest driver by default on olddefconfig.
[ ... ]
> diff --git a/drivers/attestation/amd/Makefile b/drivers/attestation/amd/Makefile
> new file mode 100644
> index 0000000000000..2d2f5ca188813
> --- /dev/null
> +++ b/drivers/attestation/amd/Makefile
> @@ -0,0 +1,4 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +attestation_amd_sev_guest-y := sev-guest.o
> +
> +obj-$(CONFIG_ATTESTATION_AMD_SEV_GUEST) += attestation_amd_sev_guest.o
[Severity: Medium]
Does renaming the module from sev-guest to attestation_amd_sev_guest
break the vmpck_id module parameter and module reloading?
sev-guest.c defines module_param(vmpck_id, int, 0444), and
Documentation/virt/coco/sev-guest.rst tells users to recover from a wiped
VMPCK by reloading the sev-guest driver with vmpck_id. Changing
KBUILD_MODNAME without MODULE_PARAM_PREFIX or MODULE_ALIAS("sev-guest")
moves the parameter from sev_guest.vmpck_id and
/sys/module/sev_guest/parameters/vmpck_id to
attestation_amd_sev_guest.vmpck_id and breaks "modprobe sev-guest".
--
Sashiko AI review · https://sashiko.dev/#/patchset/0-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com?part=4
next prev parent reply other threads:[~2026-12-01 1:00 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:52 [PATCH tsm 0/4] Start building drivers/attestation Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 1/4] attestation: Start the new subsystem using tsm_report and mr Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 2/4] attestation: Move the ARM Realm Token tsm_report driver Jason Gunthorpe
2026-12-01 5:25 ` Aneesh Kumar K.V
2026-12-01 13:03 ` Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 3/4] attestation: Move Intel TDX Guest tsm_report and mr driver Jason Gunthorpe
2026-12-01 16:19 ` Dave Jiang
2026-12-01 16:30 ` Jason Gunthorpe
2026-12-01 17:58 ` Dave Jiang
2026-12-01 17:44 ` Edgecombe, Rick P
2026-12-01 17:57 ` Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 4/4] attestation: Move AMD SEV Guest tsm_report driver Jason Gunthorpe
2026-12-01 1:00 ` sashiko-bot [this message]
2026-12-01 3:05 ` Borislav Petkov
2026-12-01 13:07 ` Jason Gunthorpe
2026-12-01 15:46 ` Tom Lendacky
2026-12-01 16:20 ` Jason Gunthorpe
2026-12-01 16:38 ` Tom Lendacky
2026-12-01 17:11 ` Jason Gunthorpe
2026-12-01 17:33 ` Tom Lendacky
2026-12-01 17:53 ` Jason Gunthorpe
2026-12-01 18:57 ` Tom Lendacky
2026-12-01 19:33 ` Jason Gunthorpe
2026-12-01 14:32 ` [PATCH tsm 0/4] Start building drivers/attestation Jiri Pirko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-242304@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=jgg@nvidia.com \
--cc=kvm@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.