提交 eb1b551d 编写于 作者: J Jiri Denemark

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: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 3f4914e0
...@@ -323,6 +323,9 @@ ...@@ -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>
......
<!-- 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>
...@@ -23,6 +23,7 @@ ...@@ -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'/>
......
...@@ -24,6 +24,7 @@ ...@@ -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'/>
......
<!-- 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>
...@@ -24,6 +24,7 @@ ...@@ -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'/>
......
...@@ -25,6 +25,7 @@ ...@@ -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'/>
......
<!-- 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>
...@@ -21,6 +21,7 @@ ...@@ -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'/>
......
...@@ -26,6 +26,7 @@ ...@@ -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'/>
......
<!-- 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'/>
......
...@@ -23,6 +23,7 @@ ...@@ -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'/>
......
...@@ -24,6 +24,7 @@ ...@@ -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'/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册