summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorMarc-André Lureau2019-02-12 17:25:19 +0100
committerSamuel Thibault2019-03-07 12:46:31 +0100
commitd890344166449c2c4cc039f19af61600920cd697 (patch)
tree39c0a5a5c95d4bc9bcc2005a7782762b006c649b /include/migration
parentslirp: adapt a subset of QEMU vmstate code (diff)
downloadqemu-d890344166449c2c4cc039f19af61600920cd697.tar.gz
qemu-d890344166449c2c4cc039f19af61600920cd697.tar.xz
qemu-d890344166449c2c4cc039f19af61600920cd697.zip
slirp: use libslirp migration code
slirp migration code uses QEMU vmstate so far, when building WITH_QEMU. Introduce slirp_state_{load,save,version}() functions to move the state saving handling to libslirp side. So far, the bitstream compatibility should remain equal with current QEMU, as this is effectively using the same code, with the same format etc. When libslirp is made standalone, we will need some mechanism to ensure bitstream compatibility regardless of the libslirp version installed. See the FIXME note in the code. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20190212162524.31504-3-marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'include/migration')
-rw-r--r--include/migration/qemu-file-types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/migration/qemu-file-types.h b/include/migration/qemu-file-types.h
index bd6d7dd7f9..bbe04d4484 100644
--- a/include/migration/qemu-file-types.h
+++ b/include/migration/qemu-file-types.h
@@ -25,6 +25,8 @@
#ifndef QEMU_FILE_H
#define QEMU_FILE_H
+int qemu_file_get_error(QEMUFile *f);
+
void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, size_t size);
void qemu_put_byte(QEMUFile *f, int v);