hypervisor: Introduce mshv module in the hypervisor

This is the initial folder structure of the mshv module inside
the hypervisor crate. The aim of this module is to support Microsoft
Hyper-V as a supported Hypervisor.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam 2020-12-03 14:14:04 -08:00 committed by Samuel Ortiz
parent 9ce6c3b75c
commit 9919dec1d9
5 changed files with 17 additions and 0 deletions

View File

@ -52,6 +52,7 @@ acpi = ["vmm/acpi"]
cmos = ["vmm/cmos"] cmos = ["vmm/cmos"]
fwdebug = ["vmm/fwdebug"] fwdebug = ["vmm/fwdebug"]
kvm = ["vmm/kvm"] kvm = ["vmm/kvm"]
mshv = ["vmm/mshv"]
io_uring = ["vmm/io_uring"] io_uring = ["vmm/io_uring"]
# Integration tests require a special environment to run in # Integration tests require a special environment to run in

View File

@ -7,6 +7,7 @@ license = "Apache-2.0 OR BSD-3-Clause"
[features] [features]
kvm = [] kvm = []
mshv = []
[dependencies] [dependencies]
anyhow = "1.0" anyhow = "1.0"

View File

@ -32,6 +32,10 @@ extern crate thiserror;
/// KVM implementation module /// KVM implementation module
pub mod kvm; pub mod kvm;
/// Microsoft Hypervisor implementation module
#[cfg(all(feature = "mshv", target_arch = "x86_64"))]
pub mod mshv;
/// Hypevisor related module /// Hypevisor related module
pub mod hypervisor; pub mod hypervisor;

View File

@ -0,0 +1,10 @@
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
//
// Copyright © 2020, Microsoft Corporation
//
#![allow(dead_code)]
#![allow(unused_imports)]
#![allow(unused_variables)]
#![allow(unused_macros)]
#![allow(non_upper_case_globals)]

View File

@ -10,6 +10,7 @@ acpi = ["acpi_tables","devices/acpi", "arch/acpi"]
cmos = ["devices/cmos"] cmos = ["devices/cmos"]
fwdebug = ["devices/fwdebug"] fwdebug = ["devices/fwdebug"]
kvm = ["hypervisor/kvm"] kvm = ["hypervisor/kvm"]
mshv = ["hypervisor/mshv"]
io_uring = ["virtio-devices/io_uring"] io_uring = ["virtio-devices/io_uring"]
[dependencies] [dependencies]