Function x86_64::cpuid::setup_cpuid

source ·
pub fn setup_cpuid(
    hypervisor: &dyn HypervisorX86_64,
    irq_chip: &dyn IrqChipX86_64,
    vcpu: &dyn VcpuX86_64,
    vcpu_id: usize,
    nrcpus: usize,
    cpu_config: CpuConfigX86_64
) -> Result<()>
Expand description

Sets up the cpuid entries for the given vcpu. Can fail if there are too many CPUs specified or if an ioctl returns an error.

§Arguments

  • hypervisor - HypervisorX86_64 impl for getting supported CPU IDs.
  • irq_chip - IrqChipX86_64 for adjusting appropriate IrqChip CPUID bits.
  • vcpu - VcpuX86_64 for setting CPU ID.
  • vcpu_id - The vcpu index of vcpu.
  • cpu_config - CPU feature configurations.