]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qtest/libqos/malloc-spapr.c
Remove qemu-common.h include from most units
[mirror_qemu.git] / tests / qtest / libqos / malloc-spapr.c
CommitLineData
8d6ef7c9
LV
1/*
2 * libqos malloc support for SPAPR
3 *
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 */
7
8#include "qemu/osdep.h"
a2ce7dbd 9#include "malloc-spapr.h"
8d6ef7c9 10
d2c4f384 11#define SPAPR_PAGE_SIZE 4096
8d6ef7c9
LV
12
13/* Memory must be a multiple of 256 MB,
14 * so we have at least 256MB
15 */
16#define SPAPR_MIN_SIZE 0x10000000
17
eb5937ba 18void spapr_alloc_init(QGuestAllocator *s, QTestState *qts, QAllocOpts flags)
8d6ef7c9 19{
d2c4f384 20 alloc_init(s, flags, 1 << 20, SPAPR_MIN_SIZE, SPAPR_PAGE_SIZE);
8d6ef7c9 21}