From 68f746fbea328d0a3319104e6a718efb562db928 Mon Sep 17 00:00:00 2001 From: Anirudh Rayabharam Date: Wed, 18 Feb 2026 07:34:26 +0000 Subject: [PATCH] hypervisor: mshv: use the new default partition args function The 0.6.7 version of the mshv crates introduced a new version of make_default_partition_create_arg inside `struct Mshv`. This version queries the available processor features on the host and gives the same feature set to the guests. Move Cloud Hypervisor to this new function. Signed-off-by: Anirudh Rayabharam --- hypervisor/src/mshv/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index b7bdbf6a5..613c4dc77 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -19,8 +19,7 @@ use mshv_bindings::*; #[cfg(target_arch = "x86_64")] use mshv_ioctls::InterruptRequest; use mshv_ioctls::{ - Mshv, NoDatamatch, VcpuFd, VmFd, VmType, make_default_partition_create_arg, - make_default_synthetic_features_mask, set_registers_64, + Mshv, NoDatamatch, VcpuFd, VmFd, VmType, make_default_synthetic_features_mask, set_registers_64, }; use vfio_ioctls::VfioDeviceFd; use vm::DataMatch; @@ -286,7 +285,8 @@ impl hypervisor::Hypervisor for MshvHypervisor { VmType::Normal }; } - let mut create_args = make_default_partition_create_arg(mshv_vm_type); + + let mut create_args = self.mshv.make_default_partition_create_arg(mshv_vm_type); let mut disable_proc_features = hv_partition_processor_features::default(); // SAFETY: Accessing a union element from bindgen generated bindings. unsafe {