11cf4323eSThomas Huth #include "qemu/osdep.h"
2*a2ce7dbdSPaolo Bonzini #include "libqos-pc.h"
3*a2ce7dbdSPaolo Bonzini #include "malloc-pc.h"
4*a2ce7dbdSPaolo Bonzini #include "pci-pc.h"
51cf4323eSThomas Huth
61cf4323eSThomas Huth static QOSOps qos_ops = {
71cf4323eSThomas Huth .alloc_init = pc_alloc_init,
81cf4323eSThomas Huth .qpci_new = qpci_new_pc,
91cf4323eSThomas Huth .qpci_free = qpci_free_pc,
101cf4323eSThomas Huth .shutdown = qtest_pc_shutdown,
111cf4323eSThomas Huth };
121cf4323eSThomas Huth
qtest_pc_vboot(const char * cmdline_fmt,va_list ap)131cf4323eSThomas Huth QOSState *qtest_pc_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_pc_boot(const char * cmdline_fmt,...)181cf4323eSThomas Huth QOSState *qtest_pc_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 qtest_irq_intercept_in(qs->qts, "ioapic");
281cf4323eSThomas Huth
291cf4323eSThomas Huth return qs;
301cf4323eSThomas Huth }
311cf4323eSThomas Huth
qtest_pc_shutdown(QOSState * qs)321cf4323eSThomas Huth void qtest_pc_shutdown(QOSState *qs)
331cf4323eSThomas Huth {
341cf4323eSThomas Huth return qtest_common_shutdown(qs);
351cf4323eSThomas Huth }
36