• E
    qemu: require qmp on new enough qemu · 6e769eba
    Eric Blake 提交于
    The qemu developers have made it clear that modern qemu will no
    longer guarantee human monitor command stability; furthermore,
    some features, such as async events, are only supported via qmp.
    If we are compiled without support for handling JSON, we cannot
    expect to sanely interact with modern qemu.
    
    However, things must continue to build on RHEL 5, where qemu
    is stuck at 0.10, and where yajl is not available.
    
    Another benefit of this patch: future additions of new monitor
    commands need only focus on qemu_monitor_json.c, instead of
    also wasting time with qemu_monitor_text.c.
    
    * src/qemu/qemu_capabilities.c (qemuCapsComputeCmdFlags): Report
    error if yajl is missing but qemu requires qmp.
    (qemuCapsParseHelpStr): Propagate error.
    (qemuCapsExtractVersionInfo): Update caller.
    * tests/qemuhelptest.c (testHelpStrParsing): Likewise.
    6e769eba
qemu_capabilities.h 8.8 KB