def _get_cpu_info(self):
    'Get cpuinfo information.\n\n        Obtains cpu feature from virConnect.getCapabilities,\n        and returns as a json string.\n\n        :return: see above description\n\n        '
    caps = self._get_host_capabilities()
    cpu_info = dict()
    cpu_info['arch'] = caps.host.cpu.arch
    cpu_info['model'] = caps.host.cpu.model
    cpu_info['vendor'] = caps.host.cpu.vendor
    topology = dict()
    topology['sockets'] = caps.host.cpu.sockets
    topology['cores'] = caps.host.cpu.cores
    topology['threads'] = caps.host.cpu.threads
    cpu_info['topology'] = topology
    features = list()
    for f in caps.host.cpu.features:
        features.append(f.name)
    cpu_info['features'] = features
    return jsonutils.dumps(cpu_info)
Get cpuinfo information.

Obtains cpu feature from virConnect.getCapabilities,
and returns as a json string.

:return: see above description
def _get_cpu_info(self):
    'Get cpuinfo information.\n\n        Obtains cpu feature from virConnect.getCapabilities,\n        and returns as a json string.\n\n        :return: see above description\n\n        '
    caps = self._get_host_capabilities()
    cpu_info = dict()
    cpu_info['arch'] = caps.host.cpu.arch
    cpu_info['model'] = caps.host.cpu.model
    cpu_info['vendor'] = caps.host.cpu.vendor
    topology = dict()
    topology['sockets'] = caps.host.cpu.sockets
    topology['cores'] = caps.host.cpu.cores
    topology['threads'] = caps.host.cpu.threads
    cpu_info['topology'] = topology
    features = list()
    for f in caps.host.cpu.features:
        features.append(f.name)
    cpu_info['features'] = features
    return jsonutils.dumps(cpu_info)