On Mon, 14 Jan 2019 at 16:59, Thomas Huth <th...@redhat.com> wrote: > > On 2019-01-14 17:31, Peter Maydell wrote: > > We prohibit -device foo for non-pluggable devices: > > $ ./build/all/x86_64-softmmu/qemu-system-x86_64 -device i8257 > > qemu-system-x86_64: -device i8257: Parameter 'driver' expects > > pluggable device type > > > > And we suppress them from "-device help" output too. > > > > But we still allow the user to do this: > > > > $ ./build/all/x86_64-softmmu/qemu-system-x86_64 -device i8257,help > > i8257 options: > > dshift=<int32> > > base=<int32> > > pageh-base=<int32> > > page-base=<int32> > > Could this still be sometimes useful, e.g. when a device is configured > with the "-global" parameter?
Hmm, good point: some of the properties are usefully human changeable even for built-in devices. But a lot of them are not, if you look at the iotkit example. Perhaps a useful compromise would be filtering out the "child<" properties? (these are all created via object_property_add_child() and user changes to them seem unlikely to be ever something that would work). thanks -- PMM