]> git.proxmox.com Git - mirror_qemu.git/blob - tests/libqos/libqos-pc.c
aa17c980d84ff8a27942814183138df19bbc727a
[mirror_qemu.git] / tests / libqos / libqos-pc.c
1 #include "qemu/osdep.h"
2 #include "libqos/libqos-pc.h"
3 #include "libqos/malloc-pc.h"
4 #include "libqos/pci-pc.h"
5
6 static QOSOps qos_ops = {
7 .init_allocator = pc_alloc_init_flags,
8 .uninit_allocator = pc_alloc_uninit,
9 .qpci_init = qpci_init_pc,
10 .qpci_free = qpci_free_pc,
11 };
12
13 QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap)
14 {
15 return qtest_vboot(&qos_ops, cmdline_fmt, ap);
16 }
17
18 QOSState *qtest_pc_boot(const char *cmdline_fmt, ...)
19 {
20 QOSState *qs;
21 va_list ap;
22
23 va_start(ap, cmdline_fmt);
24 qs = qtest_vboot(&qos_ops, cmdline_fmt, ap);
25 va_end(ap);
26
27 qtest_irq_intercept_in(global_qtest, "ioapic");
28
29 return qs;
30 }
31
32 void qtest_pc_shutdown(QOSState *qs)
33 {
34 return qtest_shutdown(qs);
35 }