nbd-client: avoid spurious qio_channel_yield() re-entry
[qemu/ar7.git] / tests / libqos / libqos-pc.c
blobb5547588029da0eb1a0236f06a6a0c31d7505180
1 #include "qemu/osdep.h"
2 #include "libqos/libqos-pc.h"
3 #include "libqos/malloc-pc.h"
4 #include "libqos/pci-pc.h"
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 .shutdown = qtest_pc_shutdown,
14 QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap)
16 return qtest_vboot(&qos_ops, cmdline_fmt, ap);
19 QOSState *qtest_pc_boot(const char *cmdline_fmt, ...)
21 QOSState *qs;
22 va_list ap;
24 va_start(ap, cmdline_fmt);
25 qs = qtest_vboot(&qos_ops, cmdline_fmt, ap);
26 va_end(ap);
28 qtest_irq_intercept_in(global_qtest, "ioapic");
30 return qs;
33 void qtest_pc_shutdown(QOSState *qs)
35 return qtest_common_shutdown(qs);