cpu: Add support for "stibp" x86_64 feature

QEMU commit v3.1.0-4-g0e89165829
KVM patch: https://lore.kernel.org/lkml/20181205191956.31480-1-ehabkost@redhat.com/

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jiri Denemark 2018-12-17 16:24:32 +01:00
parent 3f4914e03c
commit eb1b551d21
13 changed files with 15 additions and 4 deletions

View File

@ -323,6 +323,9 @@
<feature name='spec-ctrl'> <feature name='spec-ctrl'>
<cpuid eax_in='0x07' ecx_in='0x00' edx='0x04000000'/> <cpuid eax_in='0x07' ecx_in='0x00' edx='0x04000000'/>
</feature> </feature>
<feature name='stibp'>
<cpuid eax_in='0x07' ecx_in='0x00' edx='0x08000000'/>
</feature>
<feature name='ssbd'> <feature name='ssbd'>
<cpuid eax_in='0x07' ecx_in='0x00' edx='0x80000000'/> <cpuid eax_in='0x07' ecx_in='0x00' edx='0x80000000'/>
</feature> </feature>

View File

@ -1,6 +1,6 @@
<!-- Features disabled by QEMU --> <!-- Features disabled by QEMU -->
<cpudata arch='x86'> <cpudata arch='x86'>
<cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0800c1dc' edx='0xb0600000'/> <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0800c1dc' edx='0xb0600000'/>
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x04000000'/> <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x0c000000'/>
<cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/> <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
</cpudata> </cpudata>

View File

@ -23,6 +23,7 @@
<feature policy='require' name='arat'/> <feature policy='require' name='arat'/>
<feature policy='require' name='tsc_adjust'/> <feature policy='require' name='tsc_adjust'/>
<feature policy='require' name='intel-pt'/> <feature policy='require' name='intel-pt'/>
<feature policy='require' name='stibp'/>
<feature policy='require' name='xsaveopt'/> <feature policy='require' name='xsaveopt'/>
<feature policy='require' name='pdpe1gb'/> <feature policy='require' name='pdpe1gb'/>
<feature policy='require' name='abm'/> <feature policy='require' name='abm'/>

View File

@ -24,6 +24,7 @@
<feature name='arat'/> <feature name='arat'/>
<feature name='tsc_adjust'/> <feature name='tsc_adjust'/>
<feature name='intel-pt'/> <feature name='intel-pt'/>
<feature name='stibp'/>
<feature name='xsaveopt'/> <feature name='xsaveopt'/>
<feature name='pdpe1gb'/> <feature name='pdpe1gb'/>
<feature name='abm'/> <feature name='abm'/>

View File

@ -1,6 +1,6 @@
<!-- Features disabled by QEMU --> <!-- Features disabled by QEMU -->
<cpudata arch='x86'> <cpudata arch='x86'>
<cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/> <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/>
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00001000' ecx='0x00000000' edx='0x00000000'/> <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00001000' ecx='0x00000000' edx='0x08000000'/>
<cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/> <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
</cpudata> </cpudata>

View File

@ -24,6 +24,7 @@
<feature policy='require' name='arat'/> <feature policy='require' name='arat'/>
<feature policy='require' name='tsc_adjust'/> <feature policy='require' name='tsc_adjust'/>
<feature policy='require' name='cmt'/> <feature policy='require' name='cmt'/>
<feature policy='require' name='stibp'/>
<feature policy='require' name='xsaveopt'/> <feature policy='require' name='xsaveopt'/>
<feature policy='require' name='pdpe1gb'/> <feature policy='require' name='pdpe1gb'/>
<feature policy='require' name='abm'/> <feature policy='require' name='abm'/>

View File

@ -25,6 +25,7 @@
<feature name='arat'/> <feature name='arat'/>
<feature name='tsc_adjust'/> <feature name='tsc_adjust'/>
<feature name='cmt'/> <feature name='cmt'/>
<feature name='stibp'/>
<feature name='xsaveopt'/> <feature name='xsaveopt'/>
<feature name='pdpe1gb'/> <feature name='pdpe1gb'/>
<feature name='abm'/> <feature name='abm'/>

View File

@ -1,7 +1,7 @@
<!-- Features disabled by QEMU --> <!-- Features disabled by QEMU -->
<cpudata arch='x86'> <cpudata arch='x86'>
<cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/> <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/>
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00001000' ecx='0x00000000' edx='0x00000000'/> <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00001000' ecx='0x00000000' edx='0x08000000'/>
<cpuid eax_in='0x0000000f' ecx_in='0x01' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000006'/> <cpuid eax_in='0x0000000f' ecx_in='0x01' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000006'/>
<cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/> <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
</cpudata> </cpudata>

View File

@ -21,6 +21,7 @@
<feature policy='require' name='tsc_adjust'/> <feature policy='require' name='tsc_adjust'/>
<feature policy='require' name='cmt'/> <feature policy='require' name='cmt'/>
<feature policy='require' name='intel-pt'/> <feature policy='require' name='intel-pt'/>
<feature policy='require' name='stibp'/>
<feature policy='require' name='mbm_total'/> <feature policy='require' name='mbm_total'/>
<feature policy='require' name='mbm_local'/> <feature policy='require' name='mbm_local'/>
<feature policy='require' name='pdpe1gb'/> <feature policy='require' name='pdpe1gb'/>

View File

@ -26,6 +26,7 @@
<feature name='tsc_adjust'/> <feature name='tsc_adjust'/>
<feature name='cmt'/> <feature name='cmt'/>
<feature name='intel-pt'/> <feature name='intel-pt'/>
<feature name='stibp'/>
<feature name='xsaveopt'/> <feature name='xsaveopt'/>
<feature name='mbm_total'/> <feature name='mbm_total'/>
<feature name='mbm_local'/> <feature name='mbm_local'/>

View File

@ -1,7 +1,7 @@
<!-- Features disabled by QEMU --> <!-- Features disabled by QEMU -->
<cpudata arch='x86'> <cpudata arch='x86'>
<cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/> <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/>
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00001000' ecx='0x00000008' edx='0x00000000'/> <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00001000' ecx='0x00000008' edx='0x08000000'/>
<cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x00000008' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/> <cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x00000008' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
<cpuid eax_in='0x0000000f' ecx_in='0x01' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000006'/> <cpuid eax_in='0x0000000f' ecx_in='0x01' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000006'/>
<cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/> <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>

View File

@ -23,6 +23,7 @@
<feature policy='require' name='clflushopt'/> <feature policy='require' name='clflushopt'/>
<feature policy='require' name='intel-pt'/> <feature policy='require' name='intel-pt'/>
<feature policy='require' name='pku'/> <feature policy='require' name='pku'/>
<feature policy='require' name='stibp'/>
<feature policy='require' name='xsaves'/> <feature policy='require' name='xsaves'/>
<feature policy='require' name='mbm_total'/> <feature policy='require' name='mbm_total'/>
<feature policy='require' name='mbm_local'/> <feature policy='require' name='mbm_local'/>

View File

@ -24,6 +24,7 @@
<feature name='clflushopt'/> <feature name='clflushopt'/>
<feature name='intel-pt'/> <feature name='intel-pt'/>
<feature name='pku'/> <feature name='pku'/>
<feature name='stibp'/>
<feature name='xsaves'/> <feature name='xsaves'/>
<feature name='mbm_total'/> <feature name='mbm_total'/>
<feature name='mbm_local'/> <feature name='mbm_local'/>