11cf4323eSThomas Huth #include "qemu/osdep.h"
2*a2ce7dbdSPaolo Bonzini #include "libqos-spapr.h"
3*a2ce7dbdSPaolo Bonzini #include "malloc-spapr.h"
4*a2ce7dbdSPaolo Bonzini #include "pci-spapr.h"
51cf4323eSThomas Huth
61cf4323eSThomas Huth static QOSOps qos_ops = {
71cf4323eSThomas Huth .alloc_init = spapr_alloc_init,
81cf4323eSThomas Huth .qpci_new = qpci_new_spapr,
91cf4323eSThomas Huth .qpci_free = qpci_free_spapr,
101cf4323eSThomas Huth .shutdown = qtest_spapr_shutdown,
111cf4323eSThomas Huth };
121cf4323eSThomas Huth
qtest_spapr_vboot(const char * cmdline_fmt,va_list ap)131cf4323eSThomas Huth QOSState *qtest_spapr_vboot(const char *cmdline_fmt, va_list ap)
141cf4323eSThomas Huth {
151cf4323eSThomas Huth return qtest_vboot(&qos_ops, cmdline_fmt, ap);
161cf4323eSThomas Huth }
171cf4323eSThomas Huth
qtest_spapr_boot(const char * cmdline_fmt,...)181cf4323eSThomas Huth QOSState *qtest_spapr_boot(const char *cmdline_fmt, ...)
191cf4323eSThomas Huth {
201cf4323eSThomas Huth QOSState *qs;
211cf4323eSThomas Huth va_list ap;
221cf4323eSThomas Huth
231cf4323eSThomas Huth va_start(ap, cmdline_fmt);
241cf4323eSThomas Huth qs = qtest_vboot(&qos_ops, cmdline_fmt, ap);
251cf4323eSThomas Huth va_end(ap);
261cf4323eSThomas Huth
271cf4323eSThomas Huth return qs;
281cf4323eSThomas Huth }
291cf4323eSThomas Huth
qtest_spapr_shutdown(QOSState * qs)301cf4323eSThomas Huth void qtest_spapr_shutdown(QOSState *qs)
311cf4323eSThomas Huth {
321cf4323eSThomas Huth return qtest_common_shutdown(qs);
331cf4323eSThomas Huth }
34