Re: [PATCH v3 4/7] iommu: Let a driver mark an IOMMU as confidential
From: Nicolin Chen
Date: Wed Nov 25 2026 - 17:39:31 EST
On Wed, Nov 25, 2026 at 02:07:45PM -0400, Jason Gunthorpe wrote:
> > +void iommu_device_set_confidential(struct iommu_device *iommu,
> > + struct device *hwdev)
> > +{
>
> I might suggest "cc_private" here to keep with the naming theme.
Ack.
> > struct iommu_device {
> > struct list_head list;
> > @@ -833,6 +835,7 @@ struct iommu_device {
> > struct iommu_group *singleton_group;
> > u32 max_pasids;
> > bool ready;
> > + bool confidential;
> > };
>
> And Linus isn't a fan of lists of bools..
I can add " : 1" to both lines, if it helps.
Thanks
Nicolin