]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemurunner: add second qmp port
authorSaul Wold <Saul.Wold@windriver.com>
Fri, 18 Jun 2021 16:03:42 +0000 (09:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Jun 2021 14:16:53 +0000 (15:16 +0100)
This will allow for direct ssh connection without breaking
the first one that is used for monitoring. The "nowait" option
will cause qmp server connection to NOT block waiting.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py

index 5dc1a136e3bde1b3e7d51e085f2b4d438db1f86b..abbc7f7d1f6605c981de585ba2768ae8147c1c96 100644 (file)
@@ -192,6 +192,12 @@ class QemuRunner:
         qmp_file = "." + next(tempfile._get_candidate_names())
         qmp_param = ' -S -qmp unix:./%s,server,wait' % (qmp_file)
         qmp_port = self.tmpdir + "/" + qmp_file
+        # Create a second socket connection for debugging use, 
+        # note this will NOT cause qemu to block waiting for the connection
+        qmp_file2 = "." + next(tempfile._get_candidate_names())
+        qmp_param += ' -qmp unix:./%s,server,nowait' % (qmp_file2)
+        qmp_port2 = self.tmpdir + "/" + qmp_file2
+        self.logger.info("QMP Available for connection at %s" % (qmp_port2))
 
         try:
             if self.serial_ports >= 2: