[Kimchi-devel] [PATCH] [Kimchi] Fix frontend vcpu hotplug

Daniel Henrique Barboza dhbarboza82 at gmail.com
Mon Aug 15 19:07:28 UTC 2016


Applied to master. Thanks!

On 08/15/2016 09:11 AM, Jose Ricardo Ziviani wrote:
>   - this commit updates the max vcpus value in order to fix the hotplug.
>
> Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
> ---
>   ui/js/src/kimchi.guest_edit_main.js | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
> index a59d51a..518017c 100644
> --- a/ui/js/src/kimchi.guest_edit_main.js
> +++ b/ui/js/src/kimchi.guest_edit_main.js
> @@ -818,7 +818,7 @@ kimchi.guest_edit_main = function() {
>                       // since it is disabled; for cpu_info, when guest is running, just skip it since no processing is required
>                       if (kimchi.thisVMState === 'running' || kimchi.thisVMState === 'paused') {
>                           if (key === 'cpu_info') {
> -                            continue;
> +                            data['cpu_info']['maxvcpus'] = org.cpu_info.maxvcpus;
>                           }
>                           if (key === 'memory') {
>                               // Replace valueFromUI of max mem with one from original as otherwise the value is undefined




More information about the Kimchi-devel mailing list