From fa02e6084f727191e15fc6b2d1328c4fae874741 Mon Sep 17 00:00:00 2001 From: John Snow Date: Mon, 19 Jan 2015 15:15:53 -0500 Subject: libqos: add alloc_init_flags Allow a generic interface to alloc_init_flags, not just through pc_alloc_init_flags. Signed-off-by: John Snow Reviewed-by: Paolo Bonzini Message-id: 1421698563-6977-6-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/libqos/malloc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/libqos/malloc.c') diff --git a/tests/libqos/malloc.c b/tests/libqos/malloc.c index 0d34ecd4b6..4ff260f085 100644 --- a/tests/libqos/malloc.c +++ b/tests/libqos/malloc.c @@ -285,3 +285,11 @@ QGuestAllocator *alloc_init(uint64_t start, uint64_t end) return s; } + +QGuestAllocator *alloc_init_flags(QAllocOpts opts, + uint64_t start, uint64_t end) +{ + QGuestAllocator *s = alloc_init(start, end); + s->opts = opts; + return s; +} -- cgit v1.2.3-55-g7522