2020-06-08 00:50:38 +00:00
|
|
|
// Copyright © 2019 Intel Corporation
|
|
|
|
//
|
2020-06-26 00:06:14 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
|
2020-06-08 00:50:38 +00:00
|
|
|
//
|
2020-06-28 16:32:56 +00:00
|
|
|
// Copyright © 2020, Microsoft Corporation
|
2020-06-08 00:50:38 +00:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
//!
|
|
|
|
|
2020-06-02 21:24:33 +00:00
|
|
|
extern crate serde;
|
|
|
|
extern crate serde_derive;
|
|
|
|
extern crate serde_json;
|
|
|
|
extern crate thiserror;
|
|
|
|
|
2020-06-03 19:23:56 +00:00
|
|
|
/// 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 20:09:39 +00:00
|
|
|
/// Architecture specific definitions
|
|
|
|
pub mod arch;
|
|
|
|
|
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::*;
|
2020-06-03 20:09:39 +00:00
|
|
|
pub use vm::{DataMatch, HypervisorVmError, Vm};
|