def METHOD_NAME(cpu_flag):
    """
    Boot the guest with cpu_model_flags set to cpu_flag,
    then run gettime_cycle.exe to acquire cpu cycles.
    param cpu_flag: the cpu flags to set
    return: the cpu cycles returned by gettime_cycle.exe
    """
    test.log.info("Boot the guest with cpu_model_flags= %s", cpu_flag)
    vm = _boot_guest_with_cpu_flag(cpu_flag)
    session = vm.wait_for_login(timeout=timeout)
    test.log.info("Run gettime_cycle.exe")
    cycles = _run_gettime(session)
    vm = env.get_vm(params["main_vm"])
    vm.graceful_shutdown(timeout=timeout)
    return cycles