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

config-file.h (1140B)


      1#ifndef QEMU_CONFIG_FILE_H
      2#define QEMU_CONFIG_FILE_H
      3
      4typedef void QEMUConfigCB(const char *group, QDict *qdict, void *opaque, Error **errp);
      5
      6void qemu_load_module_for_opts(const char *group);
      7QemuOptsList *qemu_find_opts(const char *group);
      8QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
      9QemuOpts *qemu_find_opts_singleton(const char *group);
     10
     11void qemu_add_opts(QemuOptsList *list);
     12void qemu_add_drive_opts(QemuOptsList *list);
     13int qemu_global_option(const char *str);
     14
     15void qemu_config_write(FILE *fp);
     16int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname,
     17                      Error **errp);
     18
     19/* A default callback for qemu_read_config_file().  */
     20void qemu_config_do_parse(const char *group, QDict *qdict, void *opaque, Error **errp);
     21
     22int qemu_read_config_file(const char *filename, QEMUConfigCB *f, Error **errp);
     23
     24/* Parse QDict options as a replacement for a config file (allowing multiple
     25   enumerated (0..(n-1)) configuration "sections") */
     26void qemu_config_parse_qdict(QDict *options, QemuOptsList **lists,
     27                             Error **errp);
     28
     29#endif /* QEMU_CONFIG_FILE_H */