qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/4] runstate: introduce suspended state


From: Luiz Capitulino
Subject: Re: [Qemu-devel] [PATCH 3/4] runstate: introduce suspended state
Date: Fri, 4 May 2012 14:13:50 -0300

On Fri, 04 May 2012 11:07:03 -0600
Eric Blake <address@hidden> wrote:

> On 05/04/2012 10:50 AM, Luiz Capitulino wrote:
> > On Fri, 04 May 2012 18:39:06 +0200
> > Paolo Bonzini <address@hidden> wrote:
> > 
> >> Il 04/05/2012 17:02, Luiz Capitulino ha scritto:
> >>> diff --git a/qapi-schema.json b/qapi-schema.json
> >>> index 0166ec2..4dbcb26 100644
> >>> --- a/qapi-schema.json
> >>> +++ b/qapi-schema.json
> >>> @@ -116,12 +116,14 @@
> >>>  #
> >>>  # @shutdown: guest is shut down (and -no-shutdown is in use)
> >>>  #
> >>> +# @suspended: guest is suspended (ACPI S3)
> >>> +#
> >>>  # @watchdog: the watchdog action is configured to pause and has been 
> >>> triggered
> >>>  ##
> >>>  { 'enum': 'RunState',
> >>>    'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',
> >>>              'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',
> >>> -            'running', 'save-vm', 'shutdown', 'watchdog' ] }
> >>> +            'running', 'save-vm', 'shutdown', 'suspended', 'watchdog' ] }
> >>>  
> >>
> >> This breaks QAPI ABI.
> >>
> >> Not really a breaker for this series, but it shows how we are not yet
> >> ready to keep a stable ABI (as opposed to API), and thus any
> > 
> > Having to add a new enum every time a new value is needed is going to be 
> > fun.
> 
> I think Paolo's point was that new values should be added at the end of
> the list.  Your patch, as written, changes 'watchdog' from 13th to 14th;
> what you should have done is left 'watchdog' at 13th and made
> 'suspended' be 14th.

We don't have a stable QAPI ABI today, and if I'm not missing the point
here he's advocating against it.

I don't think this series need any changes in that regard.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]