]>
Commit | Line | Data |
---|---|---|
8d6ef7c9 LV |
1 | #include "qemu/osdep.h" |
2 | #include "libqos/libqos-spapr.h" | |
3 | #include "libqos/malloc-spapr.h" | |
4 | ||
5 | static QOSOps qos_ops = { | |
6 | .init_allocator = spapr_alloc_init_flags, | |
7 | .uninit_allocator = spapr_alloc_uninit | |
8 | }; | |
9 | ||
10 | QOSState *qtest_spapr_vboot(const char *cmdline_fmt, va_list ap) | |
11 | { | |
12 | return qtest_vboot(&qos_ops, cmdline_fmt, ap); | |
13 | } | |
14 | ||
15 | QOSState *qtest_spapr_boot(const char *cmdline_fmt, ...) | |
16 | { | |
17 | QOSState *qs; | |
18 | va_list ap; | |
19 | ||
20 | va_start(ap, cmdline_fmt); | |
21 | qs = qtest_vboot(&qos_ops, cmdline_fmt, ap); | |
22 | va_end(ap); | |
23 | ||
24 | return qs; | |
25 | } | |
26 | ||
27 | void qtest_spapr_shutdown(QOSState *qs) | |
28 | { | |
29 | return qtest_shutdown(qs); | |
30 | } |