1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! Root binary crate for OpenVMM.

// Ensure openvmm_resources gets linked.
extern crate openvmm_resources as _;

// Use Win10+ PRNG APIs to run on smaller Windows SKUs.
//
// Just override advapi32 for now; bcrypt is used by vmgs encryption.
#[cfg(windows)]
win_prng_support::use_win10_prng_apis!(advapi32);

fn main() {
    openvmm_resources::ensure_linked_on_macos();
    openvmm_entry::hvlite_main()
}