Il ven 4 giu 2021, 16:26 Eric Blake <ebl...@redhat.com> ha scritto: > As an API, this command seems awkward. How do I query what phase I'm > currently in? How many times do I have to call it? Do we anticipate > the number of times I need to call it to change in future qemu > releases? >
Indeed this has been changed in the last version of the proposal. There will be an x-machine-init command and the existing x-exit-preconfig. Paolo > Would it be better to require me to pass an enum parameter stating the > phase I intend to move into (and error out if that is not actually the > next phase), where the introspection of the enum tells me how many > times to use this command? Should this command return a struct > containing "new-state":"enum-value" telling me what state I moved to > on success? > > > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3266 > Virtualization: qemu.org | libvirt.org > >