mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
eb4dd90532
Rather than calling cpuid and then updating the APIC ID field - use the existing common CPUID data which already includes CPUID data for eax=1 (aka function = 1). This removes the need to call cpuid per vCPU thread created. This has a positive impact on boot time with multiple vCPUs as the cpuid instruction is serialising. Fixes: #5646 Signed-off-by: Rob Bradford <rbradford@rivosinc.com>