Re: [libvirt] Problem about CPU index

2013-02-26 Thread Li Zhang
On 2013年02月27日 07:28, Eric Blake wrote: On 02/25/2013 10:22 PM, Li Zhang wrote: Hi all, In this function qemuMonitorJSONExtractCPUInfo(), It assumes that cpu index is always contiguous. If possible, can this assumption be removed? Sure - patches welcome. It would be best if you can submit t

Re: [libvirt] Problem about CPU index

2013-02-26 Thread Eric Blake
On 02/25/2013 10:22 PM, Li Zhang wrote: > Hi all, > > In this function qemuMonitorJSONExtractCPUInfo(), > > It assumes that cpu index is always contiguous. > > If possible, can this assumption be removed? Sure - patches welcome. It would be best if you can submit the patch, since you are the

[libvirt] Problem about CPU index

2013-02-26 Thread Li Zhang
Hi all, In this function qemuMonitorJSONExtractCPUInfo(), It assumes that cpu index is always contiguous. if (cpu != i) { virReportError(VIR_ERR_INTERNAL_ERROR, _("unexpected cpu index %d expecting %d"), i, cpu);