• J
    qemu: Refactor qemuMonitorJSONGetCPUx86Data · 2a8d40f4
    Jiri Denemark 提交于
    This patch splits qemuMonitorJSONGetCPUx86Data in three functions:
    
    - qemuMonitorJSONCheckCPUx86 checks if QEMU supports reporting CPUID
      features for a guest CPU
    
    - qemuMonitorJSONParseCPUx86Features parses CPUID features from a JSON
      array
    
    - qemuMonitorJSONGetCPUx86Data gets the requested guest CPU property
      from QOM and uses qemuMonitorJSONParseCPUx86Features to parse it
    Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
    2a8d40f4
qemu_monitor_json.c 207.2 KB