From: Jason Gunthorpe <jgg@nvidia.com>
To: "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>
Cc: Alexey Kardashevskiy <aik@amd.com>,
linux-coco@lists.linux.dev, Lukas Wunner <lukas@wunner.de>,
Tom Lendacky <thomas.lendacky@amd.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [PATCH 1/2] MAINTAINERS: Update TSM file coverage and repository
Date: Mon, 23 Nov 2026 09:36:56 -0400 [thread overview]
Message-ID: <20261123133656.GB178955@nvidia.com> (raw)
In-Reply-To: <yq5aa4mzrjdp.fsf@kernel.org>
On Mon, Nov 23, 2026 at 02:53:46PM +0530, Aneesh Kumar K.V wrote:
> >> drivers/attestation/cca/guest/spdm.c
> >> drivers/attestation/cca/host/spdm.c
> >> drivers/attestation/cca/host/vdev.c
> >> drivers/attestation/spdm/core.c
> >> drivers/firmware/arm_rmm/da-guest-rhi.c
> >> drivers/firmware/arm_rmm/da-guest.c
> >> drivers/firmware/arm_rmm/da-host-stream.c
> >> drivers/firmware/arm_rmm/da-host-vdev.c
> >> drivers/firmware/arm_rmm/da-host.c
> >> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-realm.c
> >> drivers/vfio/pci/vfio_pci_gmem.c
> >> drivers/vfio/pci/vfio_pci_gmem.h
> >> .../coco/{arm-cca-guest => arm-cca/guest}/main.c
> >> drivers/virt/coco/arm-cca/guest/rsi-da.h
> >> drivers/virt/coco/arm-cca/host/main.c
> >> drivers/virt/coco/arm-cca/host/rmi-da.c
> >> drivers/virt/coco/arm-cca/host/rmi-da.h
> >> drivers/virt/coco/arm-cca/host/viommu.c
> >> drivers/virt/coco/arm-cca/pci/guest-pci.c
> >> drivers/virt/coco/arm-cca/pci/host-pci.c
> >
> > It seems okay, though I wonder what pci/host&guest-pci.c is?
> >
> The host side handles:
>
> 1. Allocating the Root Port PDEV.
Oh? That's exciting, I didn't know we needed to do that... That's
going to need some thought.
> 2. Allocating IDE resources for an external endpoint.
> 3. Connecting the firmware stream and enabling IDE.
> 4. Using a system stream for an RcIEP, without Root Port or PCI IDE resources.
> 5. Marking PF0 ready for device assignment only after setup succeeds.
That's just the normal TSM driver, why is it seperated?
> The guest side handles:
>
> 1. Preventing PCI driver attachment.
That's Leon's series, shouldn't be in TSM.
> 2. Comparing the current RSI device information with the report and creating MMIO descriptors from it.
> 3. Validating the mappings.
> 4. Requesting RUN and marking the device as accepted.
This also looks like normal TSM stuff, why seperated?
> Most of these are driven during evidence-accept, so the module
> dependencies are (based on lsmod):
The attestation driver should probably have a callback for its accept
operation to the TSM in some way, so we don't have this weird pci
module too.
The tsm struct should be passed in when creating the attestation
driver and it can call back through it for accept.. But I don't know
why we need to leave the
> Host:
> arm-cca-host.ko
> +--> attestation-cca-host.ko
> | +--> arm-cca-host-pci.ko
> | | `--> arm-rmm-da-host.ko
> | +--> arm-rmm-da-host.ko
> | +--> attestation-spdm.ko
> | `--> attestation.ko
> +--> arm-cca-host-pci.ko
> +--> arm-rmm-da-host.ko
> +--> attestation-spdm.ko
> `--> attestation.ko
The last two should be depenencies of attestation-cca-host.ko not
arm-cca-host..
> Realm guest:
> arm-cca-guest.ko
> +--> attestation-cca-guest.ko
> | +--> arm-cca-guest-pci.ko
> | | `--> arm-rmm-da-guest.ko
> | +--> arm-rmm-da-guest.ko
> | +--> attestation-spdm.ko
> | `--> attestation.ko
> +--> arm-cca-guest-pci.ko
> +--> arm-rmm-da-guest.ko
> `--> tsm_report.ko
Like this, but tsm_report should also be a dependency of
attestation-cca-guest.ko and eventually rolled into attestation.ko
>
> Common attestation dependencies:
>
> attestation-spdm.ko
> +--> attestation.ko
> | `--> ctlv.ko
> `--> ctlv.ko
>
> >
> > I kind of wish we had a directory called tsm too..
> >
> > drivers/firmware/tsm/
This still seems necessary.
> > Maybe?
> >
> > Can you be consistent with the cca/arm_rmm/arm-cca naming?
> >
>
> Will name it arm_cca ?
I'm OK but like I said it doesn't have to do anything with
confidential VMs, so RMM seems better to me.
Also it might make more sense to start with the arch name in the
directory structure. Maybe:
attestation/arm/cca_host/
attestation/arm/cca_guest/
attestation/arm/firme.c
Jason
prev parent reply other threads:[~2026-11-23 13:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 7:54 [PATCH 1/2] MAINTAINERS: Update TSM file coverage and repository Aneesh Kumar K.V (Arm)
2026-11-16 7:54 ` [PATCH 2/2] PCI/TSM: Move core code into its own directory Aneesh Kumar K.V (Arm)
2026-11-16 13:00 ` Jason Gunthorpe
2026-11-16 13:15 ` Aneesh Kumar K.V
2026-11-16 13:19 ` Jason Gunthorpe
2026-11-16 14:34 ` Aneesh Kumar K.V
2026-11-16 14:42 ` Jason Gunthorpe
2026-11-18 7:40 ` Aneesh Kumar K.V
2026-11-18 13:14 ` Jason Gunthorpe
2026-11-18 8:44 ` [PATCH 1/2] MAINTAINERS: Update TSM file coverage and repository Alexey Kardashevskiy
2026-11-18 12:55 ` Jason Gunthorpe
2026-11-20 12:20 ` Aneesh Kumar K.V
2026-11-20 14:04 ` Jason Gunthorpe
2026-11-23 9:23 ` Aneesh Kumar K.V
2026-11-23 13:36 ` Jason Gunthorpe [this message]
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=20261123133656.GB178955@nvidia.com \
--to=jgg@nvidia.com \
--cc=aik@amd.com \
--cc=aneesh.kumar@kernel.org \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-coco@lists.linux.dev \
--cc=lukas@wunner.de \
--cc=thomas.lendacky@amd.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox