cpu_x86: Add support for storing MSR features in CPU map

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jiri Denemark
2019-03-19 09:45:48 +01:00
parent 370177e2f6
commit fcf4846a6b
3 changed files with 127 additions and 13 deletions

View File

@@ -307,7 +307,8 @@ def parseMap():
cpuMap = {}
for feature in data["cpus"]["feature"]:
cpuMap[feature["@name"]] = parseFeature(feature["cpuid"])
if "cpuid" in feature:
cpuMap[feature["@name"]] = parseFeature(feature["cpuid"])
return cpuMap