Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / libqos / libqos-pc.c
1 #include "libqos/libqos-pc.h"
2 #include "libqos/malloc-pc.h"
3
4 static QOSOps qos_ops = {
5     .init_allocator = pc_alloc_init_flags,
6     .uninit_allocator = pc_alloc_uninit
7 };
8
9 QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap)
10 {
11     return qtest_vboot(&qos_ops, cmdline_fmt, ap);
12 }
13
14 QOSState *qtest_pc_boot(const char *cmdline_fmt, ...)
15 {
16     QOSState *qs;
17     va_list ap;
18
19     va_start(ap, cmdline_fmt);
20     qs = qtest_vboot(&qos_ops, cmdline_fmt, ap);
21     va_end(ap);
22
23     return qs;
24 }
25
26 void qtest_pc_shutdown(QOSState *qs)
27 {
28     return qtest_shutdown(qs);
29 }