vmm: seccomp: Remove unreachable patterns
Make HypervisorType enum's members conditional on build time features. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
aea1f7743b
commit
a48d7c281e
2 changed files with 2 additions and 6 deletions
|
|
@ -61,7 +61,9 @@ pub use vm::{
|
|||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub enum HypervisorType {
|
||||
#[cfg(feature = "kvm")]
|
||||
Kvm,
|
||||
#[cfg(feature = "mshv")]
|
||||
Mshv,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue