blob: 25ab01b77773c7647cb409e08bfdfaef5539488d [file]
// 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 <trace-provider/provider.h>
#include "src/lib/fxl/logging.h"
#include "src/virtualization/packages/biscotti_guest/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) {
FXL_LOG(ERROR) << "Failed to start guest: " << status;
return -1;
}
loop.Run();
return 0;
}