From 085248ae87704f1c1e4e1f929f58beca3ba294a2 Mon Sep 17 00:00:00 2001 From: John Snow Date: Fri, 22 May 2015 14:13:43 -0400 Subject: 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 Reviewed-by: Kevin Wolf Message-id: 1430417242-11859-4-git-send-email-jsnow@redhat.com --- tests/libqos/libqos.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/libqos/libqos.h') diff --git a/tests/libqos/libqos.h b/tests/libqos/libqos.h index f57362b..e1f14ea 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) -- cgit v1.1