Function x86_64::cpuid::adjust_cpuid
source · pub fn adjust_cpuid(entry: &mut CpuIdEntry, ctx: &CpuIdContext)
Expand description
Adjust a CPUID instruction result to return values that work with crosvm.
Given an input CpuIdEntry entry
, which represents what the Hypervisor would normally return
for a given CPUID instruction result, adjust that result to reflect the capabilities of crosvm.
The ctx
argument contains all of the Vm-specific and Vcpu-specific information required to
return the appropriate results.