• C
    Fix a JSON CPU information bug. · ed3d86c9
    Chris Lalancette 提交于
    When using the JSON monitor, qemuMonitorJSONExtractCPUInfo
    was returning 0 on success.  Unfortunately, higher levels of
    the cpuinfo code expect that it returns the number of CPUs
    it found on success.  This one-line patch fixes it so that
    it returns the correct number.  This makes "virsh vcpuinfo <domain>"
    work when using the JSON monitor.
    Signed-off-by: NChris Lalancette <clalance@redhat.com>
    ed3d86c9
qemu_monitor_json.c 54.4 KB