def load_kvm():
 kvm_arch = get_kvm_arch()
 def load_module(mod='kvm'):
  return utils.system(('modprobe %s' % mod))
 loaded = load_module()
 if (not loaded):
  loaded = load_module(mod=kvm_arch)
 return loaded

def load_kvm ( ) : kvm_arch = get_kvm_arch ( ) def load_module ( mod = 'kvm' ) : return utils . system ( ( 'modprobe %s' % mod ) ) loaded = load_module ( ) if ( not loaded ) : loaded = load_module ( mod = kvm_arch ) return loaded
loads the appropriate kvm kernel modules depending on the current cpu architecture :returns: 0 on success or 1 on failure :rtype: int .