[libvirt] [PATCH] cpu: add CLZERO CPUID support for AMD platforms (libvirt 4.5)

Ani Sinha posted 1 patch 4 years, 4 months ago
Failed in applying to current master (apply log)
src/cpu/cpu_map.xml | 5 +++++
1 file changed, 5 insertions(+)
[libvirt] [PATCH] cpu: add CLZERO CPUID support for AMD platforms (libvirt 4.5)
Posted by Ani Sinha 4 years, 4 months ago
Qemu commit e900135dcfb67 ("i386: Add CPUID bit for CLZERO and XSAVEERPTR")
adds support for CLZERO CPUID bit. This commit extends support for this
bit in libvirt.

This patch is based off of libvirt-4.5 tree.

Signed-off-by: Ani Sinha <ani.sinha@nutanix.com>

---
 src/cpu/cpu_map.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index 088c820..c251cb7 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -431,6 +431,9 @@
     <feature name='virt-ssbd'>
       <cpuid eax_in='0x80000008' ebx='0x02000000'/>
     </feature>
+    <feature name='clzero'>
+      <cpuid eax_in='0x80000008' ebx='0x00000001'/>
+    </feature>
 
     <!-- models -->
     <model name='486'>
@@ -1685,6 +1688,7 @@
       <feature name='bmi2'/>
       <feature name='clflush'/>
       <feature name='clflushopt'/>
+      <feature name='clzero'/>
       <feature name='cmov'/>
       <feature name='cr8legacy'/>
       <feature name='cx16'/>
@@ -1756,6 +1760,7 @@
       <feature name='bmi2'/>
       <feature name='clflush'/>
       <feature name='clflushopt'/>
+      <feature name='clzero'/>
       <feature name='cmov'/>
       <feature name='cr8legacy'/>
       <feature name='cx16'/>
-- 
1.9.4


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] cpu: add CLZERO CPUID support for AMD platforms (libvirt 4.5)
Posted by Jiri Denemark 4 years, 4 months ago
On Tue, Dec 03, 2019 at 03:19:39 -0800, Ani Sinha wrote:
> Qemu commit e900135dcfb67 ("i386: Add CPUID bit for CLZERO and XSAVEERPTR")
> adds support for CLZERO CPUID bit. This commit extends support for this
> bit in libvirt.
> 
> This patch is based off of libvirt-4.5 tree.

Thanks, but we are really only interested in patches against current
master. Good thing is you sent it too so I reviewed that version.

Jirka

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] cpu: add CLZERO CPUID support for AMD platforms (libvirt 4.5)
Posted by Ani Sinha 4 years, 4 months ago
Thanks. Going forward I will only send patches against the current master.

Ani


On 12/16/19, 5:37 PM, "Jiri Denemark" <jdenemar@redhat.com> wrote:

    On Tue, Dec 03, 2019 at 03:19:39 -0800, Ani Sinha wrote:
    > Qemu commit e900135dcfb67 ("i386: Add CPUID bit for CLZERO and XSAVEERPTR")
    > adds support for CLZERO CPUID bit. This commit extends support for this
    > bit in libvirt.
    > 
    > This patch is based off of libvirt-4.5 tree.
    
    Thanks, but we are really only interested in patches against current
    master. Good thing is you sent it too so I reviewed that version.
    
    Jirka
    
    


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] cpu: add CLZERO CPUID support for AMD platforms (libvirt 4.5)
Posted by Ani Sinha 4 years, 4 months ago
Hi all :

Can I get some love for this patch?

thanks
ani

On Dec 3, 2019, 4:49 PM +0530, Ani Sinha <ani.sinha@nutanix.com>, wrote:
Qemu commit e900135dcfb67 ("i386: Add CPUID bit for CLZERO and XSAVEERPTR")
adds support for CLZERO CPUID bit. This commit extends support for this
bit in libvirt.

This patch is based off of libvirt-4.5 tree.

Signed-off-by: Ani Sinha <ani.sinha@nutanix.com>

---
src/cpu/cpu_map.xml | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index 088c820..c251cb7 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -431,6 +431,9 @@
<feature name='virt-ssbd'>
<cpuid eax_in='0x80000008' ebx='0x02000000'/>
</feature>
+ <feature name='clzero'>
+ <cpuid eax_in='0x80000008' ebx='0x00000001'/>
+ </feature>

<!-- models -->
<model name='486'>
@@ -1685,6 +1688,7 @@
<feature name='bmi2'/>
<feature name='clflush'/>
<feature name='clflushopt'/>
+ <feature name='clzero'/>
<feature name='cmov'/>
<feature name='cr8legacy'/>
<feature name='cx16'/>
@@ -1756,6 +1760,7 @@
<feature name='bmi2'/>
<feature name='clflush'/>
<feature name='clflushopt'/>
+ <feature name='clzero'/>
<feature name='cmov'/>
<feature name='cr8legacy'/>
<feature name='cx16'/>
--
1.9.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list