mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
qemurunner: add second qmp port
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. (From OE-Core rev: 40f09e184afd42decf2f924896fef03beacddc4b) 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>
This commit is contained in:
committed by
Richard Purdie
parent
bb30baceec
commit
ab507fad57
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user