mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
85128e2962
Due to a kernel commit (b4b8f770e), cpuinfo format has changed on ARMs. Firstly, 'Processor: ...' may not be reported, it's replaced by 'model name: ...'. Secondly, the "Processor" string may occur in CPU name, e.g. 'ARMv7 Processor rev 5 (v7l)'. Therefore, we must firstly look for 'model name' and then for 'Processor' if not found. Moreover, lines in the cpuinfo file are shuffled, so we better not manipulate the pointer to start of internal buffer as we may lost some info. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
19 lines
575 B
Plaintext
19 lines
575 B
Plaintext
<sysinfo type='smbios'>
|
|
<processor>
|
|
<entry name='socket_destination'>0</entry>
|
|
<entry name='type'>ARMv7 Processor rev 5 (v7l)</entry>
|
|
</processor>
|
|
<processor>
|
|
<entry name='socket_destination'>1</entry>
|
|
<entry name='type'>ARMv7 Processor rev 5 (v7l)</entry>
|
|
</processor>
|
|
<processor>
|
|
<entry name='socket_destination'>2</entry>
|
|
<entry name='type'>ARMv7 Processor rev 5 (v7l)</entry>
|
|
</processor>
|
|
<processor>
|
|
<entry name='socket_destination'>3</entry>
|
|
<entry name='type'>ARMv7 Processor rev 5 (v7l)</entry>
|
|
</processor>
|
|
</sysinfo>
|