On Wed, Jul 16, 2025 at 03:42:39PM -0300, Jason Gunthorpe wrote: > On Wed, Jul 16, 2025 at 11:09:45AM -0700, Nicolin Chen wrote: > > OK. I see your point. That will leads to a very long list of > > parameters. > > I would have some useful prebaked ones. Realistically there are not > that many combinations of HW capabilities that are > interesting/exist.
Maybe starting with a configurable subversion could be a good one. But I suspect there can be some case where somebody wants certain bits to be off on top of a subversion prebake.. > > So, a vSMMU model is defined following the parameters in the > > command line. A device (and its attaching SMMU HW) that's not > > compatibile should just fail the cold-plug at the beginning. > > Yes > > And if you want to do hotplug the SMMU is already fully defined so you > don't need to discover anything at VM startup time. Yea, basically every device (whether hotplug or coldplug) should run hw_info to make sure it's compatible to the predefined vSMMU, not the other way around that I expected. Thanks Nicolin