qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH V4 4/5] vl.c: Make Advanced Watch Dog delayed initialization


From: Zhang Chen
Subject: [PATCH V4 4/5] vl.c: Make Advanced Watch Dog delayed initialization
Date: Tue, 17 Dec 2019 20:45:53 +0800

From: Zhang Chen <address@hidden>

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

Signed-off-by: Zhang Chen <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]