Re: [PATCH v3 3/4] tpm: add SNP SVSM vTPM driver

2025-03-19 Thread Jason Gunthorpe
On Tue, Mar 18, 2025 at 05:18:53PM +0100, Stefano Garzarella wrote: > I see, thanks for the clarification! > I saw that with devm_get_free_pages() I can easily allocate a > resource-managed page, so I'll do that in v4. As a general note you should just use kmalloc these days, even for PAGE_SIZE.

Re: [RFC PATCH 3/3] tpm/tpm_svsm: use send_recv() op

2025-03-19 Thread Jason Gunthorpe
On Tue, Mar 11, 2025 at 11:01:30AM +0100, Stefano Garzarella wrote: > This driver does not support interrupts, and receiving the response is > synchronous with sending the command. > > Let's simplify the driver by implementing the new send_recv() op. > > Signed-off-by: Stefano Garzarella > --- >