Merge remote-tracking branch 'remotes/gkurz-gitlab/tags/9p-next-pull-request' into...
[qemu/ar7.git] / tests / qtest / libqos / malloc-spapr.c
blob05b306c191d3075ce6da1e779cea4ccb22e71c90
1 /*
2 * libqos malloc support for SPAPR
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
8 #include "qemu/osdep.h"
9 #include "malloc-spapr.h"
11 #include "qemu-common.h"
13 #define SPAPR_PAGE_SIZE 4096
15 /* Memory must be a multiple of 256 MB,
16 * so we have at least 256MB
18 #define SPAPR_MIN_SIZE 0x10000000
20 void spapr_alloc_init(QGuestAllocator *s, QTestState *qts, QAllocOpts flags)
22 alloc_init(s, flags, 1 << 20, SPAPR_MIN_SIZE, SPAPR_PAGE_SIZE);