From 85580d75d24e5fad777e9d3f5ba6ce22d5dd8e34 Mon Sep 17 00:00:00 2001 From: Jonathan Woollett-Light Date: Thu, 17 Nov 2022 14:48:25 +0000 Subject: [PATCH] Linking `has_cpuid` todo Signed-off-by: Jonathan Woollett-Light --- src/cpuid/src/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpuid/src/common.rs b/src/cpuid/src/common.rs index 30c00616c0f..78da507689c 100644 --- a/src/cpuid/src/common.rs +++ b/src/cpuid/src/common.rs @@ -31,8 +31,8 @@ pub enum Error { /// Extract entry from the cpuid. #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] pub fn get_cpuid(function: u32, count: u32) -> Result { - // TODO: replace with validation based on `has_cpuid()` when it becomes stable: - // https://doc.rust-lang.org/core/arch/x86/fn.has_cpuid.html + // TODO: Use `core::arch::x86_64::has_cpuid` + // (https://github.com/firecracker-microvm/firecracker/issues/3271) #[cfg(target_env = "sgx")] { return Err(Error::NotSupported);