numam-dpdk/examples/vm_power_manager
David Hunt 1e3ec03d8a examples/power: fix ack for enable/disable turbo
When a VM sends a command through virtio-serial to enable/disable
turbo, it is successfully enabled or disabled, yet the response to the
VM is NACK. This is because all the library frequency change APIs return
1 for success (change in frequency), 0 for success (no change in
frequency) and -1 for failure. However the turbo enable/disable APIs just
return 0 for success and -1 for failure.

Fix the handling of the return code to treat ">= 0" as success, and
send an ACK. Only send NACK when < 0 (failure).

Fixes: 0de94bcac7 ("examples/vm_power: send confirmation cmd to guest")
Cc: stable@dpdk.org

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Lei Yao <lei.a.yao@intel.com>
2020-02-13 18:22:19 +01:00
..
guest_cli examples/vm_power: fix no port in guest 2019-11-12 08:26:25 +01:00
channel_manager.c examples/vm_power: add mechanism to disable queries 2019-10-27 20:58:16 +01:00
channel_manager.h examples/vm_power: add mechanism to disable queries 2019-10-27 20:58:16 +01:00
channel_monitor.c examples/power: fix ack for enable/disable turbo 2020-02-13 18:22:19 +01:00
channel_monitor.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
main.c examples: check status of getting MAC address 2019-10-07 15:00:55 +02:00
Makefile examples: detect default build directory 2019-03-30 01:12:15 +01:00
meson.build examples/power: fix FreeBSD meson lib dependency 2019-07-12 10:26:55 +01:00
oob_monitor_nop.c examples/vm_power: add oob monitoring functions 2018-07-20 22:53:17 +02:00
oob_monitor_x86.c examples/vm_power: fix OOB frequency oscillations 2019-11-12 08:21:57 +01:00
oob_monitor.h examples/vm_power: add oob monitoring functions 2018-07-20 22:53:17 +02:00
parse.c examples/vm_power: add core list parameter 2018-07-20 22:53:17 +02:00
parse.h examples/vm_power: add core list parameter 2018-07-20 22:53:17 +02:00
power_manager.c examples/vm_power: fix OOB frequency oscillations 2019-11-12 08:21:57 +01:00
power_manager.h examples/vm_power: fix OOB frequency oscillations 2019-11-12 08:21:57 +01:00
vm_power_cli.c examples/vm_power: add mechanism to disable queries 2019-10-27 20:58:16 +01:00
vm_power_cli.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00