def unload_kvm():
 kvm_arch = get_kvm_arch()
 def unload_module(mod):
  return utils.system(('rmmod %s' % mod))
 unloaded = unload_module(kvm_arch)
 if (not unloaded):
  unloaded = unload_module('kvm')
 return unloaded

def unload_kvm ( ) : kvm_arch = get_kvm_arch ( ) def unload_module ( mod ) : return utils . system ( ( 'rmmod %s' % mod ) ) unloaded = unload_module ( kvm_arch ) if ( not unloaded ) : unloaded = unload_module ( 'kvm' ) return unloaded
unloads the current kvm kernel modules :returns: 0 on success or 1 on failure :rtype: int .