summaryrefslogtreecommitdiffstats
path: root/python/qemu/aqmp/legacy.py
diff options
context:
space:
mode:
authorJohn Snow2021-10-26 19:56:10 +0200
committerJohn Snow2021-11-01 16:54:59 +0100
commit8f05aee5333a78e2244008021f72e7b21fdc147f (patch)
tree980e42150ced3118f3851e6dc1bb488308de00c7 /python/qemu/aqmp/legacy.py
parentiotests: Conditionally silence certain AQMP errors (diff)
downloadqemu-8f05aee5333a78e2244008021f72e7b21fdc147f.tar.gz
qemu-8f05aee5333a78e2244008021f72e7b21fdc147f.tar.xz
qemu-8f05aee5333a78e2244008021f72e7b21fdc147f.zip
iotests/300: avoid abnormal shutdown race condition
Wait for the destination VM to close itself instead of racing to shut it down first, which produces different error log messages from AQMP depending on precisely when we tried to shut it down. (For example: We may try to issue 'quit' immediately prior to the target VM closing its QMP socket, which will cause an ECONNRESET error to be logged. Waiting for the VM to exit itself avoids the race on shutdown behavior.) Reported-by: Hanna Reitz <hreitz@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-id: 20211026175612.4127598-7-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/aqmp/legacy.py')
0 files changed, 0 insertions, 0 deletions