Re: [PATCH] qemu: Don't update count of vCPUs if hot-plug fails silently

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/26/2013 06:48 AM, Peter Krempa wrote:
> When cpu hotplug fails without reporting an error, we would fail the
> command but update the count of vCPUs anyways.
> 
> Commit 761fc481365703b861429d73a341bde352ba8d41 fixed the case when CPU
> hot-unplug failed silently, but forgot to fix up the value in this case.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1000357
> ---
>  src/qemu/qemu_driver.c | 1 +
>  1 file changed, 1 insertion(+)

ACK.

> 
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index 0a8e518..c39f04d 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -3982,6 +3982,7 @@ static int qemuDomainHotplugVcpus(virQEMUDriverPtr driver,
>                         _("got wrong number of vCPU pids from QEMU monitor. "
>                           "got %d, wanted %d"),
>                         ncpupids, vcpus);
> +        vcpus = oldvcpus;
>          ret = -1;
>          goto cleanup;
>      }
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]