1 #include "qemu/osdep.h"
2 #include "libqos/libqos-spapr.h"
3 #include "libqos/malloc-spapr.h"
4 #include "libqos/pci-spapr.h"
6 static QOSOps qos_ops
= {
7 .init_allocator
= spapr_alloc_init_flags
,
8 .uninit_allocator
= spapr_alloc_uninit
,
9 .qpci_init
= qpci_init_spapr
,
10 .qpci_free
= qpci_free_spapr
,
11 .shutdown
= qtest_spapr_shutdown
,
14 QOSState
*qtest_spapr_vboot(const char *cmdline_fmt
, va_list ap
)
16 return qtest_vboot(&qos_ops
, cmdline_fmt
, ap
);
19 QOSState
*qtest_spapr_boot(const char *cmdline_fmt
, ...)
24 va_start(ap
, cmdline_fmt
);
25 qs
= qtest_vboot(&qos_ops
, cmdline_fmt
, ap
);
31 void qtest_spapr_shutdown(QOSState
*qs
)
33 return qtest_common_shutdown(qs
);