def is_kvm_hyper():
    try:
        if 'kvm_' not in salt.utils.fopen('/proc/modules').read():
            return False
    except IOError:
        # No /proc/modules? Are we on Windows? Or Solaris?
        return False
    return 'libvirtd' in __salt__['cmd.run'](__grains__['ps'])
Returns a bool whether or not this node is a KVM hypervisor
dataset/ETHPy150Open saltstack/salt/salt/modules/virt.py/is_kvm_hyper