2020-06-08 00:50:38 +00:00
|
|
|
// Copyright © 2019 Intel Corporation
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
// Copyright © 2020, Microsoft Corporation
|
|
|
|
//
|
|
|
|
// Copyright 2018-2019 CrowdStrike, Inc.
|
|
|
|
//
|
2020-06-03 19:23:56 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
//! A generic abstraction around hypervisor functionality
|
|
|
|
//!
|
|
|
|
//! This crate offers a trait abstraction for underlying hypervisors
|
|
|
|
//!
|
|
|
|
//! # Platform support
|
|
|
|
//!
|
|
|
|
//! - x86_64
|
|
|
|
//! - arm64
|
|
|
|
//!
|
|
|
|
|
|
|
|
/// KVM implementation module
|
|
|
|
pub mod kvm;
|
|
|
|
|
2020-06-03 19:59:49 +00:00
|
|
|
/// Hypevisor related module
|
|
|
|
pub mod hypervisor;
|
|
|
|
|
2020-06-03 19:58:00 +00:00
|
|
|
/// Vm related module
|
|
|
|
pub mod vm;
|
|
|
|
|
2020-06-03 19:23:56 +00:00
|
|
|
/// CPU related module
|
|
|
|
mod cpu;
|
|
|
|
|
2020-06-03 19:59:49 +00:00
|
|
|
pub use crate::hypervisor::{Hypervisor, HypervisorError};
|
2020-06-03 19:23:56 +00:00
|
|
|
pub use cpu::{HypervisorCpuError, Vcpu};
|
|
|
|
pub use kvm::*;
|