This is a resubmit of a previous series I sent as a RFC, with some changes to prepare for an upcoming patch that will make additional changes to the default config-file loading code.
This series needs be applied on top of the "./configure --confdir" series I sent today. Changes v1 -> v2: - Moved some code to qemu-config-arch.c, as it will eventually have arch-specific features Eduardo Habkost (3): qemu-config.h: include qemu-option.h -readconfig: use QemuOpts option format (v2) -readconfig: accept fd=<fd> option (v2) Makefile.target | 2 +- qemu-config-arch.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++ qemu-config-arch.h | 15 +++++++++ qemu-config.c | 46 ++++++++++++++++++++++----- qemu-config.h | 10 +++++- qemu-options.hx | 6 ++-- vl.c | 7 ++-- 7 files changed, 155 insertions(+), 17 deletions(-) create mode 100644 qemu-config-arch.c create mode 100644 qemu-config-arch.h -- 1.7.3.2