blob: ef9fe89bf9a0d0e365c4ae3af1b25697242643a9 [file] [log] [blame] [edit]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/syslog/cpp/macros.h>
#include <lib/trace-provider/provider.h>
#include "src/virtualization/bin/linux_runner/linux_runner.h"
void PrintUsage();
int main(int argc, const char** argv) {
async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
trace::TraceProviderWithFdio trace_provider(loop.dispatcher());
linux_runner::LinuxRunner runner;
zx_status_t status = runner.Init();
if (status != ZX_OK) {
FX_LOGS(ERROR) << "Failed to start guest: " << status;
return -1;
}
loop.Run();
return 0;
}