diff options
| author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2015-05-19 12:29:51 +0100 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2015-06-12 06:54:01 +0200 |
| commit | 37fb569c0198cba58e3e1bdf6b9702c8248b89dd (patch) | |
| tree | 413b7e62608c18abc60bb11418f77344babee278 /migration/savevm.c | |
| parent | ce39bfc9186005d222a78db4a7fbdc83e2d62481 (diff) | |
| download | focaccia-qemu-37fb569c0198cba58e3e1bdf6b9702c8248b89dd.tar.gz focaccia-qemu-37fb569c0198cba58e3e1bdf6b9702c8248b89dd.zip | |
Disable section footers on older machine types
The next patch adds section footers; but we don't want to break migration compatibility so disable them on older machine types Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/savevm.c')
| -rw-r--r-- | migration/savevm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/savevm.c b/migration/savevm.c index 2942ed6563..80c4389ac4 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -55,6 +55,8 @@ #define ARP_PTYPE_IP 0x0800 #define ARP_OP_REQUEST_REV 0x3 +static bool skip_section_footers; + static int announce_self_create(uint8_t *buf, uint8_t *mac_addr) { @@ -611,6 +613,11 @@ static void vmstate_save(QEMUFile *f, SaveStateEntry *se, QJSON *vmdesc) vmstate_save_state(f, se->vmsd, se->opaque, vmdesc); } +void savevm_skip_section_footers(void) +{ + skip_section_footers = true; +} + /* * Write the header for device section (QEMU_VM_SECTION START/END/PART/FULL) */ |