From: Dominik Csapak <d.csapak@proxmox.com>
To: Eric Blake <eblake@redhat.com>, qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH] qapi: add info about reset to SHUTDOWN event
Date: Wed, 17 Oct 2018 16:02:23 +0200 [thread overview]
Message-ID: <ac93c582-0726-043e-0f63-4339911d08c2@proxmox.com> (raw)
In-Reply-To: <98a20e5d-0a11-2d4f-2de9-d50ca4dff941@redhat.com>
On 10/17/18 3:51 PM, Eric Blake wrote:
> On 10/17/18 2:17 AM, Dominik Csapak wrote:
>> On 10/8/18 3:19 PM, Dominik Csapak wrote:
>>> when '-no-reboot' is set, it is interesting if the guest was originally
>>> shutdown or reset, so save and return that info
>>>
>>> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
>>> ---
>>> qapi/run-state.json | 5 ++++-
>>> vl.c | 5 ++++-
>>> 2 files changed, 8 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/qapi/run-state.json b/qapi/run-state.json
>>> index 332e44897b..ec1769777d 100644
>>> --- a/qapi/run-state.json
>>> +++ b/qapi/run-state.json
>>> @@ -107,6 +107,9 @@
>>> # a guest-initiated ACPI shutdown request or other
>>> hardware-specific action)
>>> # rather than a host request (such as sending qemu a SIGINT).
>>> (since 2.10)
>>> #
>>> +# @was_reset: If true, the shutdown was actually a reset, but no-reboot
>>> +# was set, so it got converted to a shutdown
>
> New additions should prefer naming like 'was-reset' rather than
> 'was_reset', if we still think this particular name is appropriate. My
> personal take: what does the 'was' add, which would prevent us from just
> using the name 'reset' and avoiding the separator spelling issue?
>
yes of course 'reset' is fine, i just thought it might be confusing
having a RESET event and a SHUTDOWN event with a 'reset' flag, but
i guess if one tries to monitor them they would read the
api documentation anyway
prev parent reply other threads:[~2018-10-17 14:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-08 13:19 [Qemu-devel] [PATCH] qapi: add info about reset to SHUTDOWN event Dominik Csapak
2018-10-17 7:17 ` Dominik Csapak
2018-10-17 10:58 ` Paolo Bonzini
2018-10-17 11:34 ` Dominik Csapak
2018-10-17 11:36 ` Paolo Bonzini
2018-10-17 13:54 ` Eric Blake
2018-10-17 14:43 ` Paolo Bonzini
2018-10-23 7:51 ` Dominik Csapak
2018-10-17 13:51 ` Eric Blake
2018-10-17 14:02 ` Dominik Csapak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac93c582-0726-043e-0f63-4339911d08c2@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).