On 23/10/20 12:36, Daniel P. Berrangé wrote: > IOW, if we're considering our ideal long term configuration goals > for QEMU, then I think we should be looking at a solution to bridge > the gap, so that we can get the best of both worlds, and have a single > way todo things. > > IMHO, ideally none of -netdev, -chardev, -device, etc would exist > in any "modern" CLI, they would just be considered legacy syntax. > Essentially everything would be created using the same -object arg > and object_add commands.
I agree, especially for -chardev which should be the easiest of the three to make user-creatable. Devices have magic bus properties and netdevs aren't QOM objects at all, but character devices have neither of these issues. On the other hand, chardevs do not yet have properties, which means the transition to -object is not going to be trivial. But it is surely at least worth trying to see what the issues it introduces (perhaps QOM properties with struct and union types?), how they could be solved and whether it's worth it. Thanks, Paolo