From: Jiri Denemark Date: Tue, 9 Jan 2018 20:36:28 +0000 (+0100) Subject: cpu: Add Broadwell-IBRS CPU model X-Git-Tag: v4.0.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bb4ce9761dfbd1620ddffb26fbd6f0ff1fedf3f;p=thirdparty%2Flibvirt.git cpu: Add Broadwell-IBRS CPU model This is a variant of Broadwell with indirect branch prediction protection. The only difference between Broadwell and Broadwell-IBRS is the added "spec-ctrl" feature. The Broadwell-IBRS model in QEMU is a bit different since Broadwell got several additional features since we added it in cpu_map.xml: abm, arat, f16c, rdrand, vme, xsaveopt Adding them only to the -IBRS variant would confuse our CPU detection code. Signed-off-by: Jiri Denemark Reviewed-by: Pavel Hrdina --- diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml index fadcb0a0a7..63b3c12ea7 100644 --- a/src/cpu/cpu_map.xml +++ b/src/cpu/cpu_map.xml @@ -1565,6 +1565,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-guest.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-guest.xml index 59f814c193..a70cb6d46a 100644 --- a/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-guest.xml +++ b/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-guest.xml @@ -1,5 +1,5 @@ - Broadwell + Broadwell-IBRS Intel @@ -22,7 +22,6 @@ - diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-host.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-host.xml index 2fc670c85f..b8e3399103 100644 --- a/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-host.xml +++ b/tests/cputestdata/x86_64-cpuid-Core-i7-5600U-ibrs-host.xml @@ -1,6 +1,6 @@ x86_64 - Broadwell + Broadwell-IBRS Intel @@ -23,7 +23,6 @@ - diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-host.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-host.xml index cf718eeea0..357cafd10a 100644 --- a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-host.xml +++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-host.xml @@ -1,6 +1,6 @@ x86_64 - Broadwell + Broadwell-IBRS Intel @@ -25,7 +25,6 @@ -