We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
has_cpuid
1 parent 20e18a8 commit 85580d7Copy full SHA for 85580d7
src/cpuid/src/common.rs
@@ -31,8 +31,8 @@ pub enum Error {
31
/// Extract entry from the cpuid.
32
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
33
pub fn get_cpuid(function: u32, count: u32) -> Result<CpuidResult, Error> {
34
- // TODO: replace with validation based on `has_cpuid()` when it becomes stable:
35
- // 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)
36
#[cfg(target_env = "sgx")]
37
{
38
return Err(Error::NotSupported);
0 commit comments