[Qemu-devel] [PATCH v7 03/11] qapi: introduce preconfig runstate

Igor Mammedov posted 11 patches 7 years, 9 months ago
[Qemu-devel] [PATCH v7 03/11] qapi: introduce preconfig runstate
Posted by Igor Mammedov 7 years, 9 months ago
New preconfig runstate will be used in follow up patches
related to introducing --preconfig CLI option and is
intended to replace prelaunch runstate from QEMU start
up to machine_init callback.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
 qapi/run-state.json | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/qapi/run-state.json b/qapi/run-state.json
index 1c9fff3..9694a9f 100644
--- a/qapi/run-state.json
+++ b/qapi/run-state.json
@@ -49,12 +49,15 @@
 # @colo: guest is paused to save/restore VM state under colo checkpoint,
 #        VM can not get into this state unless colo capability is enabled
 #        for migration. (since 2.8)
+# @preconfig: QEMU is paused before board specific init callback is executed.
+#             The state is reachable only if the --preconfig CLI option is used.
+#             (Since 2.13)
 ##
 { 'enum': 'RunState',
   'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',
             'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',
             'running', 'save-vm', 'shutdown', 'suspended', 'watchdog',
-            'guest-panicked', 'colo' ] }
+            'guest-panicked', 'colo', 'preconfig' ] }
 
 ##
 # @StatusInfo:
-- 
2.7.4


Re: [Qemu-devel] [PATCH v7 03/11] qapi: introduce preconfig runstate
Posted by Eric Blake 7 years, 9 months ago
On 05/04/2018 03:37 AM, Igor Mammedov wrote:
> New preconfig runstate will be used in follow up patches
> related to introducing --preconfig CLI option and is
> intended to replace prelaunch runstate from QEMU start
> up to machine_init callback.
> 
> Signed-off-by: Igor Mammedov <imammedo@redhat.com>
> ---
>   qapi/run-state.json | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

> 
> diff --git a/qapi/run-state.json b/qapi/run-state.json
> index 1c9fff3..9694a9f 100644
> --- a/qapi/run-state.json
> +++ b/qapi/run-state.json
> @@ -49,12 +49,15 @@
>   # @colo: guest is paused to save/restore VM state under colo checkpoint,
>   #        VM can not get into this state unless colo capability is enabled
>   #        for migration. (since 2.8)
> +# @preconfig: QEMU is paused before board specific init callback is executed.
> +#             The state is reachable only if the --preconfig CLI option is used.
> +#             (Since 2.13)
>   ##
>   { 'enum': 'RunState',
>     'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',
>               'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',
>               'running', 'save-vm', 'shutdown', 'suspended', 'watchdog',
> -            'guest-panicked', 'colo' ] }
> +            'guest-panicked', 'colo', 'preconfig' ] }
>   
>   ##
>   # @StatusInfo:
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Re: [Qemu-devel] [PATCH v7 03/11] qapi: introduce preconfig runstate
Posted by Eduardo Habkost 7 years, 8 months ago
On Fri, May 04, 2018 at 10:37:41AM +0200, Igor Mammedov wrote:
> New preconfig runstate will be used in follow up patches
> related to introducing --preconfig CLI option and is
> intended to replace prelaunch runstate from QEMU start
> up to machine_init callback.
> 
> Signed-off-by: Igor Mammedov <imammedo@redhat.com>

Queued, thanks.

-- 
Eduardo