Skip to content
  • Igor Mammedov's avatar
    qapi: introduce new cmd option "allow-preconfig" · d6fe3d02
    Igor Mammedov authored
    
    
    New option will be used to allow commands, which are prepared/need
    to run, during preconfig state. Other commands that should be able
    to run in preconfig state, should be amended to not expect machine
    in initialized state or deal with it.
    
    For compatibility reasons, commands that don't use new flag
    'allow-preconfig' explicitly are not permitted to run in
    preconfig state but allowed in all other states like they used
    to be.
    
    Within this patch allow following commands in preconfig state:
       qmp_capabilities
       query-qmp-schema
       query-commands
       query-command-line-options
       query-status
       exit-preconfig
    to allow qmp connection, basic introspection and moving to the next
    state.
    
    PS:
    set-numa-node and query-hotpluggable-cpus will be enabled later in
    a separate patches.
    
    Signed-off-by: default avatarIgor Mammedov <imammedo@redhat.com>
    Message-Id: <1526057503-39287-1-git-send-email-imammedo@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    [ehabkost: Changed "since 2.13" to "since 3.0"]
    Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
    d6fe3d02