parameters: ()
docstring: Run kvm-ok as root to check that KVM is properly enabled after installation
       of the required packages.
  
    Returns:
      True iff KVM is enabled (/dev/kvm exists). On failure, returns False
      but also print detailed information explaining why KVM isn't enabled
      (e.g. CPU doesn't support it, or BIOS disabled it).
docstring_summary: Run kvm-ok as root to check that KVM is properly enabled after installation
       of the required packages.
docstring_tokens: Run kvm - ok as root to check that KVM is properly enabled after installation of the required packages .
function: def RunKvmOk():
    """Run kvm-ok as root to check that KVM is properly enabled after installation
       of the required packages.
  
    Returns:
      True iff KVM is enabled (/dev/kvm exists). On failure, returns False
      but also print detailed information explaining why KVM isn't enabled
      (e.g. CPU doesn't support it, or BIOS disabled it).
    """
    try:
      # Note: kvm-ok is in /usr/sbin, so always use 'sudo' to run it.
      return not cmd_helper.RunCmd(['sudo', 'kvm-ok'])
    except OSError:
      logging.info('kvm-ok not installed')
      return False
function_tokens: def RunKvmOk ( ) : try : # Note: kvm-ok is in /usr/sbin, so always use 'sudo' to run it. return not cmd_helper . RunCmd ( [ 'sudo' , 'kvm-ok' ] ) except OSError : logging . info ( 'kvm-ok not installed' ) return False