From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] Hardware watchdog patch, version 6
Date: Wed, 01 Apr 2009 08:18:24 -0500 [thread overview]
Message-ID: <49D369A0.50907@codemonkey.ws> (raw)
In-Reply-To: <20090401084620.GA17093@amd.home.annexia.org>
Richard W.M. Jones wrote:
> On Tue, Mar 31, 2009 at 07:07:39PM +0300, Blue Swirl wrote:
>
>> + if (i > 0) exit (i == 1 ? 1 : 0);
>> + if (!d->enabled) return;
>>
>> Please split these into two lines.
>>
>
> Version 7 of the patch is attached:
>
> - Fixed the 'if' statements above, plus a couple more I found.
>
> - Rebased to latest SVN.
>
> Rich.
>
I swear I sent a note with some review comments but I cannot find it in
the mailing list archives. Perhaps my mail server ate it :-( I'll
reproduce below.
First, there's still no Signed-off-by.
> @@ -4727,6 +4732,17 @@
> serial_devices[serial_device_index] = optarg;
> serial_device_index++;
> break;
> + case QEMU_OPTION_watchdog:
> + i = select_watchdog (optarg);
>
You have extra spaces before all your punctuation. This is not how QEMU
does it (just look below).
> + if (i > 0)
> + exit (i == 1 ? 1 : 0);
> + break;
> + case QEMU_OPTION_watchdog_action:
> + if (select_watchdog_action (optarg) == -1) {
> + fprintf (stderr, "Unknown -watchdog-action parameter\n");
> + exit (1);
> + }
> + break;
> case QEMU_OPTION_virtiocon:
> if (virtio_console_index >= MAX_VIRTIO_CONSOLES) {
> fprintf(stderr, "qemu: too many virtio consoles\n");
>
> +void register_watchdogs(void)
> +{
> +#ifdef TARGET_I386
> + wdt_ib700_init ();
> + wdt_i6300esb_init ();
> +#endif
> +}
>
Limiting to target-i386 is not correct. These are ISA and PCI devices
so they should be limited based on that property.
Really, you only need to limit it based on !CONFIG_USER_ONLY. It's not
a huge problem to add unused devices to other platforms. After the
config file stuff is ready, we can move to a more modular model where we
can choose which devices are included for any given target.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2009-04-01 13:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-16 18:49 [Qemu-devel] [PATCH] Hardware watchdog patch, version 5 Richard W.M. Jones
2009-03-25 8:43 ` Richard W.M. Jones
2009-03-26 13:03 ` Anthony Liguori
2009-03-31 11:23 ` [PATCH] Hardware watchdog patch, version 6 (was: Re: [Qemu-devel] [PATCH] Hardware watchdog patch, version 5) Richard W.M. Jones
2009-03-31 11:24 ` Richard W.M. Jones
2009-03-31 16:07 ` Blue Swirl
2009-04-01 8:46 ` Richard W.M. Jones
2009-04-01 13:18 ` Anthony Liguori [this message]
2009-04-25 12:56 ` [Qemu-devel] [PATCH] Hardware watchdog patch, version 7 Richard W.M. Jones
2009-04-07 21:19 ` [PATCH] Hardware watchdog patch, version 6 (was: Re: [Qemu-devel] [PATCH] Hardware watchdog patch, version 5) Hollis Blanchard
2009-04-08 8:39 ` Richard W.M. Jones
2009-04-08 9:22 ` [libvirt] " Daniel P. Berrange
2009-04-08 14:18 ` [Qemu-devel] Re: [libvirt] Re: [PATCH] Hardware watchdog patch, version 6 Anthony Liguori
2009-04-08 14:35 ` Daniel P. Berrange
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=49D369A0.50907@codemonkey.ws \
--to=anthony@codemonkey.ws \
--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).