Re: [PATCH 3/7] sched: introduce virDomainGetSchedulerParametersFlags

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

 



> +int
> +virDomainGetSchedulerParametersFlags(virDomainPtr domain,
> +                                     virSchedParameterPtr params, int *nparams,
> +                                     unsigned int flags)
> +{
> +    virConnectPtr conn;
> +
> +    VIR_DOMAIN_DEBUG(domain, "params=%p, nparams=%p, flags=%u",
> +                     params, nparams, flags);
> +
> +    virResetLastError();
> +
> +    if (!(flags & (VIR_DOMAIN_SCHEDPARAM_LIVE |
> +                   VIR_DOMAIN_SCHEDPARAM_CONFIG |
> +                   VIR_DOMAIN_SCHEDPARAM_CURRENT))) {
> +        virLibDomainError(VIR_ERR_INVALID_ARG, __FUNCTION__);
> +        virDispatchError(NULL);
> +        return -1;
> +    }

Causes problem with:

virsh schedinfo vm --set cpu_shares=1024 --current

where vm is an inactive domain.

--
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]