[libvirt] CLZERO support for AMD

Ani Sinha ani.sinha at nutanix.com
Wed Nov 27 11:10:21 UTC 2019


Hi :

I see a commit in qemu that adds support for CLZERO but in CPUIDs. :

commit e900135dcfb676a4019dc206395e02db5d1de0d6
Author: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
Date: Wed Sep 25 23:49:48 2019 +0200

i386: Add CPUID bit for CLZERO and XSAVEERPTR

The CPUID bits CLZERO and XSAVEERPTR are availble on AMD's ZEN platform
and could be passed to the guest.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>

Is there a corresponding change in libvirt adding this capability? Libvirt complains when I add it manually in the vm xml:

# virsh create newvm.xml 
error: Failed to create domain from newvm.xml
error: unsupported configuration: unknown CPU feature: clzero

# grep clzero newvm.xml 
    <feature policy='require' name='clzero'/>

Should we add it?

thanks
ani







More information about the libvir-list mailing list