Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions lqs2mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,13 @@ int main(int argc, char *argv[])
uint64_t offset;
uint8_t section_type;
uint32_t section_id;
uint32_t footer_section_id;
uint8_t idstr_len;
char idstr[256];
uint32_t instance_id;
uint32_t version_id;
int done;
uint32_t name_len, i;

while (1) {
opt = getopt(argc, argv, "d:lw:");
Expand Down Expand Up @@ -699,6 +701,19 @@ int main(int argc, char *argv[])
DEBUG(SECTION_INFO, "section_id : %u (%s)\n",
section_id, secinfo ? secinfo->idstr : "NULL");

} else if (section_type == QEMU_VM_CONFIGURATION) {
name_len = qemu_get_be32(infp);
for (i = 0; i < name_len; i++) {
qemu_get_byte(infp);
}
continue;
} else if (section_type == QEMU_VM_SECTION_FOOTER) {
footer_section_id = qemu_get_be32(infp);
if (footer_section_id != section_id) {
printf("Incorrect section footer: %x != %x\n", footer_section_id, section_id);
return -1;
}
continue;
} else {
printf("Invalid section type: %d\n", section_type);
return -1;
Expand Down