1e3ec03d8a
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:
|
||
---|---|---|
.. | ||
guest_cli | ||
channel_manager.c | ||
channel_manager.h | ||
channel_monitor.c | ||
channel_monitor.h | ||
main.c | ||
Makefile | ||
meson.build | ||
oob_monitor_nop.c | ||
oob_monitor_x86.c | ||
oob_monitor.h | ||
parse.c | ||
parse.h | ||
power_manager.c | ||
power_manager.h | ||
vm_power_cli.c | ||
vm_power_cli.h |