Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions xen-ioctls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ default = []
"xen_domctl_interface_version_0x15" = []
"xen_domctl_interface_version_0x16" = []
"xen_domctl_interface_version_0x17" = []
"xen_domctl_interface_version_0x18" = []
6 changes: 4 additions & 2 deletions xen-ioctls/src/domctl/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ use crate::aarch64::types::*;
use crate::x86_64::types::*;

cfg_if::cfg_if! {
if #[cfg(feature = "xen_domctl_interface_version_0x17")] {
if #[cfg(feature = "xen_domctl_interface_version_0x18")] {
pub const XEN_DOMCTL_INTERFACE_VERSION: u32 = 0x18;
} else if #[cfg(feature = "xen_domctl_interface_version_0x17")] {
pub const XEN_DOMCTL_INTERFACE_VERSION: u32 = 0x17;
} else if #[cfg(feature = "xen_domctl_interface_version_0x16")] {
pub const XEN_DOMCTL_INTERFACE_VERSION: u32 = 0x16;
} else if #[cfg(feature = "xen_domctl_interface_version_0x15")] {
pub const XEN_DOMCTL_INTERFACE_VERSION: u32 = 0x15;
} else {
pub const XEN_DOMCTL_INTERFACE_VERSION: u32 = 0x17;
pub const XEN_DOMCTL_INTERFACE_VERSION: u32 = 0x18;
}
}

Expand Down