]>
Commit | Line | Data |
---|---|---|
681c28a3 | 1 | #include "qemu/osdep.h" |
90e5add6 JS |
2 | #include "libqos/libqos-pc.h" |
3 | #include "libqos/malloc-pc.h" | |
2ecd7e2f | 4 | #include "libqos/pci-pc.h" |
90e5add6 JS |
5 | |
6 | static QOSOps qos_ops = { | |
7 | .init_allocator = pc_alloc_init_flags, | |
2ecd7e2f LV |
8 | .uninit_allocator = pc_alloc_uninit, |
9 | .qpci_init = qpci_init_pc, | |
10 | .qpci_free = qpci_free_pc, | |
61ae5cf3 | 11 | .shutdown = qtest_pc_shutdown, |
90e5add6 JS |
12 | }; |
13 | ||
debaaa11 JS |
14 | QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap) |
15 | { | |
16 | return qtest_vboot(&qos_ops, cmdline_fmt, ap); | |
17 | } | |
18 | ||
90e5add6 JS |
19 | QOSState *qtest_pc_boot(const char *cmdline_fmt, ...) |
20 | { | |
21 | QOSState *qs; | |
22 | va_list ap; | |
23 | ||
24 | va_start(ap, cmdline_fmt); | |
25 | qs = qtest_vboot(&qos_ops, cmdline_fmt, ap); | |
26 | va_end(ap); | |
27 | ||
3d95fb97 | 28 | qtest_irq_intercept_in(qs->qts, "ioapic"); |
8d6ef7c9 | 29 | |
90e5add6 JS |
30 | return qs; |
31 | } | |
32 | ||
33 | void qtest_pc_shutdown(QOSState *qs) | |
34 | { | |
61ae5cf3 | 35 | return qtest_common_shutdown(qs); |
90e5add6 | 36 | } |