dump: Rework get_start_block
commit0c2994ac9009577b967529ce18e269da5b280351
authorJanosch Frank <frankja@linux.ibm.com>
Thu, 11 Aug 2022 12:10:57 +0000 (11 12:10 +0000)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 6 Oct 2022 15:30:43 +0000 (6 19:30 +0400)
treef2b2eda93976d954d0edc78528f2a5c496993e6d
parent1e8113032f5b1efc5da66382470ce4809c76f8f2
dump: Rework get_start_block

get_start_block() returns the start address of the first memory block
or -1.

With the GuestPhysBlock iterator conversion we don't need to set the
start address and can therefore remove that code and the "start"
DumpState struct member. The only functionality left is the validation
of the start block so it only makes sense to re-name the function to
validate_start_block()

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Message-Id: <20220811121111.9878-5-frankja@linux.ibm.com>
dump/dump.c
include/sysemu/dump.h