[dpdk-dev] [PATCH v4 02/11] examples/power: allow for number of vms to be zero

Burakov, Anatoly anatoly.burakov at intel.com
Wed Sep 26 15:54:24 CEST 2018


On 26-Sep-18 2:40 PM, David Hunt wrote:
> Previously the vm_power_manager app required to have some vms defined, so
> the call to get_all_vm() always set the noVms variable. Now we're accepting
> policies from the host OS (without any VMs defined), so it is now valid to
> have zero VMs. This patch initialises the relevant variables to zero just
> in case the call to get_all_vms() does not find any, so could return with
> the variables uninitialised.
> 
> Signed-off-by: David Hunt <david.hunt at intel.com>
> ---

Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>

-- 
Thanks,
Anatoly


More information about the dev mailing list