Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-03-05 Thread Stefano Garzarella
On Tue, Mar 04, 2025 at 07:27:30PM +0200, Jarkko Sakkinen wrote: On Mon, Mar 03, 2025 at 05:46:16PM +0100, Stefano Garzarella wrote: On Sat, Mar 01, 2025 at 03:51:46AM +0200, Jarkko Sakkinen wrote: > On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: > > Add driver for the vTPM

Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-03-04 Thread Jarkko Sakkinen
On Mon, Mar 03, 2025 at 05:46:16PM +0100, Stefano Garzarella wrote: > On Sat, Mar 01, 2025 at 03:51:46AM +0200, Jarkko Sakkinen wrote: > > On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: > > > Add driver for the vTPM defined by the AMD SVSM spec [1]. > > > > > > The specificati

Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-03-03 Thread Jason Gunthorpe
On Mon, Mar 03, 2025 at 05:19:05PM +0100, Stefano Garzarella wrote: > On Fri, Feb 28, 2025 at 08:28:19PM -0400, Jason Gunthorpe wrote: > > On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: > > > +/* > > > + * tpm_svsm_remove() lives in .exit.text. For drivers registered via > > >

Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-03-03 Thread Stefano Garzarella
On Sat, Mar 01, 2025 at 03:51:46AM +0200, Jarkko Sakkinen wrote: On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: Add driver for the vTPM defined by the AMD SVSM spec [1]. The specification defines a protocol that a SEV-SNP guest OS can use to discover and talk to a vTPM emul

Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-03-03 Thread Stefano Garzarella
On Fri, Feb 28, 2025 at 08:28:19PM -0400, Jason Gunthorpe wrote: On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: +/* + * tpm_svsm_remove() lives in .exit.text. For drivers registered via + * module_platform_driver_probe() this is ok because they cannot get unbound + * at runt

Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-02-28 Thread Dionna Amalie Glaze
On Fri, Feb 28, 2025 at 5:51 PM Jarkko Sakkinen wrote: > > On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: > > Add driver for the vTPM defined by the AMD SVSM spec [1]. > > > > The specification defines a protocol that a SEV-SNP guest OS can use to > > discover and talk to a vT

Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-02-28 Thread Jarkko Sakkinen
On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: > Add driver for the vTPM defined by the AMD SVSM spec [1]. > > The specification defines a protocol that a SEV-SNP guest OS can use to > discover and talk to a vTPM emulated by the Secure VM Service Module (SVSM) > in the guest c

Re: [RFC PATCH v2 5/6] tpm: add SNP SVSM vTPM driver

2025-02-28 Thread Jason Gunthorpe
On Fri, Feb 28, 2025 at 06:07:19PM +0100, Stefano Garzarella wrote: > +/* > + * tpm_svsm_remove() lives in .exit.text. For drivers registered via > + * module_platform_driver_probe() this is ok because they cannot get unbound > + * at runtime. So mark the driver struct with __refdata to prevent mod