cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

libqos-spapr.c (682B)


      1#include "qemu/osdep.h"
      2#include "libqos-spapr.h"
      3#include "malloc-spapr.h"
      4#include "pci-spapr.h"
      5
      6static QOSOps qos_ops = {
      7    .alloc_init = spapr_alloc_init,
      8    .qpci_new = qpci_new_spapr,
      9    .qpci_free = qpci_free_spapr,
     10    .shutdown = qtest_spapr_shutdown,
     11};
     12
     13QOSState *qtest_spapr_vboot(const char *cmdline_fmt, va_list ap)
     14{
     15    return qtest_vboot(&qos_ops, cmdline_fmt, ap);
     16}
     17
     18QOSState *qtest_spapr_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    return qs;
     28}
     29
     30void qtest_spapr_shutdown(QOSState *qs)
     31{
     32    return qtest_common_shutdown(qs);
     33}