On Mon, 24 Oct 2022 at 13:28, Markus Armbruster <arm...@redhat.com> wrote: > > Peter Maydell <peter.mayd...@linaro.org> writes: > > Markus: if we add a new value to the ShutdownCause enumeration, > > how annoying is it if we decide we don't want it later? I guess > > we can just leave it in the enum unused... (In this case we're > > using it for purely internal purposes and it won't ever actually > > wind up in any QMP events.) > > Deleting enumeration values is a compatibility issue only if the value > is usable in QMP input. > > "Purely internal" means it cannot occur in QMP output, and any attempt > to use it in input fails. Aside: feels a bit fragile.
In this case there are as far as I can see no QMP input commands which use the enum at all -- it's only used in events, which are always output, I think. thanks -- PMM