[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [RFC PATCH 1/4] net/awd.c: Introduce Advanced Watch Dog module frame
From: |
Zhang, Chen |
Subject: |
RE: [RFC PATCH 1/4] net/awd.c: Introduce Advanced Watch Dog module framework |
Date: |
Wed, 23 Oct 2019 11:09:05 +0000 |
> -----Original Message-----
> From: Philippe Mathieu-Daudé <address@hidden>
> Sent: Wednesday, October 23, 2019 7:01 PM
> To: Zhang, Chen <address@hidden>; Jason Wang
> <address@hidden>; Paolo Bonzini <address@hidden>; qemu-
> dev <address@hidden>
> Cc: Zhang Chen <address@hidden>
> Subject: Re: [RFC PATCH 1/4] net/awd.c: Introduce Advanced Watch Dog
> module framework
>
> Hi Chen,
>
> On 10/16/19 1:22 PM, Zhang Chen wrote:
> > From: Zhang Chen <address@hidden>
> >
> > 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=he
> > artbeat0,opt_script=opt_script_path,iothread=iothread1,pulse_interval=
> > 1000,timeout=5000
> >
> > Signed-off-by: Zhang Chen <address@hidden>
> > ---
> > 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
>
Sure, but AWD is a universal module, COLO is just the first user.
Maybe use "config ADVANCED_WATCHDOG" is better.
Thanks
Zhang Chen
> Thanks,
>
> Phil.
>
> >
> > tap-obj-$(CONFIG_LINUX) = tap-linux.o
> > tap-obj-$(CONFIG_BSD) = tap-bsd.o
> [...]
[RFC PATCH 2/4] net/awd.c: Initailize input/output chardev, Zhang Chen, 2019/10/16
[RFC PATCH 4/4] vl.c: Make Advanced Watch Dog delayed initialization, Zhang Chen, 2019/10/16
Re: [RFC PATCH 0/4] Introduce Advanced Watch Dog module, no-reply, 2019/10/16