[libvirt] [PATCH v2 4/4] libxl: remove check duplicates

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Wed Feb 24 08:46:18 UTC 2016


Please, disregard this. It's version of the other 1/4 patch which differs only in
commit message.

On 24.02.2016 11:38, Nikolay Shirokovskiy wrote:
> virDomainLiveConfigHelperMethod function checks this
> condition already.
> 
> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
> ---
>  src/libxl/libxl_driver.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
> index 7e65ba2..1428239 100644
> --- a/src/libxl/libxl_driver.c
> +++ b/src/libxl/libxl_driver.c
> @@ -2315,12 +2315,6 @@ libxlDomainPinVcpuFlags(virDomainPtr dom, unsigned int vcpu,
>      if (libxlDomainObjBeginJob(driver, vm, LIBXL_JOB_MODIFY) < 0)
>          goto cleanup;
>  
> -    if ((flags & VIR_DOMAIN_AFFECT_LIVE) && !virDomainObjIsActive(vm)) {
> -        virReportError(VIR_ERR_OPERATION_INVALID, "%s",
> -                       _("domain is inactive"));
> -        goto endjob;
> -    }
> -
>      if (virDomainLiveConfigHelperMethod(cfg->caps, driver->xmlopt, vm,
>                                          &flags, &targetDef) < 0)
>          goto endjob;
> 




More information about the libvir-list mailing list