cpu: add CLZERO CPUID support for AMD platforms

Qemu commit e900135dcfb67 ("i386: Add CPUID bit for CLZERO and XSAVEERPTR")
adds support for CLZERO CPUID bit.
This commit extends support for this CPUID bit into libvirt.

Signed-off-by: Ani Sinha <ani.sinha@nutanix.com>
Message-Id: <1575371352-99055-1-git-send-email-ani.sinha@nutanix.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Ani Sinha 2019-12-03 03:09:12 -08:00 committed by Jiri Denemark
parent 8ea9e032dd
commit 1d17f881a2
9 changed files with 11 additions and 0 deletions

View File

@ -467,6 +467,9 @@
</feature> </feature>
<!-- More AMD-specific features --> <!-- More AMD-specific features -->
<feature name='clzero'>
<cpuid eax_in='0x80000008' ebx='0x00000001'/>
</feature>
<feature name='wbnoinvd'> <feature name='wbnoinvd'>
<cpuid eax_in='0x80000008' ebx='0x00000200'/> <cpuid eax_in='0x80000008' ebx='0x00000200'/>
</feature> </feature>

View File

@ -13,4 +13,5 @@
<feature policy='require' name='perfctr_core'/> <feature policy='require' name='perfctr_core'/>
<feature policy='require' name='perfctr_nb'/> <feature policy='require' name='perfctr_nb'/>
<feature policy='require' name='invtsc'/> <feature policy='require' name='invtsc'/>
<feature policy='require' name='clzero'/>
</cpu> </cpu>

View File

@ -14,4 +14,5 @@
<feature name='perfctr_core'/> <feature name='perfctr_core'/>
<feature name='perfctr_nb'/> <feature name='perfctr_nb'/>
<feature name='invtsc'/> <feature name='invtsc'/>
<feature name='clzero'/>
</cpu> </cpu>

View File

@ -13,5 +13,6 @@
<feature policy='require' name='perfctr_core'/> <feature policy='require' name='perfctr_core'/>
<feature policy='require' name='perfctr_nb'/> <feature policy='require' name='perfctr_nb'/>
<feature policy='require' name='invtsc'/> <feature policy='require' name='invtsc'/>
<feature policy='require' name='clzero'/>
<feature policy='disable' name='rdtscp'/> <feature policy='disable' name='rdtscp'/>
</cpu> </cpu>

View File

@ -14,4 +14,5 @@
<feature name='perfctr_core'/> <feature name='perfctr_core'/>
<feature name='perfctr_nb'/> <feature name='perfctr_nb'/>
<feature name='invtsc'/> <feature name='invtsc'/>
<feature name='clzero'/>
</cpu> </cpu>

View File

@ -13,4 +13,5 @@
<feature policy='require' name='perfctr_core'/> <feature policy='require' name='perfctr_core'/>
<feature policy='require' name='perfctr_nb'/> <feature policy='require' name='perfctr_nb'/>
<feature policy='require' name='invtsc'/> <feature policy='require' name='invtsc'/>
<feature policy='require' name='clzero'/>
</cpu> </cpu>

View File

@ -14,4 +14,5 @@
<feature name='perfctr_core'/> <feature name='perfctr_core'/>
<feature name='perfctr_nb'/> <feature name='perfctr_nb'/>
<feature name='invtsc'/> <feature name='invtsc'/>
<feature name='clzero'/>
</cpu> </cpu>

View File

@ -13,4 +13,5 @@
<feature policy='require' name='perfctr_core'/> <feature policy='require' name='perfctr_core'/>
<feature policy='require' name='perfctr_nb'/> <feature policy='require' name='perfctr_nb'/>
<feature policy='require' name='invtsc'/> <feature policy='require' name='invtsc'/>
<feature policy='require' name='clzero'/>
</cpu> </cpu>

View File

@ -14,4 +14,5 @@
<feature name='perfctr_core'/> <feature name='perfctr_core'/>
<feature name='perfctr_nb'/> <feature name='perfctr_nb'/>
<feature name='invtsc'/> <feature name='invtsc'/>
<feature name='clzero'/>
</cpu> </cpu>