mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
fw_cfg: import & use linux/qemu_fw_cfg.h
Use kernel common header for fw_cfg. (unfortunately, optionrom.h must have its own define, since it's actually an assembler header) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20180817155910.5722-2-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
039d7c4d53
commit
5be5df720e
11 changed files with 125 additions and 80 deletions
2
dump.c
2
dump.c
|
@ -1742,7 +1742,7 @@ static void dump_init(DumpState *s, int fd, bool has_format,
|
|||
warn_report("guest note is not present");
|
||||
} else if (size < note_head_size || size > MAX_GUEST_NOTE_SIZE) {
|
||||
warn_report("guest note size is invalid: %" PRIu32, size);
|
||||
} else if (format != VMCOREINFO_FORMAT_ELF) {
|
||||
} else if (format != FW_CFG_VMCOREINFO_FORMAT_ELF) {
|
||||
warn_report("guest note format is unsupported: %" PRIu16, format);
|
||||
} else {
|
||||
s->guest_note = g_malloc(size + 1); /* +1 for adding \0 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue