[libvirt] [PATCH 6/6] qemu: fix set vcpus on host without NUMA
Peter Krempa
pkrempa at redhat.com
Tue Mar 24 16:38:37 UTC 2015
On Fri, Mar 20, 2015 at 15:39:04 +0100, Pavel Hrdina wrote:
> We don't have to modify cpuset.mems on hosts without NUMA. It also
> fixes an error message that you get instead of success if you trying
> update vcpus of a guest on a host without NUMA.
Could you add example of the error you are fixing here?
>
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
> src/qemu/qemu_driver.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index c4d96bd..eb86d68 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -4889,7 +4889,8 @@ qemuDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
> }
> }
>
> - if (flags & VIR_DOMAIN_AFFECT_LIVE && !(flags & VIR_DOMAIN_VCPU_GUEST)) {
> + if (flags & VIR_DOMAIN_AFFECT_LIVE && !(flags & VIR_DOMAIN_VCPU_GUEST) &&
> + virNumaIsAvailable()) {
> if (virCgroupNewEmulator(priv->cgroup, false, &cgroup_temp) < 0)
> goto endjob;
ACK.
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150324/7ba73e8e/attachment-0001.sig>
More information about the libvir-list
mailing list