From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Zhang Chen <chen.zhang@intel.com>,
Jason Wang <jasowang@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
qemu-dev <qemu-devel@nongnu.org>
Cc: Zhang Chen <zhangckid@gmail.com>
Subject: Re: [RFC PATCH 1/4] net/awd.c: Introduce Advanced Watch Dog module framework
Date: Wed, 23 Oct 2019 13:01:17 +0200 [thread overview]
Message-ID: <e294876e-d26b-b401-78ab-487e1b44685f@redhat.com> (raw)
In-Reply-To: <20191016112209.9024-2-chen.zhang@intel.com>
Hi Chen,
On 10/16/19 1:22 PM, Zhang Chen wrote:
> From: Zhang Chen <chen.zhang@intel.com>
>
> This patch introduce a new module named Advanced Watch Dog,
> and defined the input and output parameter. AWD use standard chardev
> as the way of communicationg with the outside world.
> Demo command:
> -object advanced-watchdog,id=heart1,server=on,awd_node=h1,notification_node=heartbeat0,opt_script=opt_script_path,iothread=iothread1,pulse_interval=1000,timeout=5000
>
> Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> ---
> net/Makefile.objs | 1 +
> net/awd.c | 261 ++++++++++++++++++++++++++++++++++++++++++++++
> qemu-options.hx | 6 ++
> 3 files changed, 268 insertions(+)
> create mode 100644 net/awd.c
>
> diff --git a/net/Makefile.objs b/net/Makefile.objs
> index c5d076d19c..139b1394e9 100644
> --- a/net/Makefile.objs
> +++ b/net/Makefile.objs
> @@ -19,6 +19,7 @@ common-obj-y += colo-compare.o
> common-obj-y += colo.o
> common-obj-y += filter-rewriter.o
> common-obj-y += filter-replay.o
> +common-obj-y += awd.o
Can you add a net/Kconfig file introducing the ADVANCED_WATCHDOG selector?
config COLO_ADVANCED_WATCHDOG
bool
default n
Then use here:
common-obj-$(COLO_ADVANCED_WATCHDOG) += awd.o
Thanks,
Phil.
>
> tap-obj-$(CONFIG_LINUX) = tap-linux.o
> tap-obj-$(CONFIG_BSD) = tap-bsd.o
[...]
next prev parent reply other threads:[~2019-10-23 11:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-16 11:22 [RFC PATCH 0/4] Introduce Advanced Watch Dog module Zhang Chen
2019-10-16 11:22 ` [RFC PATCH 1/4] net/awd.c: Introduce Advanced Watch Dog module framework Zhang Chen
2019-10-21 17:23 ` Paolo Bonzini
2019-10-23 6:50 ` Zhang, Chen
2019-10-23 11:01 ` Philippe Mathieu-Daudé [this message]
2019-10-23 11:09 ` Zhang, Chen
2019-10-23 11:38 ` Philippe Mathieu-Daudé
2019-10-24 3:07 ` Zhang, Chen
2019-10-16 11:22 ` [RFC PATCH 2/4] net/awd.c: Initailize input/output chardev Zhang Chen
2019-10-16 11:22 ` [RFC PATCH 3/4] net/awd.c: Load advanced watch dog worker thread job Zhang Chen
2019-10-16 11:22 ` [RFC PATCH 4/4] vl.c: Make Advanced Watch Dog delayed initialization Zhang Chen
2019-10-16 15:35 ` [RFC PATCH 0/4] Introduce Advanced Watch Dog module no-reply
2019-10-16 15:35 ` Zhang Chen
2019-10-16 15:40 ` Zhang Chen
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=e294876e-d26b-b401-78ab-487e1b44685f@redhat.com \
--to=philmd@redhat.com \
--cc=chen.zhang@intel.com \
--cc=jasowang@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=zhangckid@gmail.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 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).