Re: [PATCH RFC v3 7/8] attestation: providers: introduce CCA Guest attestation provider
From: Jason Gunthorpe
Date: Fri Nov 27 2026 - 13:35:57 EST
On Fri, Nov 27, 2026 at 06:24:25PM +0000, Yeoreum Yun wrote:
> > > +static const struct attestation_evidence_format cca_attestation_token_formats[] = {
> > > + { .vendor = true, .value = CTLV_ATTESTATION_CCA_GUEST_EVIDENCE_VENDOR_FORMAT_CCA_ATTESTATION_TOKEN },
> > > +};
> >
> > should be the generic EAT token type
>
> Is there?
That's the idea. TDX uses EAT as well.
> but the content seems to be different according to vendor, So would
> it be better to keep it as vendor type format?
EAT is intended to be self describing, so if you parse the EAT then
you should understand what the vendor and content is.
Knowing the EAT came from RMM won't even tell you which ARM profile
version it follows, so I'm feeling like maybe we just need to tell
userspace it is an EAT and then userspace can parse it deeply to learn
exactly what it is??
> > What is this and the related work? That isn't making sense to
> > me. If the token size is not absolutely fixed when the driver starts
> > then it should be fully dynamic and this just streams the variable
> > sized token.
> >
> > Ideally directly into user memory so we don't need to allocate a kvmalloc.
>
> In case of live-activation. I think in that case CCA-Realm token could be
> different by activating the new RMM.
Then the size isn't static and you need to just stream it to userspace
whatever you have.
I'm expecting these unsized tokens to work by streaming them into a
memfd so that userspace doesn't have to try to guess how much space is
required.
I also think it is pretty broken if LFA is changing the token for
realms that are already running. How is that even going to work with
an RSI API like that gets the length then tries to fetch into the
allocated buffer? Token silently truncates? You need to loop?
> > This isn't OK.. We only get one struct device per RSI and it gets to
> > bind to only one driver. Given there are other drivers that will need
> > to use the RSI, like the TSM and others, this needs some other
> > solution?
>
> Currently, this attestation driver is enabled when !ARM_CCA_GUEST only
> (IOW, when this driver can be built only when TSM arm-cca-guest
> disabled).
I saw in your FIRME series a solution to this problem, I think that
would be good to get out on its own and apply it first to RSI as
well. We will have the core RSI stuff, the realm attestation and TSM
driver at a minimum..
Jason