2016-02-08 19:08:51 +01:00
|
|
|
#include "qemu/osdep.h"
|
2015-01-19 21:15:55 +01:00
|
|
|
#include "libqos/libqos-pc.h"
|
|
|
|
#include "libqos/malloc-pc.h"
|
2016-09-29 12:32:45 +02:00
|
|
|
#include "libqos/pci-pc.h"
|
2015-01-19 21:15:55 +01:00
|
|
|
|
|
|
|
static QOSOps qos_ops = {
|
2018-11-29 12:37:04 +01:00
|
|
|
.alloc_init = pc_alloc_init,
|
2018-07-19 13:50:27 +02:00
|
|
|
.qpci_new = qpci_new_pc,
|
2016-09-29 12:32:45 +02:00
|
|
|
.qpci_free = qpci_free_pc,
|
2016-09-29 12:32:46 +02:00
|
|
|
.shutdown = qtest_pc_shutdown,
|
2015-01-19 21:15:55 +01:00
|
|
|
};
|
|
|
|
|
2015-04-28 21:27:51 +02:00
|
|
|
QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap)
|
|
|
|
{
|
|
|
|
return qtest_vboot(&qos_ops, cmdline_fmt, ap);
|
|
|
|
}
|
|
|
|
|
2015-01-19 21:15:55 +01:00
|
|
|
QOSState *qtest_pc_boot(const char *cmdline_fmt, ...)
|
|
|
|
{
|
|
|
|
QOSState *qs;
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, cmdline_fmt);
|
|
|
|
qs = qtest_vboot(&qos_ops, cmdline_fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
|
2017-09-11 19:20:01 +02:00
|
|
|
qtest_irq_intercept_in(qs->qts, "ioapic");
|
2016-09-13 14:52:44 +02:00
|
|
|
|
2015-01-19 21:15:55 +01:00
|
|
|
return qs;
|
|
|
|
}
|
|
|
|
|
|
|
|
void qtest_pc_shutdown(QOSState *qs)
|
|
|
|
{
|
2016-09-29 12:32:46 +02:00
|
|
|
return qtest_common_shutdown(qs);
|
2015-01-19 21:15:55 +01:00
|
|
|
}
|