

def get_vcpus_info(self):
    'Returns virtual cpus information of guest.\n\n        :returns: guest.VCPUInfo\n        '
    vcpus = self._domain.vcpus()
    if (vcpus is not None):
        for vcpu in vcpus[0]:
            (yield VCPUInfo(id=vcpu[0], cpu=vcpu[3], state=vcpu[1], time=vcpu[2]))

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py Guest.get_vcpus_info/original