These changes are the raw update to qemu-2.6.
[kvmfornfv.git] / qemu / tests / libqos / libqos-pc.c
1 #include "qemu/osdep.h"
2 #include "libqos/libqos-pc.h"
3 #include "libqos/malloc-pc.h"
4
5 static QOSOps qos_ops = {
6     .init_allocator = pc_alloc_init_flags,
7     .uninit_allocator = pc_alloc_uninit
8 };
9
10 QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap)
11 {
12     return qtest_vboot(&qos_ops, cmdline_fmt, ap);
13 }
14
15 QOSState *qtest_pc_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_pc_shutdown(QOSState *qs)
28 {
29     return qtest_shutdown(qs);
30 }