From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 33B7A1B3E8 for ; Wed, 26 Sep 2018 15:54:58 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2018 06:54:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,306,1534834800"; d="scan'208";a="265890083" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.252.17.84]) ([10.252.17.84]) by fmsmga005.fm.intel.com with ESMTP; 26 Sep 2018 06:54:24 -0700 To: David Hunt , dev@dpdk.org Cc: john.mcnamara@intel.com, stephen@networkplumber.org, lei.a.yao@intel.com References: <20180914135406.52190-1-david.hunt@intel.com> <20180926134037.43606-1-david.hunt@intel.com> <20180926134037.43606-3-david.hunt@intel.com> From: "Burakov, Anatoly" Message-ID: <7ae42a9a-2e1f-90d3-f949-26b05aed0c86@intel.com> Date: Wed, 26 Sep 2018 14:54:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180926134037.43606-3-david.hunt@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 02/11] examples/power: allow for number of vms to be zero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2018 13:54:59 -0000 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 > --- Acked-by: Anatoly Burakov -- Thanks, Anatoly