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_64impl for getting supported CPU IDs.irq_chip-IrqChipX86_64for adjusting appropriate IrqChip CPUID bits.vcpu-VcpuX86_64for setting CPU ID.vcpu_id- The vcpu index ofvcpu.cpu_config- CPU feature configurations.