autotest/autotest — pull request #450 by zhouqt (2012-07-13 05:21:38+00:00)
Title: Generate cpu topology info as qemu's way 

The original code for generating cpu cores/threads/sockets info has problem, and it can't work for some special configuration, eg, qemu supports smp = 0, but autotest doesn't set smp option when smp config is '0'.
This pullreq updates cpu topology generation code as qemu's way.

Qingtang Zhou (2):
virt.virt_vm: Create CpuInfo struct for virt_vm class
virt.kvm_vm: Generate cpu topology info as qemu's way