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 <jinankjain@microsoft.com>
This commit is contained in:
Jinank Jain 2024-03-20 09:03:24 +05:30 committed by Rob Bradford
parent 719cae217e
commit 3a60c65369

View File

@ -340,6 +340,7 @@ impl hypervisor::Hypervisor for MshvHypervisor {
let vm_type = 0; let vm_type = 0;
self.create_vm_with_type(vm_type) self.create_vm_with_type(vm_type)
} }
#[cfg(target_arch = "x86_64")]
/// ///
/// Get the supported CpuID /// Get the supported CpuID
/// ///