diff options
author | John Snow | 2015-05-22 20:13:43 +0200 |
---|---|---|
committer | John Snow | 2015-05-22 21:58:22 +0200 |
commit | 085248ae87704f1c1e4e1f929f58beca3ba294a2 (patch) | |
tree | 151a60065838ebbef6a36a28e4e62fb61034b3ea /tests/libqos/libqos.h | |
parent | libqos/ahci: Fix sector set method (diff) | |
download | qemu-085248ae87704f1c1e4e1f929f58beca3ba294a2.tar.gz qemu-085248ae87704f1c1e4e1f929f58beca3ba294a2.tar.xz 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.h | 2 |
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) |