]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Always format CPU topology
authorJiri Denemark <jdenemar@redhat.com>
Tue, 16 Oct 2012 19:11:29 +0000 (21:11 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Nov 2012 15:19:46 +0000 (16:19 +0100)
commit165518d5087a5be9080959332f2abd536f1b55d9
treeaa9cf86196aa3641f36e4c0c2876be54b5c536d8
parentab02e39f592ebfcc52ef594a6ae7be66c5e1e287
qemu: Always format CPU topology

When libvirt cannot find a suitable CPU model for host CPU (easily
reproducible by running libvirt in a guest), it would not provide CPU
topology in capabilities XML either. Even though CPU topology is known
and can be queried by virNodeGetInfo. With this patch, CPU topology will
always be provided in capabilities XML regardless on the presence of CPU
model.
(cherry picked from commit f1c70100409562c3f402392aa667732e5f89a2c4)

Conflicts:

    src/qemu/qemu_capabilities.c
    src/qemu/qemu_command.c

    The new code uses capabilities caching.
src/qemu/qemu_capabilities.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c