diff --git a/crates/bhyve-api/src/lib.rs b/crates/bhyve-api/src/lib.rs index a97ddf89f..00965ec13 100644 --- a/crates/bhyve-api/src/lib.rs +++ b/crates/bhyve-api/src/lib.rs @@ -541,6 +541,10 @@ unsafe fn ioctl( #[repr(u32)] #[derive(Copy, Clone)] pub enum ApiVersion { + /// `VM_GET_CPUS` accepts a set of any size up to a page, and fails with + /// `ERANGE` if the set is too small to hold every member + V19 = 19, + /// Initial support for CPU perf. counters on AMD V18 = 18, @@ -590,7 +594,7 @@ pub enum ApiVersion { } impl ApiVersion { pub const fn current() -> Self { - Self::V18 + Self::V19 } } diff --git a/crates/bhyve-api/sys/src/lib.rs b/crates/bhyve-api/sys/src/lib.rs index 9d90f84d5..07952d038 100644 --- a/crates/bhyve-api/sys/src/lib.rs +++ b/crates/bhyve-api/sys/src/lib.rs @@ -17,4 +17,4 @@ pub const VM_MAXCPU: usize = 32; /// This is the VMM interface version which bhyve_api expects to operate /// against. All constants and structs defined by the crate are done so in /// terms of that specific version. -pub const VMM_CURRENT_INTERFACE_VERSION: u32 = 18; +pub const VMM_CURRENT_INTERFACE_VERSION: u32 = 19;