]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Re-detect virtual cpu threads after cpu hot (un)plug.
authorPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2012 11:56:17 +0000 (13:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 11 May 2012 14:40:05 +0000 (16:40 +0200)
commit3163682b585da7e894c9ea069741755fc316bdb3
tree50fe2a1e9889d4d4599183a7e1733e20054e3a33
parente99ad93d028cf7a63fb9ffd7a620dc00b0d54fce
qemu: Re-detect virtual cpu threads after cpu hot (un)plug.

After a cpu hotplug the qemu driver did not refresh information about
virtual processors used by qemu and their corresponding threads. This
patch forces a re-detection as is done on start of QEMU.

This ensures that correct information is reported by the
virDomainGetVcpus API and "virsh vcpuinfo".

A failure to obtain the thread<->vcpu mapping is treated non-fatal and
the mapping is not updated in a case of failure as not all versions of
QEMU report this in the info cpus command.
src/qemu/qemu_driver.c