Re: [RFC PATCH v1 11/38] KVM: arm64: CCA: register host tsm platform device

Greg KH
2025-08-01T08:31:35Z

On Thu, Jul 31, 2025 at 01:46:03PM -0300, Jason Gunthorpe wrote:
> On Thu, Jul 31, 2025 at 02:22:50PM +0100, Jonathan Cameron wrote:
>
> > If you mean create a class device with no parent, that's also something
> > we are slowly trying to fix. Reminds me that fixing up more perf devices
> > is still on my todo list.
>
> IIRC if you create a class device with no parent it gets placed on the
> virtual bus...
>
> Do you mean we should not do that?
>
> > Should be a child of something, so maybe that is a good reason for a
> > faux_device here if there is nothing else to use.
>
> Don't see such a big difference to have it be the child of a faux
> device on the faux bus than to just be directly on the virtual bus?

Either is fine, but just never use a platform device for a
non-platform-resource-backed device please.

thanks,

greg k-h