]> Git Repo - qemu.git/blobdiff - chardev/char-socket.c
hw/timer/armv7m_systick: Forbid non-privileged accesses
[qemu.git] / chardev / char-socket.c
index 3916505d674e1193575fdd0a3343f7f82d86a1f8..7ca5d97af34129988d7099a110d009aecbcd3583 100644 (file)
@@ -29,6 +29,7 @@
 #include "io/channel-websock.h"
 #include "io/net-listener.h"
 #include "qemu/error-report.h"
+#include "qemu/module.h"
 #include "qemu/option.h"
 #include "qapi/error.h"
 #include "qapi/clone-visitor.h"
@@ -1263,10 +1264,14 @@ static bool qmp_chardev_validate_socket(ChardevSocket *sock,
             return false;
         }
         if (sock->has_wait) {
-            error_setg(errp, "%s",
-                       "'wait' option is incompatible with "
-                       "socket in client connect mode");
-            return false;
+            warn_report("'wait' option is deprecated with "
+                        "socket in client connect mode");
+            if (sock->wait) {
+                error_setg(errp, "%s",
+                           "'wait' option is incompatible with "
+                           "socket in client connect mode");
+                return false;
+            }
         }
     }
 
This page took 0.02469 seconds and 4 git commands to generate.