target/s390x/arch_dump: Add arch cleanup function for PV dumps
commitd12a91e0baafce7b1cbacff7cf9339eeb0011732
authorJanosch Frank <frankja@linux.ibm.com>
Thu, 9 Nov 2023 12:04:43 +0000 (9 12:04 +0000)
committerThomas Huth <thuth@redhat.com>
Tue, 14 Nov 2023 09:42:32 +0000 (14 10:42 +0100)
tree42c2e895a89e72ed227a682df9e79734dedf58c4
parente72629e5149aba6f44122ea6d2a803ef136a0c6b
target/s390x/arch_dump: Add arch cleanup function for PV dumps

PV dumps block vcpu runs until dump end is reached. If there's an
error between PV dump init and PV dump end the vm will never be able
to run again. One example of such an error is insufficient disk space
for the dump file.

Let's add a cleanup function that tries to do a dump end. The dump
completion data is discarded but there's no point in writing it to a
file anyway if there's a possibility that other PV dump data is
missing.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20231109120443.185979-4-frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/arch_dump.c