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

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon Aug 15 12:42:32 UTC 2016


Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>

On 15-08-2016 09:11, 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
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list