Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / tests / qtest / libqos / libqos-pc.c
blobdb420a596e9afea774ec86641c203e819d7cc0aa
1 #include "qemu/osdep.h"
2 #include "libqos-pc.h"
3 #include "malloc-pc.h"
4 #include "pci-pc.h"
6 static QOSOps qos_ops = {
7 .alloc_init = pc_alloc_init,
8 .qpci_new = qpci_new_pc,
9 .qpci_free = qpci_free_pc,
10 .shutdown = qtest_pc_shutdown,
13 QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap)
15 return qtest_vboot(&qos_ops, cmdline_fmt, ap);
18 QOSState *qtest_pc_boot(const char *cmdline_fmt, ...)
20 QOSState *qs;
21 va_list ap;
23 va_start(ap, cmdline_fmt);
24 qs = qtest_vboot(&qos_ops, cmdline_fmt, ap);
25 va_end(ap);
27 qtest_irq_intercept_in(qs->qts, "ioapic");
29 return qs;
32 void qtest_pc_shutdown(QOSState *qs)
34 return qtest_common_shutdown(qs);