[dpdk-dev] [PATCH v3 1/8] examples/power: add checks around hypervisor

Burakov, Anatoly anatoly.burakov at intel.com
Tue Sep 25 11:20:23 CEST 2018


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 <david.hunt at intel.com>
> ---

<snip>

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


More information about the dev mailing list