From 3a60c653694a94d0c4d1d52b8fb83e689e5e21a6 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Wed, 20 Mar 2024 09:03:24 +0530 Subject: [PATCH] hypervisor: mshv: Reduce the visbility of get_supported_cpuid to x86 Supported CPUID could only be fetched for x86_64 guests. Signed-off-by: Jinank Jain --- hypervisor/src/mshv/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index ac5792979..f823c12ae 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -340,6 +340,7 @@ impl hypervisor::Hypervisor for MshvHypervisor { let vm_type = 0; self.create_vm_with_type(vm_type) } + #[cfg(target_arch = "x86_64")] /// /// Get the supported CpuID ///