mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
tests/libqos: Move the libqos files under tests/qtest/
The qos stuff belongs to qtest, so move it into that directory, too. Message-Id: <20191218103059.11729-8-thuth@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
833884f37a
commit
1cf4323ecd
74 changed files with 46 additions and 47 deletions
23
tests/qtest/libqos/malloc-spapr.c
Normal file
23
tests/qtest/libqos/malloc-spapr.c
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* libqos malloc support for SPAPR
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqos/malloc-spapr.h"
|
||||
|
||||
#include "qemu-common.h"
|
||||
|
||||
#define PAGE_SIZE 4096
|
||||
|
||||
/* Memory must be a multiple of 256 MB,
|
||||
* so we have at least 256MB
|
||||
*/
|
||||
#define SPAPR_MIN_SIZE 0x10000000
|
||||
|
||||
void spapr_alloc_init(QGuestAllocator *s, QTestState *qts, QAllocOpts flags)
|
||||
{
|
||||
alloc_init(s, flags, 1 << 20, SPAPR_MIN_SIZE, PAGE_SIZE);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue