mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-31 18:33:11 +00:00
2ba0b7497c
Non-x86 archs does not have a 'microcode' version like x86. This is covered already inside the function - just return 0 if no microcode is found. Regardless of that, a read of /proc/cpuinfo is always made. Each read will invoke the kernel to fill in the CPU details every time. Now let's consider a non-x86 host, like a Power 9 server with 128 CPUs. Each /proc/cpuinfo read will need to fetch data for each CPU and it won't even matter because we know beforehand that PowerPC chips don't have microcode information. We can do better for non-x86 hosts by skipping this process entirely. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> |
||
---|---|---|
.. | ||
cpu_arm_data.h | ||
cpu_arm.c | ||
cpu_arm.h | ||
cpu_map.c | ||
cpu_map.h | ||
cpu_ppc64_data.h | ||
cpu_ppc64.c | ||
cpu_ppc64.h | ||
cpu_s390.c | ||
cpu_s390.h | ||
cpu_x86_data.h | ||
cpu_x86.c | ||
cpu_x86.h | ||
cpu.c | ||
cpu.h | ||
meson.build |