OSDN Git Service

qemu.py: always cleanup on shutdown()
authorAmador Pahim <apahim@redhat.com>
Mon, 22 Jan 2018 20:50:30 +0000 (21:50 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Feb 2018 21:53:55 +0000 (19:53 -0200)
commit04a963b4953be6c7f1899cfe0a0a11d03292c18b
tree738a53c11bc78c576293bbe3fa255dcdbd38c5b0
parentd301bccf7323ff3069e46f600aa7b31dbbc2f2f7
qemu.py: always cleanup on shutdown()

Currently we only cleanup on shutdown() if the VM is running.

To make sure we will always cleanup, this patch makes the
self._load_io_log() and the self._post_shutdown() to
always be called on shutdown(), regardless the VM running state.

Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Amador Pahim <apahim@redhat.com>
Message-Id: <20180122205033.24893-4-apahim@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qemu.py