Skip to content

Commit

Permalink
Revert 8d0fa80 and ed7116d
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivanshVij committed Apr 19, 2024
1 parent bee01a3 commit e7734f3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/vmm/src/cpu_config/x86_64/cpuid/amd/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ pub enum NormalizeCpuidError {
MissingLeaf0x80000000,
/// Missing leaf 0x80000001.
MissingLeaf0x80000001,
/// Missing leaf 0x40000001.
MissingLeaf0x40000001,
/// Failed to set feature entry leaf: {0}
FeatureEntry(#[from] FeatureEntryError),
/// Failed to set extended cache topology leaf: {0}
Expand Down Expand Up @@ -112,7 +110,6 @@ impl super::AmdCpuid {
self.update_extended_cache_topology_entry(cpu_count, cpus_per_core)?;
self.update_extended_apic_id_entry(cpu_index, cpus_per_core)?;
self.update_brand_string_entry()?;
self.disable_kvm_feature_async_pf()?;

Ok(())
}
Expand Down Expand Up @@ -410,16 +407,6 @@ impl super::AmdCpuid {
.map_err(NormalizeCpuidError::BrandString)?;
Ok(())
}

fn disable_kvm_feature_async_pf(&mut self) -> Result<(), NormalizeCpuidError> {
let leaf_40000001 = self
.get_mut(&CpuidKey::leaf(0x40000001))
.ok_or(NormalizeCpuidError::MissingLeaf0x40000001)?;

// Disable KVM_FEATURE_ASYNC_PF
set_bit(&mut leaf_40000001.result.eax, 14, false);
Ok(())
}
}

#[cfg(test)]
Expand Down

0 comments on commit e7734f3

Please sign in to comment.