libqos: Add migration helpers
commit085248ae87704f1c1e4e1f929f58beca3ba294a2
authorJohn Snow <jsnow@redhat.com>
Fri, 22 May 2015 18:13:43 +0000 (22 14:13 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 22 May 2015 19:58:22 +0000 (22 15:58 -0400)
tree151a60065838ebbef6a36a28e4e62fb61034b3ea
parent455e861cc625891baacf74e66c31a914883b80ca
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
tests/libqos/libqos.c
tests/libqos/libqos.h
tests/libqos/malloc.c
tests/libqos/malloc.h