[Pkg-libvirt-maintainers] Bug#699813: libvirt refuses to use newer CPU models that are presented as default

Philipp Kern pkern at debian.org
Tue Feb 5 13:59:05 UTC 2013


Package: libvirt-bin
Version: 0.9.12-5
Severity: normal

libvirt in wheezy calls qemu with -nodefconfig to query the supported CPU
models (-cpu ?). This ignores the cpu definition qemu ships
(/usr/share/kvm/cpus-x86_64.conf in qemu-kvm). When copying
the CPU flags of the host processor virt-manager will pick, in my case,
SandyBridge, which libvirt then discards as not being supported.
libvirt 0.9.13 will call qemu with -no-user-config[0], which will
still present the newer CPU models.

root at garona:~# kvm -nodefconfig -cpu ?
x86           [n270]
x86         [athlon]
x86       [pentium3]
x86       [pentium2]
x86        [pentium]
x86            [486]
x86        [coreduo]
x86          [kvm32]
x86         [qemu32]
x86          [kvm64]
x86       [core2duo]
x86         [phenom]
x86         [qemu64]

root at garona:~# kvm -cpu ?
x86       Opteron_G4
x86       Opteron_G3
x86       Opteron_G2
x86       Opteron_G1
x86      SandyBridge
x86         Westmere
x86          Nehalem
x86           Penryn
x86           Conroe
x86           [n270]
x86         [athlon]
x86       [pentium3]
x86       [pentium2]
x86        [pentium]
x86            [486]
x86        [coreduo]
x86          [kvm32]
x86         [qemu32]
x86          [kvm64]
x86       [core2duo]
x86         [phenom]
x86         [qemu64]

root at garona:~# diff <(kvm -cpu ?) <(kvm -no-user-config -cpu ?)
root at garona:~# 

That's supported since qemu 1.1, which is in wheezy.

Kind regards
Philipp Kern

[0] https://bugzilla.redhat.com/show_bug.cgi?id=804224#c11



More information about the Pkg-libvirt-maintainers mailing list