python/machine.py: Add _early_cleanup hook
commite2c97f161294c702ee4a2dd08532d5df67f6bff4
authorJohn Snow <jsnow@redhat.com>
Fri, 10 Jul 2020 05:06:40 +0000 (10 01:06 -0400)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 14 Jul 2020 20:22:22 +0000 (14 22:22 +0200)
treef50b429e88c62db945c44d58b6684ee372872f19
parent671940e633b83ac489e0b4bb407749723ff8a879
python/machine.py: Add _early_cleanup hook

Some parts of cleanup need to occur prior to shutdown, otherwise
shutdown might break. Move this into a suitably named method/callback.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20200710050649.32434-4-jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
python/qemu/machine.py