summary refs log tree commit diff stats
path: root/tests/libqos/libqos.h
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2015-05-22 14:13:43 -0400
committerJohn Snow <jsnow@redhat.com>2015-05-22 15:58:22 -0400
commit085248ae87704f1c1e4e1f929f58beca3ba294a2 (patch)
tree151a60065838ebbef6a36a28e4e62fb61034b3ea /tests/libqos/libqos.h
parent455e861cc625891baacf74e66c31a914883b80ca (diff)
downloadfocaccia-qemu-085248ae87704f1c1e4e1f929f58beca3ba294a2.tar.gz
focaccia-qemu-085248ae87704f1c1e4e1f929f58beca3ba294a2.zip
libqos: Add migration helpers
libqos.c:
    -set_context for addressing which commands go where
    -migrate performs the actual migration

malloc.c:
    - Structure of the allocator is adjusted slightly with
      a second-tier malloc to make swapping around the allocators
      easy when we "migrate" the lists from the source to the destination.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1430417242-11859-4-git-send-email-jsnow@redhat.com
Diffstat (limited to 'tests/libqos/libqos.h')
-rw-r--r--tests/libqos/libqos.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libqos/libqos.h b/tests/libqos/libqos.h
index f57362b688..e1f14ea6fb 100644
--- a/tests/libqos/libqos.h
+++ b/tests/libqos/libqos.h
@@ -21,6 +21,8 @@ QOSState *qtest_boot(QOSOps *ops, const char *cmdline_fmt, ...);
 void qtest_shutdown(QOSState *qs);
 void mkimg(const char *file, const char *fmt, unsigned size_mb);
 void mkqcow2(const char *file, unsigned size_mb);
+void set_context(QOSState *s);
+void migrate(QOSState *from, QOSState *to, const char *uri);
 void prepare_blkdebug_script(const char *debug_fn, const char *event);
 
 static inline uint64_t qmalloc(QOSState *q, size_t bytes)