openvmm/main.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Host-side executable for the OpenVMM virtual machine monitor.
5//!
6//! This crate links the platform hypervisors and device resource resolvers,
7//! then delegates startup and command-line processing to
8//! [`openvmm_entry::openvmm_main`]. It can be launched from the repository
9//! with `cargo run -p openvmm -- <options>`.
10
11#![forbid(unsafe_code)]
12
13// Ensure openvmm_resources and openvmm_hypervisors get linked.
14extern crate openvmm_hypervisors as _;
15extern crate openvmm_resources as _;
16
17#[cfg(not(test))]
18crypto::ensure_single_backend!();
19
20fn main() {
21 openvmm_entry::openvmm_main()
22}