qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Zhang Chen <chen.zhang@intel.com >
To: "Jason Wang" <jasowang@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	qemu-dev <qemu-devel@nongnu.org>
Cc: Zhang Chen <chen.zhang@intel.com>, Zhang Chen <zhangckid@gmail.com>
Subject: [PATCH V3 4/4] vl.c: Make Advanced Watch Dog delayed initialization
Date: Tue, 19 Nov 2019 20:30:16 +0800	[thread overview]
Message-ID: <20191119123016.13740-5-chen.zhang@intel.com> (raw)
In-Reply-To: <20191119123016.13740-1-chen.zhang@intel.com>

From: Zhang Chen <chen.zhang@intel.com>

Advanced Watch Dog module needs chardev socket
to initialize properly before running.

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
---
 vl.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/vl.c b/vl.c
index 6a65a64bfd..048fe458b9 100644
--- a/vl.c
+++ b/vl.c
@@ -2689,6 +2689,13 @@ static bool object_create_initial(const char *type, QemuOpts *opts)
         return false;
     }
 
+    /*
+     * Reason: Advanced Watch Dog property "chardev".
+     */
+    if (g_str_equal(type, "advanced-watchdog")) {
+        return false;
+    }
+
     /* Memory allocation by backends needs to be done
      * after configure_accelerator() (due to the tcg_enabled()
      * checks at memory_region_init_*()).
-- 
2.17.1



  parent reply	other threads:[~2019-11-19 12:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-19 12:30 [PATCH V3 0/4] Introduce Advanced Watch Dog module Zhang Chen
2019-11-19 12:30 ` [PATCH V3 1/4] net/awd.c: Introduce Advanced Watch Dog module framework Zhang Chen
2019-11-19 12:30 ` [PATCH V3 2/4] net/awd.c: Initailize input/output chardev Zhang Chen
2019-11-19 12:30 ` [PATCH V3 3/4] net/awd.c: Load advanced watch dog worker thread job Zhang Chen
2019-11-19 12:30 ` Zhang Chen [this message]
2019-12-08 17:52 ` [PATCH V3 0/4] Introduce Advanced Watch Dog module Zhang, Chen
2019-12-09  9:08   ` Paolo Bonzini
2019-12-10  0:29     ` 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=20191119123016.13740-5-chen.zhang@intel.com \
    --to=chen.zhang@intel.com \
    --cc=jasowang@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@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).