def METHOD_NAME(
    microvm_factory, guest_kernel, rootfs_ubuntu_22, cpu_template
):
    """
    Check the CPU features for a microvm with the specified config.
    """
    vm = microvm_factory.build(guest_kernel, rootfs_ubuntu_22, monitor_memory=False)
    vm.spawn()
    vm.basic_config(cpu_template=cpu_template)
    vm.add_net_iface()
    vm.start()
    guest_kv = re.search(r"vmlinux-(\d+\.\d+)", guest_kernel.name).group(1)
    _check_cpu_features_arm(vm, guest_kv, "aarch64_v1n1")