def freecpu():
 conn = __get_conn()
 cpus = conn.getInfo()[2]
 for vm_ in list_domains():
  dom = _get_domain(vm_)
  if (dom.ID() > 0):
   cpus -= dom.info()[3]
 return cpus

def freecpu ( ) : conn = __get_conn ( ) cpus = conn . getInfo ( ) [ 2 ] for vm_ in list_domains ( ) : dom = _get_domain ( vm_ ) if ( dom . ID ( ) > 0 ) : cpus -= dom . info ( ) [ 3 ] return cpus
return an int representing the number of unallocated cpus on this hypervisor cli example: .