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 B3D445699 for ; Tue, 25 Sep 2018 11:20:53 +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; 25 Sep 2018 02:20:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,301,1534834800"; d="scan'208";a="265504335" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.55]) ([10.237.220.55]) by fmsmga005.fm.intel.com with ESMTP; 25 Sep 2018 02:20:24 -0700 To: David Hunt , dev@dpdk.org Cc: john.mcnamara@intel.com, stephen@networkplumber.org, lei.a.yao@intel.com, bruce.richardson@intel.com References: <20180912144930.50578-1-david.hunt@intel.com> <20180914135406.52190-1-david.hunt@intel.com> <20180914135406.52190-2-david.hunt@intel.com> From: "Burakov, Anatoly" Message-ID: <8c4533b1-6aed-96ee-c901-9241c34c2ff1@intel.com> Date: Tue, 25 Sep 2018 10:20:23 +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: <20180914135406.52190-2-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 v3 1/8] examples/power: add checks around hypervisor 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: Tue, 25 Sep 2018 09:20:54 -0000 On 14-Sep-18 2:53 PM, David Hunt wrote: > Allow vm_power_manager to run without requiring qemu to be present > on the machine. This will be required for instances where the JSON > interface is used for commands and polices, without any VMs present. > A use case for this is a container enviromnent. > > Signed-off-by: David Hunt > --- > --- a/examples/vm_power_manager/channel_monitor.c > +++ b/examples/vm_power_manager/channel_monitor.c > @@ -66,7 +66,7 @@ static void > core_share_status(int pNo) > { > > - int noVms, noVcpus, z, x, t; > + int noVms = 0, noVcpus = 0, z, x, t; > This looks like a unrelated change? > get_all_vm(&noVms, &noVcpus); > > -- Thanks, Anatoly