From: Paolo Bonzini <pbonzini@redhat.com>
To: "Richard W.M. Jones" <rjones@redhat.com>
Cc: qemu-devel@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH] watchdog: convert to QemuOpts
Date: Wed, 27 May 2015 14:44:33 +0200 [thread overview]
Message-ID: <5565BC31.8010404@redhat.com> (raw)
In-Reply-To: <20150527124144.GM29283@redhat.com>
On 27/05/2015 14:41, Richard W.M. Jones wrote:
> On Wed, May 27, 2015 at 02:35:26PM +0200, Paolo Bonzini wrote:
>> case QEMU_OPTION_watchdog:
>> - if (watchdog) {
>> - fprintf(stderr,
>> - "qemu: only one watchdog option may be given\n");
>> - return 1;
>> + olist = qemu_find_opts("watchdog");
>> + opts = qemu_opts_parse(olist, optarg, 1);
>> + if (!opts) {
>> + exit(1);
>> }
>
> Is there an error message missing (before the call to exit)?
>
> Patch seems OK otherwise.
>
> libvirt still uses
>
> -watchdog <model> -watchdog-action <action>
>
> Should it be changed to use -device? I'm guessing for backwards
> compatibility with old and current qemu it probably shouldn't be
> changed for a few years.
-device has been working forever for watchdogs. Changing libvirt to
-device would be possible, but cosmetic. Changing to "-watchdog
action=foo" is also entirely cosmetic, and would not work on older
QEMUs, so again there's no need.
The advantage of this patch would be for -readconfig users, which
couldn't specify the watchdog action. Or you could put '[watchdog]
action="pause"' in /etc/qemu/qemu.conf if you're into obscure
configuration files.
Paolo
next prev parent reply other threads:[~2015-05-27 12:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 12:35 [Qemu-devel] [PATCH] watchdog: convert to QemuOpts Paolo Bonzini
2015-05-27 12:41 ` Richard W.M. Jones
2015-05-27 12:44 ` Paolo Bonzini [this message]
2015-05-27 12:45 ` Paolo Bonzini
2015-05-27 12:48 ` Richard W.M. Jones
2015-05-27 13:00 ` Eric Blake
2015-05-27 13:02 ` Paolo Bonzini
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=5565BC31.8010404@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.