From 9b1ff841b7e5f71e45468ba8a6838987c158b65a Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Thu, 5 Nov 2026 22:52:01 +0000 Subject: [PATCH] Update bhyve_api for illumos#15678" --- crates/bhyve-api/src/lib.rs | 6 +++++- crates/bhyve-api/sys/src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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;