summaryrefslogtreecommitdiffstats
path: root/include/sysemu
diff options
context:
space:
mode:
authorJanosch Frank2022-08-11 14:10:58 +0200
committerMarc-André Lureau2022-10-06 17:30:43 +0200
commitdddf725f70bfe7f5adb41fa31dbd06e767271bda (patch)
tree59ab4b468de2da718fd0ca0541ccdb05c4edd411 /include/sysemu
parentdump: Rework get_start_block (diff)
downloadqemu-dddf725f70bfe7f5adb41fa31dbd06e767271bda.tar.gz
qemu-dddf725f70bfe7f5adb41fa31dbd06e767271bda.tar.xz
qemu-dddf725f70bfe7f5adb41fa31dbd06e767271bda.zip
dump: Rework filter area variables
While the DumpState begin and length variables directly mirror the API variable names they are not very descriptive. So let's add a "filter_area_" prefix and make has_filter a function checking length > 0. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220811121111.9878-6-frankja@linux.ibm.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/dump.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h
index 7fce1d4af6..b62513d87d 100644
--- a/include/sysemu/dump.h
+++ b/include/sysemu/dump.h
@@ -166,9 +166,16 @@ typedef struct DumpState {
hwaddr memory_offset;
int fd;
- bool has_filter;
- int64_t begin;
- int64_t length;
+ /*
+ * Dump filter area variables
+ *
+ * A filtered dump only contains the guest memory designated by
+ * the start address and length variables defined below.
+ *
+ * If length is 0, no filtering is applied.
+ */
+ int64_t filter_area_begin; /* Start address of partial guest memory area */
+ int64_t filter_area_length; /* Length of partial guest memory area */
uint8_t *note_buf; /* buffer for notes */
size_t note_buf_offset; /* the writing place in note_buf */