import re


def _vtx_enabled(g):
    """Detect if system supports VTx using /proc/cpuinfo."""
    regex = re.compile("svm|vtx")
    with open("/proc/cpuinfo") as f:
        for line in f:
            if regex.search(line) is not None:
                return True
    return False