]> git.ipfire.org Git - thirdparty/qemu.git/commit
python/aqmp: add runstate state machine to AsyncProtocol
authorJohn Snow <jsnow@redhat.com>
Wed, 15 Sep 2021 16:29:34 +0000 (12:29 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Sep 2021 16:10:29 +0000 (12:10 -0400)
commitc58b42e095aed868b5d08b9deab61436ab45b7cf
tree4e3869a534eace6c02314d43f70e53fb62edc047
parent4ccaab0377dec88b5cf1a55064b4953f6ab59d9f
python/aqmp: add runstate state machine to AsyncProtocol

This serves a few purposes:

1. Protect interfaces when it's not safe to call them (via @require)

2. Add an interface by which an async client can determine if the state
has changed, for the purposes of connection management.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20210915162955.333025-7-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/__init__.py
python/qemu/aqmp/protocol.py