elf: Fix tst-cpu-features-cpuinfo for KVM guests on some AMD systems [BZ #28704]
commit94058f6cde8b887178885954740ac6c866d25eab
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 15 Dec 2021 22:46:19 +0000 (15 23:46 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 17 Dec 2021 19:20:15 +0000 (17 20:20 +0100)
tree17fe49c56e33720c4d6dead0a7aeb7af955ef151
parentae91d3df24a4a1b1f264d101a71a298bff310d14
elf: Fix tst-cpu-features-cpuinfo for KVM guests on some AMD systems [BZ #28704]

On KVM guests running on some AMD systems, the IBRS feature is reported
as a synthetic feature using the Intel feature, while the cpuinfo entry
keeps the same. Handle that by first checking the presence of the Intel
feature on AMD systems.

Fixes bug 28704.
sysdeps/x86/tst-cpu-features-cpuinfo.c